equal
deleted
inserted
replaced
14 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
15 * |
15 * |
16 * @category Zend |
16 * @category Zend |
17 * @package Zend_Gdata |
17 * @package Zend_Gdata |
18 * @subpackage Gapps |
18 * @subpackage Gapps |
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
21 * @version $Id:$ |
21 * @version $Id:$ |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
35 * service class, Zend_Gdata_Gapps. |
35 * service class, Zend_Gdata_Gapps. |
36 * |
36 * |
37 * @category Zend |
37 * @category Zend |
38 * @package Zend_Gdata |
38 * @package Zend_Gdata |
39 * @subpackage Gapps |
39 * @subpackage Gapps |
40 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
40 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
41 * @license http://framework.zend.com/license/new-bsd New BSD License |
41 * @license http://framework.zend.com/license/new-bsd New BSD License |
42 */ |
42 */ |
43 class Zend_Gdata_Gapps_GroupQuery extends Zend_Gdata_Gapps_Query |
43 class Zend_Gdata_Gapps_GroupQuery extends Zend_Gdata_Gapps_Query |
44 { |
44 { |
45 |
45 |
53 |
53 |
54 /** |
54 /** |
55 * Create a new instance. |
55 * Create a new instance. |
56 * |
56 * |
57 * @param string $domain (optional) The Google Apps-hosted domain to use |
57 * @param string $domain (optional) The Google Apps-hosted domain to use |
58 * when constructing query URIs. |
58 * when constructing query URIs. |
59 * @param string $groupId (optional) Value for the groupId property. |
59 * @param string $groupId (optional) Value for the groupId property. |
60 * @param string $startGroupName (optional) Value for the |
60 * @param string $startGroupName (optional) Value for the |
61 * startGroupName property. |
61 * startGroupName property. |
62 */ |
62 */ |
63 public function __construct($domain = null, $groupId = null, |
63 public function __construct($domain = null, $groupId = null, |
208 { |
208 { |
209 |
209 |
210 $uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI; |
210 $uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI; |
211 $uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH; |
211 $uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH; |
212 $uri .= '/' . $this->_domain; |
212 $uri .= '/' . $this->_domain; |
213 |
213 |
214 if ($this->_groupId !== null) { |
214 if ($this->_groupId !== null) { |
215 $uri .= '/' . $this->_groupId; |
215 $uri .= '/' . $this->_groupId; |
216 } |
216 } |
217 |
217 |
218 if(array_key_exists('member', $this->_params)) { |
218 if(array_key_exists('member', $this->_params)) { |
219 $uri .= '/'; |
219 $uri .= '/'; |
220 } |
220 } |
221 |
221 |
222 $uri .= $this->getQueryString(); |
222 $uri .= $this->getQueryString(); |
223 return $uri; |
223 return $uri; |
224 } |
224 } |
225 |
225 |
226 } |
226 } |