Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Gapps/UserQuery.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once('Zend/Gdata/Gapps/Query.php');
00028 
00043 class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
00044 {
00045 
00052     protected $_username = null;
00053 
00064     public function __construct($domain = null, $username = null,
00065             $startUsername = null)
00066     {
00067         parent::__construct($domain);
00068         $this->setUsername($username);
00069         $this->setStartUsername($startUsername);
00070     }
00071 
00081     public function setUsername($value)
00082     {
00083         $this->_username = $value;
00084     }
00085 
00093     public function getUsername()
00094     {
00095         return $this->_username;
00096     }
00097 
00105     public function setStartUsername($value)
00106     {
00107         if ($value !== null) {
00108             $this->_params['startUsername'] = $value;
00109         } else {
00110             unset($this->_params['startUsername']);
00111         }
00112     }
00113 
00122     public function getStartUsername()
00123     {
00124         if (array_key_exists('startUsername', $this->_params)) {
00125             return $this->_params['startUsername'];
00126         } else {
00127             return null;
00128         }
00129     }
00130 
00136     public function getQueryUrl()
00137     {
00138         $uri = $this->getBaseUrl();
00139         $uri .= Zend_Gdata_Gapps::APPS_USER_PATH;
00140         if ($this->_username !== null) {
00141             $uri .= '/' . $this->_username;
00142         }
00143         $uri .= $this->getQueryString();
00144         return $uri;
00145     }
00146 
00147 }
 All Data Structures Namespaces Files Functions Variables Enumerations