/** * Obtains CCalUser object that contains calendar settings for specified user. User identifier is used for look up. * * @param int $iUserId User identifier. * * @return CCalUser */ public function getCalUser($iUserId) { return is_int($iUserId) && 0 < $iUserId ? $this->_getCalUserBySql($this->oCommandCreator->getCalUserQuery($iUserId)) : null; }