Пример #1
0
 public function isValid($value)
 {
     $isValid = true;
     $model = new Modules_Access_Model_Users();
     if (Zend_Controller_Front::getInstance()->getRequest()->getParam('login')) {
         return $isValid;
     }
     if (sizeof($model->getUser($value))) {
         $this->_error(self::ERROR, $value);
         $isValid = false;
     }
     return $isValid;
 }
Пример #2
0
 public function getUserInfo()
 {
     if ($this->getIdentity()) {
         $model = new Modules_Access_Model_Users();
         return $model->getUser($this->getIdentity()->username);
     }
 }