示例#1
0
文件: Forms.php 项目: kalushta/darom
 function input($args)
 {
     $value = scbForms::get_value($args['name'], $this->data);
     if (!empty($this->prefix)) {
         $args['name'] = array_merge($this->prefix, (array) $args['name']);
     }
     return scbForms::input_with_value($args, $value);
 }
示例#2
0
 function input($args)
 {
     $default = isset($args['default']) ? $args['default'] : null;
     $value = scbForms::get_value($args['name'], $this->data, $default);
     if (!empty($this->prefix)) {
         $args['name'] = array_merge($this->prefix, (array) $args['name']);
     }
     return scbForms::input_with_value($args, $value);
 }