* @package tao */ class tao_helpers_form_elements_xhtml_Authoring extends tao_helpers_form_elements_Authoring { use XhtmlRenderingTrait; /** * Short description of attribute CSS_CLASS * * @access protected * @var string */ const CSS_CLASS = 'authoringOpener'; // --- OPERATIONS --- /** * Short description of method render * * @access public * @author Bertrand Chevrier, * @return string */ public function render() { if (array_key_exists('class', $this->attributes)) { if (strstr($this->attributes['class'], self::CSS_CLASS) !== false) { $this->attributes['class'] .= ' ' . self::CSS_CLASS; } } else { $this->attributes['class'] = self::CSS_CLASS; } $returnValue = $this->renderLabel(); $returnValue .= ""; return (string) $returnValue; } }