skeeks\cms\relatedProperties\userPropertyTypes\UserPropertyTypeColor::rules PHP 메소드

rules() 공개 메소드

public rules ( )
    public function rules()
    {
        return ArrayHelper::merge(parent::rules(), [['showDefaultPalette', 'string'], ['useNative', 'string'], ['showAlpha', 'string'], ['showInput', 'string'], ['showPalette', 'string'], [['showDefaultPalette', 'useNative', 'showAlpha', 'showInput', 'showPalette'], 'in', 'range' => array_keys(\Yii::$app->cms->booleanFormat())], ['saveValueAs', 'string'], ['saveValueAs', 'in', 'range' => array_keys(ColorInput::$possibleSaveAs)]]);
    }