Beispiel #1
0
 public function getData(&$response = null)
 {
     // this happens when we start out at the top level of a service instance
     if (!$this->selectedLayer && $this->action == self::ACTION_PLACEMARKS) {
         return array();
     }
     $data = parent::getData();
     if ($data === null) {
         $data = array();
     }
     return $data;
 }
 public function getData(&$response = null)
 {
     // this happens when we start out at the top level of a service instance
     // Use strlen to protect against a layer id of 0
     if (strlen($this->selectedLayer) == 0 && $this->action == self::ACTION_PLACEMARKS) {
         return array();
     }
     $data = parent::getData($response);
     if ($data === null) {
         $data = array();
     }
     return $data;
 }