function __toString() { //Allows children to write this attribute first if ($this->getAttribute('value') === false) { $this->setAttribute("value", $this->getRawValue()); } return parent::__toString(); }
function __toString() { $this->setAttribute('class', 'tinymce_textarea'); $this->innerHTML = HtmlHelper::escape($this->_value); $config = JsonHelper::encode($this->config); $script = HtmlHelper::inlineJavascript('tinyMCE.init(' . $config . ');'); $this->afterHTML = $script; self::$instances_included++; return parent::__toString(); }
function __toString() { if (!$this->getAttribute('cols')) { $this->setAttribute('cols', 30); } if (!$this->getAttribute('rows')) { $this->setAttribute('rows', 5); } $this->innerHTML = HtmlHelper::escape($this->_value); return parent::__toString(); }
function __toString() { $options = $this->createHtmlOptions($this->_options); if (is_array($this->_data_source)) { $data = $this->_data_source; } else { $data = $this->_data_source->fetchKeyValue(); } $options = array_merge($options, $this->createHtmlOptions($data)); $group_html = ""; foreach ($this->_opt_groups as $group => $items) { $groups_items = $this->createHtmlOptions($items); $group_html .= "<optgroup label=\"{$group}\">" . join("\r\n", $groups_items) . "</optgroup>"; } $this->innerHTML = join("\r\n", $options) . $group_html; return parent::__toString(); }