kartik\helpers\Enum::boolList PHP 메소드

boolList() 공개 정적인 메소드

Example: ~~~ print_r(Enum::boolList()); print_r(Enum::boolList('Active', 'Inactive')); ~~~
public static boolList ( string $false = null, string $true = null ) : array
$false string the label for the false value
$true string the label for the true value
리턴 array
    public static function boolList($false = null, $true = null)
    {
        static::initI18N();
        return [false => empty($false) ? Yii::t('kvenum', 'No') : $false, true => empty($true) ? Yii::t('kvenum', 'Yes') : $true];
    }