Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Gapps/Query.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once('Zend/Gdata/Query.php');
00028 
00032 require_once('Zend/Gdata/Gapps.php');
00033 
00047 abstract class Zend_Gdata_Gapps_Query extends Zend_Gdata_Query
00048 {
00049 
00055     protected $_domain = null;
00056 
00063     public function __construct($domain = null)
00064     {
00065         parent::__construct();
00066         $this->_domain = $domain;
00067     }
00068 
00080     public function setDomain($value)
00081     {
00082         $this->_domain = $value;
00083     }
00084 
00094     public function getDomain()
00095     {
00096         return $this->_domain;
00097     }
00098 
00108      public function getBaseUrl($domain = null)
00109      {
00110          if ($domain !== null) {
00111              return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain;
00112          }
00113          else if ($this->_domain !== null) {
00114              return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain;
00115          }
00116          else {
00117              require_once 'Zend/Gdata/App/InvalidArgumentException.php';
00118              throw new Zend_Gdata_App_InvalidArgumentException(
00119                  'Domain must be specified.');
00120          }
00121      }
00122 
00123 }
 All Data Structures Namespaces Files Functions Variables Enumerations