PHP Class skeeks\cms\helpers\ComponentHelper

Inheritance: extends yii\base\Component
Show file Open project: skeeks-cms/cms

Public Methods

Method Description
hasBehavior ( Component $component, $behavior ) : boolean Проверка наличия у компонента необходимого поведения
hasBehaviorsOr ( Component $component, array $behaviors = [] ) : boolean Проверка есть ли у компонента хоть одно повдеение

Method Details

hasBehavior() public static method

Проверка наличия у компонента необходимого поведения
public static hasBehavior ( Component $component, $behavior ) : boolean
$component yii\base\Component
$behavior
return boolean

hasBehaviorsOr() public static method

Проверка есть ли у компонента хоть одно повдеение
public static hasBehaviorsOr ( Component $component, array $behaviors = [] ) : boolean
$component yii\base\Component
$behaviors array
return boolean