PHP Class skeeks\cms\helpers\ComponentHelper

Inheritance: extends yii\base\Component
Afficher le fichier Open project: skeeks-cms/cms

Méthodes publiques

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

Method Details

hasBehavior() public static méthode

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

hasBehaviorsOr() public static méthode

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