Esempio n. 1
0
 public function fetch()
 {
     $selector = new Selector($this->data);
     if ($this->limit > 1) {
         return $selector->getList($this->path, $this->default);
     }
     return $selector->getOne($this->path, $this->default);
 }
Esempio n. 2
0
 /**
  * [getOne description]
  * @param  string $path    [description]
  * @param  [type] $default [description]
  * @return [type]          [description]
  */
 private function getOne($path, $default)
 {
     $selector = new Selector($this->data);
     return $selector->getOne($path, $default);
 }