Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Docs/Query.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once('Zend/Gdata/Query.php');
00028 
00040 class Zend_Gdata_Docs_Query extends Zend_Gdata_Query
00041 {
00042 
00048     const DOCUMENTS_LIST_FEED_URI = 'http://docs.google.com/feeds/documents';
00049 
00055     protected $_defaultFeedUri = self::DOCUMENTS_LIST_FEED_URI;
00056 
00064     protected $_visibility = 'private';
00065 
00073     protected $_projection = 'full';
00074 
00078     public function __construct()
00079     {
00080         parent::__construct();
00081     }
00082 
00090     public function setProjection($value)
00091     {
00092         $this->_projection = $value;
00093         return $this;
00094     }
00095 
00102     public function setVisibility($value)
00103     {
00104         $this->_visibility = $value;
00105         return $this;
00106     }
00107 
00113     public function getProjection()
00114     {
00115         return $this->_projection;
00116     }
00117 
00123     public function getVisibility()
00124     {
00125         return $this->_visibility;
00126     }
00127 
00136     public function setTitle($value)
00137     {
00138         if ($value !== null) {
00139             $this->_params['title'] = $value;
00140         } else {
00141             unset($this->_params['title']);
00142         }
00143         return $this;
00144     }
00145 
00151     public function getTitle()
00152     {
00153         if (array_key_exists('title', $this->_params)) {
00154             return $this->_params['title'];
00155         } else {
00156             return null;
00157         }
00158     }
00159 
00169     public function setTitleExact($value)
00170     {
00171         if ($value) {
00172             $this->_params['title-exact'] = $value;
00173         } else {
00174             unset($this->_params['title-exact']);
00175         }
00176         return $this;
00177     }
00178 
00184     public function getTitleExact()
00185     {
00186         if (array_key_exists('title-exact', $this->_params)) {
00187             return $this->_params['title-exact'];
00188         } else {
00189             return false;
00190         }
00191     }
00192 
00198     public function getQueryUrl()
00199     {
00200         $uri = $this->_defaultFeedUri;
00201 
00202         if ($this->_visibility !== null) {
00203             $uri .= '/' . $this->_visibility;
00204         } else {
00205             require_once 'Zend/Gdata/App/Exception.php';
00206             throw new Zend_Gdata_App_Exception(
00207                 'A visibility must be provided for cell queries.');
00208         }
00209 
00210         if ($this->_projection !== null) {
00211             $uri .= '/' . $this->_projection;
00212         } else {
00213             require_once 'Zend/Gdata/App/Exception.php';
00214             throw new Zend_Gdata_App_Exception(
00215                 'A projection must be provided for cell queries.');
00216         }
00217 
00218         $uri .= $this->getQueryString();
00219         return $uri;
00220     }
00221 
00222 }
 All Data Structures Namespaces Files Functions Variables Enumerations