/** * Finds out if a set of login credentials are valid. * * @return boolean Whether or not the password was correct. */ public function isAuthenticated() { if ($this->_authenticated === null) { $this->_authenticated = parent::authenticate($this->_pass); } return $this->_authenticated; }
/** * Constructor. * * @param string $owner The owner name. * @param Horde_Kolab_Server_Composite $db The connection to the user * database. * @param array $params Additional parameters. * <pre> * - user (optional): A Horde_Kolab_FreeBusy_User object, representing * the user currently accessing the system. Will * be used to determine the domain of domain-less * owners. * - domain (optional): A domain that should be appended to domain-less * owners. * </pre> */ public function __construct($owner, Horde_Kolab_Server_Composite $db, $params = array()) { $this->_owner = $owner; $this->_params = $params; parent::__construct($db); }