コード例 #1
0
ファイル: sfWidgetForm.class.php プロジェクト: hunde/bsc
 /**
  * Renders a HTML tag.
  *
  * The id attribute is added automatically to the array of attributes if none is specified.
  * If uses for "id_format" option to generate the id.
  *
  * @param  string $tag        The tag name
  * @param  array  $attributes An array of HTML attributes to be merged with the default HTML attributes
  *
  * @return string An HTML tag string
  */
 public function renderTag($tag, $attributes = array())
 {
     if (empty($tag)) {
         return '';
     }
     $attributes = $this->fixFormId($attributes);
     return parent::renderTag($tag, $attributes);
 }
コード例 #2
0
 /**
  * Renders a HTML tag.
  *
  * The id attribute is added automatically to the array of attributes if none is specified.
  * If uses for "id_format" option to generate the id.
  *
  * @param  string The tag name
  * @param  array  An array of HTML attributes to be merged with the default HTML attributes
  *
  * @return string An HTML tag string
  */
 public function renderTag($tag, $attributes = array())
 {
     return parent::renderTag($tag, $this->fixFormId($attributes));
 }