lockUser() 공개 메소드

Locks a user indefinitely or for a specified time.
public lockUser ( string $userId, integer $time )
$userId string The user to lock.
$time integer The duration in minutes, 0 = permanent.
예제 #1
0
파일: Application.php 프로젝트: horde/horde
 /**
  * Locks a user indefinitely or for a specified time
  *
  * @param string $userId      The userId to lock.
  * @param integer $time       The duration in seconds, 0 = permanent
  *
  * @throws Horde_Auth_Exception
  */
 public function lockUser($userId, $time = 0)
 {
     if ($this->_base) {
         $this->_base->lockUser($userId, $time);
         return;
     }
     if ($this->hasCapability('lock')) {
         parent::lockUser($userId, $time);
     }
 }
예제 #2
0
 /**
  * Locks a user indefinitely or for a specified time
  *
  * @param string $userId      The userId to lock.
  * @param integer $time       The duration in seconds, 0 = permanent
  *
  * @throws Horde_Auth_Exception
  */
 public function lockUser($userId, $time = 0)
 {
     if ($this->_base) {
         $this->_base->lockUser($userId, $time);
         return;
     }
     if ($this->hasCapability('lock')) {
         $GLOBALS['registry']->callAppMethod($this->_app, 'authLockUser', array('args' => array($userId, $time)));
     } else {
         parent::lockUser($userId, $time);
     }
 }
예제 #3
0
 /**
  */
 public function lockUser($userId, $time = 0)
 {
     return $this->_base->lockUser($GLOBALS['registry']->convertUsername($userId, true), $time);
 }