import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
* @subpackage Gapps
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: NicknameQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: NicknameQuery.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -27,13 +27,13 @@
|
||||
require_once('Zend/Gdata/Gapps/Query.php');
|
||||
|
||||
/**
|
||||
* Assists in constructing queries for Google Apps nickname entries.
|
||||
* Instances of this class can be provided in many places where a URL is
|
||||
* Assists in constructing queries for Google Apps nickname entries.
|
||||
* Instances of this class can be provided in many places where a URL is
|
||||
* required.
|
||||
*
|
||||
*
|
||||
* For information on submitting queries to a server, see the Google Apps
|
||||
* service class, Zend_Gdata_Gapps.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gapps
|
||||
@ -44,26 +44,26 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
{
|
||||
|
||||
/**
|
||||
* If not null, indicates the name of the nickname entry which
|
||||
* If not null, indicates the name of the nickname entry which
|
||||
* should be returned by this query.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_nickname = null;
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
* @param string $domain (optional) The Google Apps-hosted domain to use
|
||||
*
|
||||
* @param string $domain (optional) The Google Apps-hosted domain to use
|
||||
* when constructing query URIs.
|
||||
* @param string $nickname (optional) Value for the nickname
|
||||
* @param string $nickname (optional) Value for the nickname
|
||||
* property.
|
||||
* @param string $username (optional) Value for the username
|
||||
* @param string $username (optional) Value for the username
|
||||
* property.
|
||||
* @param string $startNickname (optional) Value for the
|
||||
* @param string $startNickname (optional) Value for the
|
||||
* startNickname property.
|
||||
*/
|
||||
public function __construct($domain = null, $nickname = null,
|
||||
public function __construct($domain = null, $nickname = null,
|
||||
$username = null, $startNickname = null)
|
||||
{
|
||||
parent::__construct($domain);
|
||||
@ -73,11 +73,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the nickname to query for. When set, only users with a nickname
|
||||
* matching this value will be returned in search results. Set to
|
||||
* Set the nickname to query for. When set, only users with a nickname
|
||||
* matching this value will be returned in search results. Set to
|
||||
* null to disable filtering by username.
|
||||
*
|
||||
* @param string $value The nickname to filter search results by, or null
|
||||
*
|
||||
* @param string $value The nickname to filter search results by, or null
|
||||
* to disable.
|
||||
*/
|
||||
public function setNickname($value)
|
||||
@ -86,11 +86,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the nickname to query for. If no nickname is set, null will be
|
||||
* Get the nickname to query for. If no nickname is set, null will be
|
||||
* returned.
|
||||
*
|
||||
*
|
||||
* @see setNickname
|
||||
* @return string The nickname to filter search results by, or null if
|
||||
* @return string The nickname to filter search results by, or null if
|
||||
* disabled.
|
||||
*/
|
||||
public function getNickname()
|
||||
@ -99,11 +99,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the username to query for. When set, only users with a username
|
||||
* matching this value will be returned in search results. Set to
|
||||
* Set the username to query for. When set, only users with a username
|
||||
* matching this value will be returned in search results. Set to
|
||||
* null to disable filtering by username.
|
||||
*
|
||||
* @param string $value The username to filter search results by, or null
|
||||
*
|
||||
* @param string $value The username to filter search results by, or null
|
||||
* to disable.
|
||||
*/
|
||||
public function setUsername($value)
|
||||
@ -117,11 +117,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the username to query for. If no username is set, null will be
|
||||
* Get the username to query for. If no username is set, null will be
|
||||
* returned.
|
||||
*
|
||||
*
|
||||
* @see setUsername
|
||||
* @return string The username to filter search results by, or null if
|
||||
* @return string The username to filter search results by, or null if
|
||||
* disabled.
|
||||
*/
|
||||
public function getUsername()
|
||||
@ -134,10 +134,10 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the first nickname which should be displayed when retrieving
|
||||
* Set the first nickname which should be displayed when retrieving
|
||||
* a list of nicknames.
|
||||
*
|
||||
* @param string $value The first nickname to be returned, or null to
|
||||
*
|
||||
* @param string $value The first nickname to be returned, or null to
|
||||
* disable.
|
||||
*/
|
||||
public function setStartNickname($value)
|
||||
@ -150,10 +150,10 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the first nickname which should be displayed when retrieving
|
||||
* Get the first nickname which should be displayed when retrieving
|
||||
* a list of nicknames.
|
||||
*
|
||||
* @return string The first nickname to be returned, or null to
|
||||
*
|
||||
* @return string The first nickname to be returned, or null to
|
||||
* disable.
|
||||
*/
|
||||
public function getStartNickname()
|
||||
@ -166,14 +166,14 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the URL generated for this query, based on it's current
|
||||
* Returns the URL generated for this query, based on it's current
|
||||
* parameters.
|
||||
*
|
||||
*
|
||||
* @return string A URL generated based on the state of this query.
|
||||
*/
|
||||
public function getQueryUrl()
|
||||
{
|
||||
|
||||
|
||||
$uri = $this->getBaseUrl();
|
||||
$uri .= Zend_Gdata_Gapps::APPS_NICKNAME_PATH;
|
||||
if ($this->_nickname !== null) {
|
||||
|
Reference in New Issue
Block a user