Example #1
0
 function getInputAttDynamic(&$atts, &$type, &$content)
 {
     parent::getInputAttDynamic($atts, $type, $content);
     $atts['value'] = "ON";
     if ($this->getValue()) {
         $atts['checked'] = "checked";
     }
 }
Example #2
0
 function getInputAttDynamic(&$atts, &$type, &$content)
 {
     parent::getInputAttDynamic($atts, $type, $content);
     unset($atts['value']);
     $type = "textarea";
     unset($atts['type']);
     $content = array(htmlspecialchars($this->getValue()));
 }