public function validateId($attribute, $params)
    {
        foreach (Yii::$app->user->getLoginPriority() as $item) {
            if ($item::validate($this->$attribute)) {
                return;
            }
        }
        $this->addError($attribute, Yii::t('user', 'Incorrect ID.'));
    }
public function validateId($attribute, $params)
    {
        foreach (Yii::$app->user->getLoginPriority() as $item) {
            if ($item::validate($this->$attribute)) {
                return;
            }
        }
        $this->addError($attribute, Yii::t('user', 'Incorrect ID.'));
    }
public function validateId ( $ attribute , $ params ) { foreach ( Yii :: $ app -> user -> getLoginPriority ( ) as $ item ) { if ( $ item :: validate ( $ this -> $ attribute ) ) { return ; } } $ this -> addError ( $ attribute , Yii :: t ( 'user' , 'Incorrect ID.' ) ) ; }
Validates the ID.

@param $attribute
@param $params
Validates the ID .