lockUser() public method

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.
Ejemplo n.º 1
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')) {
         parent::lockUser($userId, $time);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 /**
  */
 public function lockUser($userId, $time = 0)
 {
     return $this->_base->lockUser($GLOBALS['registry']->convertUsername($userId, true), $time);
 }