Exemple #1
0
 /**
  * 初始化当前输入项
  *
  * @access public
  * @param string $name 表单元素名称
  * @param array $options 选择项
  * @return Typecho_Widget_Helper_Layout
  */
 public function input($name = NULL, array $options = NULL)
 {
     $input = new Typecho_Widget_Helper_Layout('textarea', array('id' => $name . '-0-' . self::$uniqueId, 'name' => $name));
     $this->label->setAttribute('for', $name . '-0-' . self::$uniqueId);
     $this->container($input->setClose(false));
     return $input;
 }