Exemple #1
0
 protected function setElement($element)
 {
     switch ($element['attributes']['type']) {
         case 'password':
             $element['attributes']['value'] = null;
             break;
     }
     return parent::setElement($element);
 }
Exemple #2
0
 public static function create($registered)
 {
     $cssPath = SJO_ROOT_PUBLIC_HTML . '/css/' . strtolower(Router::$interface);
     if (is_dir($cssPath)) {
         if ($files = Path::listFiles($cssPath)) {
             foreach ($files as $file) {
                 array_push($registered['elements'], preg_replace("#^" . SJO_ROOT_PUBLIC_HTML . "/#", "", $file->path));
             }
         }
     }
     foreach ($registered['elements'] as &$el) {
         $el = self::createStatic('Element', Lib\Arr::extend(self::$element, array('tagname' => 'link', 'attributes' => array('href' => $el))));
     }
     return parent::create($registered);
 }
Exemple #3
0
 public function html(array $options = null)
 {
     return parent::html(Lib\Arr::extend(array('method' => 'Container'), $options));
 }