Newscoop\Entity\User::isPending PHP Метод

isPending() публичный Метод

Test if user is pending
public isPending ( ) : boolean
Результат boolean
    public function isPending()
    {
        return $this->status == self::STATUS_INACTIVE || empty($this->username);
    }

Usage Example

Пример #1
0
 public function preDispatch()
 {
     if (empty($this->user)) {
         $this->_helper->redirector('index', 'auth');
     }
     if ($this->user->isPending()) {
         $this->_helper->redirector('confirm', 'register');
     }
 }
All Usage Examples Of Newscoop\Entity\User::isPending