예제 #1
0
파일: Checkbox.php 프로젝트: cseufert/hamle
 function getInputAttDynamic(&$atts, &$type, &$content)
 {
     parent::getInputAttDynamic($atts, $type, $content);
     $atts['value'] = "ON";
     if ($this->getValue()) {
         $atts['checked'] = "checked";
     }
 }
예제 #2
0
파일: Memo.php 프로젝트: cseufert/hamle
 function getInputAttDynamic(&$atts, &$type, &$content)
 {
     parent::getInputAttDynamic($atts, $type, $content);
     unset($atts['value']);
     $type = "textarea";
     unset($atts['type']);
     $content = array(htmlspecialchars($this->getValue()));
 }
예제 #3
0
파일: Button.php 프로젝트: cseufert/hamle
 function getInputAttStatic(&$atts, &$type, &$content)
 {
     parent::getInputAttStatic($atts, $type, $content);
     $atts['type'] = "submit";
 }