Ejemplo n.º 1
0
 /** Use the parent get function to get data and render
  * @access public
  * @return array
  */
 public function get()
 {
     $params = array($this->_system, $this->_coordinates, $this->_box);
     return parent::get(self::APIMETHOD, $params);
 }
Ejemplo n.º 2
0
 /** Get the data from the api
  * @access public
  * @return object
  */
 public function get()
 {
     $params = array($this->_ids, $this->_types, $this->_name);
     if (sizeof(array_filter($params)) > 1) {
         throw new Pas_Geo_Mapit_Exception('You have too many method calls');
     }
     return parent::get(self::APIMETHOD, $params);
 }
Ejemplo n.º 3
0
 /** Get the data from the api
  * @access public
  * @return type
  * @throws Pas_Geo_Mapit_Exception
  */
 public function get()
 {
     if (isset($this->_postcode) && isset($this->_partialPostCode)) {
         throw new Pas_Geo_Mapit_Exception('You cannot use both methods');
     }
     $params = array($this->_partial, $this->_postcode, $this->_partialPostCode);
     return parent::get(self::APIMETHOD, $params);
 }
Ejemplo n.º 4
0
 /** Get parent data
  * @access public
  * @return type
  */
 public function get()
 {
     return parent::get(self::APIMETHOD, $this->_createParams());
 }