Beispiel #1
0
 public function input_element($type, $params = false)
 {
     if (!self::$inputer) {
         if (vmc::is_online()) {
             self::$inputer = vmc::servicelist('html_input');
         } else {
             self::$inputer = array('base_view_input' => new base_view_input());
         }
     }
     if ($params === false) {
         foreach (self::$inputer as $inputer) {
             $inputer->app = $this->app;
             if (method_exists($inputer, 'input_' . $type)) {
                 return true;
             }
         }
     } else {
         foreach (self::$inputer as $inputer) {
             $inputer->app = $this->app;
             if (method_exists($inputer, 'input_' . $type)) {
                 $html = $inputer->{'input_' . $type}($params);
             }
         }
         return $html;
     }
     return false;
 }