/**
* Constructor.
*
- * @param string $user The session will be setup for the user
- * with this ID.
- * @param Horde_Kolab_Server $server The connection to the Kolab user
- * database.
- * @param array $params Kolab configuration settings.
+ * @param string $user_id The session will be setup for the user
+ * with this ID.
+ * @param Horde_Kolab_Server $server The connection to the Kolab user
+ * database.
+ * @param array $params Kolab configuration settings.
*/
public function __construct(
$user_id,
/**
* Validate the given session.
*
- * @param string $user The session will be validated for this user ID.
+ * Validate the given session.
+ *
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param string $user The session will be validated for
+ * this user ID.
*
* @return boolean True if the given session is valid.
*/
* Returns either a reference to a session handler with data retrieved from
* the session or a new session handler.
*
- * @param string $user The session will be setup for the user
- * with this ID.
+ * @param string $user The session will be setup for the user with this ID.
*
* @return Horde_Kolab_Session The concrete Kolab session reference.
*/
/**
* Return the session validation driver.
*
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param Horde_Kolab_Session_Auth $auth The auth handler.
+ *
* @return Horde_Kolab_Session_Valid The driver for validating sessions.
*/
public function getSessionValidator(
/**
* Validate the given session.
*
- * @param string $user The session will be validated for this user ID.
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param string $user The session will be validated for
+ * this user ID.
*
* @return boolean True if thxe given session is valid.
*/
* Returns either a reference to a session handler with data retrieved from
* the session or a new session handler.
*
- * @param string $user The session will be setup for the user
- * with this ID.
+ * @param string $user The session will be setup for the user with this ID.
*
* @return Horde_Kolab_Session The concrete Kolab session reference.
*/
/**
* Return the session validation driver.
*
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param Horde_Kolab_Session_Auth $auth The auth handler.
+ *
* @return Horde_Kolab_Session_Valid The driver for validating sessions.
*/
public function getSessionValidator(
}
if (isset($config['session']['anonymous']['user'])
- && isset($config['session']['anonymous']['pass'])) {
+ && isset($config['session']['anonymous']['pass'])
+ ) {
$factory = new Horde_Kolab_Session_Factory_Anonymous(
$factory,
$config['session']['anonymous']['user'],
/**
* Return the session validation driver.
*
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param Horde_Kolab_Session_Auth $auth The auth handler.
+ *
* @return Horde_Kolab_Session_Valid The driver for validating sessions.
*/
public function getSessionValidator(
/**
* Validate the given session.
*
- * @param string $user The session will be validated for this user ID.
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param string $user The session will be validated for
+ * this user ID.
*
* @return boolean True if the given session is valid.
*/
* Returns either a reference to a session handler with data retrieved from
* the session or a new session handler.
*
- * @param string $user The session will be setup for the user
- * with this ID.
+ * @param string $user The session will be setup for the user with this ID.
*
* @return Horde_Kolab_Session The concrete Kolab session reference.
*/
* definition. This should usually be done by an external setup method
* before constructing the session injcetion factory.
*
- * @parm Horde_Injector
+ * @param Horde_Injector $injector The injector to seed with the mock configuration.
*
* @return NULL
*/
/**
* Return the session validation driver.
*
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param Horde_Kolab_Session_Auth $auth The auth handler.
+ *
* @return Horde_Kolab_Session_Valid The driver for validating sessions.
*/
public function getSessionValidator(
/**
* Validate the given session.
*
- * @param string $user The session will be validated for this user ID.
+ * @param Horde_Kolab_Session $session The session to validate.
+ * @param string $user The session will be validated for
+ * this user ID.
*
* @return boolean True if thxe given session is valid.
*/
* Returns either a reference to a session handler with data retrieved from
* the session or a new session handler.
*
- * @param string $user The session will be setup for the user
- * with this ID.
+ * @param string $user The session will be setup for the user with this ID.
*
* @return Horde_Kolab_Session The concrete Kolab session reference.
*/
if ($result === false) {
$this->_logger->info(
sprintf(
- "Invalid Kolab session for current user \"%s\", requested user \"%s\" and stored user \"%s\".",
+ "Invalid Kolab session for current user \"%s\", requested"
+ . " user \"%s\" and stored user \"%s\".",
$this->_valid->getAuth()->getCurrentUser(),
$user,
$this->_valid->getSession()->getMail()
'_imap_server',
'_freebusy_server',
'_storage_params',
- ), $session->__sleep());
+ ), $session->__sleep()
+ );
}
public function testMethodGetidHasResultStringTheIdOfTheUserUserUsedForConnecting()