public static function radio($data = '', $value = '', $checked = FALSE, $extra = '')
 {
     $checked = self::get_value($data, $checked);
     if (!is_bool($checked)) {
         $checked = (string) $value === (string) $checked;
     }
     return parent::radio($data, $value, $checked, $extra);
 }
Ejemplo n.º 2
0
 /**
  * Creates an HTML form radio input tag.
  *
  * @param   string|array  input name or an array of HTML attributes
  * @param   string        input value, when using a name
  * @param   boolean       make the radio selected by default
  * @param   string        a string to be attached to the end of the attributes
  * @return  string
  */
 public static function radio($data = '', $value = NULL, $checked = NULL, $extra = '')
 {
     // Add the Bluebox defaults (such as css classes)
     list($data, $value, $checked, $extra) = self::_addDefaults(__FUNCTION__, $data, $value, $checked, $extra);
     // Call the parent
     $result = parent::radio($data, $value, $checked, $extra);
     return $result;
 }