Exemple #1
0
 protected function _render($args)
 {
     $args = wp_parse_args($args, array('value' => true, 'desc' => null, 'checked' => false, 'extra' => array()));
     foreach ($args as $key => &$val) {
         ${$key} =& $val;
     }
     unset($val);
     $extra['checked'] = $checked;
     if (is_null($desc) && !is_bool($value)) {
         $desc = str_replace('[]', '', $value);
     }
     return scbFormField::_input_gen($args);
 }
Exemple #2
0
 /**
  * @param array $args
  *
  * @return string
  */
 protected function _render($args)
 {
     $args = wp_parse_args($args, array('value' => true, 'desc' => null, 'checked' => false, 'extra' => array()));
     $args['extra']['checked'] = $args['checked'];
     if (is_null($args['desc']) && !is_bool($args['value'])) {
         $args['desc'] = str_replace('[]', '', $args['value']);
     }
     return scbFormField::_input_gen($args);
 }