Returns whether a user is currently locked.
/** * Checks if $userId is currently locked. * * @param string $userId The userId to check. * @param boolean $show_details Toggle array format with timeout. * * @throws Horde_Auth_Exception */ public function isLocked($userId, $show_details = false) { if ($this->_base) { return $this->_base->isLocked($userId, $show_details); } if ($this->hasCapability('lock')) { return parent::isLocked($userId, $show_details); } }
/** * Checks if $userId is currently locked. * * @param string $userId The userId to check. * @param boolean $show_details Toggle array format with timeout. * * @throws Horde_Auth_Exception */ public function isLocked($userId, $show_details = false) { if ($this->_base) { return $this->_base->isLocked($userId, $show_details); } if ($this->hasCapability('lock')) { return $GLOBALS['registry']->callAppMethod($this->_app, 'authIsLocked', array('args' => array($userId, $show_details))); } else { return parent::isLocked($userId, $show_details); } }
/** */ public function isLocked($userId, $show_details = false) { return $this->_base->isLocked($GLOBALS['registry']->convertUsername($userId, true), $show_details); }