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