public static getCheckboxValues ( ) : array | ||
리턴 | array |
public static function getCheckboxValues()
{
$languages = self::getActiveLanguages();
$results = array();
// stop here if no languages are present
if (empty($languages)) {
return array();
}
// addRadioButton requires an array with keys 'value' and 'label'
foreach ($languages as $abbreviation) {
$results[] = array('value' => $abbreviation, 'label' => self::lbl(mb_strtoupper($abbreviation)));
}
return $results;
}
/** * Get all active languages in a format usable by SpoonForm's addRadioButton * * @deprecated * * @return array */ public static function getCheckboxValues() { trigger_error('Backend\\Core\\Engine\\Language is deprecated. It has been moved to Backend\\Core\\Language\\Language', E_USER_DEPRECATED); return parent::getCheckboxValues(); }