Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Gapps/EmailListRecipientQuery.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_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
00044 {
00045 
00052     protected $_emailListName = null;
00053 
00064     public function __construct($domain = null, $emailListName = null,
00065             $startRecipient = null)
00066     {
00067         parent::__construct($domain);
00068         $this->setEmailListName($emailListName);
00069         $this->setStartRecipient($startRecipient);
00070     }
00071 
00080      public function setEmailListName($value)
00081      {
00082          $this->_emailListName = $value;
00083      }
00084 
00092     public function getEmailListName()
00093     {
00094         return $this->_emailListName;
00095     }
00096 
00104     public function setStartRecipient($value)
00105     {
00106         if ($value !== null) {
00107             $this->_params['startRecipient'] = $value;
00108         } else {
00109             unset($this->_params['startRecipient']);
00110         }
00111     }
00112 
00120     public function getStartRecipient()
00121     {
00122         if (array_key_exists('startRecipient', $this->_params)) {
00123             return $this->_params['startRecipient'];
00124         } else {
00125             return null;
00126         }
00127     }
00128 
00136     public function getQueryUrl()
00137     {
00138 
00139         $uri = $this->getBaseUrl();
00140         $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH;
00141         if ($this->_emailListName !== null) {
00142             $uri .= '/' . $this->_emailListName;
00143         } else {
00144             require_once 'Zend/Gdata/App/InvalidArgumentException.php';
00145             throw new Zend_Gdata_App_InvalidArgumentException(
00146                     'EmailListName must not be null');
00147         }
00148         $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/';
00149         $uri .= $this->getQueryString();
00150         return $uri;
00151     }
00152 
00153 }
 All Data Structures Namespaces Files Functions Variables Enumerations