Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Gapps/EmailListQuery.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_EmailListQuery extends Zend_Gdata_Gapps_Query
00044 {
00045 
00052     protected $_emailListName = null;
00053 
00066     public function __construct($domain = null, $emailListName = null,
00067             $recipient = null, $startEmailListName = null)
00068     {
00069         parent::__construct($domain);
00070         $this->setEmailListName($emailListName);
00071         $this->setRecipient($recipient);
00072         $this->setStartEmailListName($startEmailListName);
00073     }
00074 
00083      public function setEmailListName($value)
00084      {
00085          $this->_emailListName = $value;
00086      }
00087 
00096     public function getEmailListName()
00097     {
00098         return $this->_emailListName;
00099     }
00100 
00109     public function setRecipient($value)
00110     {
00111         if ($value !== null) {
00112             $this->_params['recipient'] = $value;
00113         }
00114         else {
00115             unset($this->_params['recipient']);
00116         }
00117     }
00118 
00127     public function getRecipient()
00128     {
00129         if (array_key_exists('recipient', $this->_params)) {
00130             return $this->_params['recipient'];
00131         } else {
00132             return null;
00133         }
00134     }
00135 
00143     public function setStartEmailListName($value)
00144     {
00145         if ($value !== null) {
00146             $this->_params['startEmailListName'] = $value;
00147         } else {
00148             unset($this->_params['startEmailListName']);
00149         }
00150     }
00151 
00159     public function getStartEmailListName()
00160     {
00161         if (array_key_exists('startEmailListName', $this->_params)) {
00162             return $this->_params['startEmailListName'];
00163         } else {
00164             return null;
00165         }
00166     }
00167 
00175     public function getQueryUrl()
00176     {
00177 
00178         $uri = $this->getBaseUrl();
00179         $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH;
00180         if ($this->_emailListName !== null) {
00181             $uri .= '/' . $this->_emailListName;
00182         }
00183         $uri .= $this->getQueryString();
00184         return $uri;
00185     }
00186 
00187 }
 All Data Structures Namespaces Files Functions Variables Enumerations