/** * set presenter data to html renderer * * @return $this */ public function setData() { $this->data = $this->presenter->getData(); return $this; }
/** * Get the instance as an array. * * @return array */ public function toArray() { return $this->presenter->getData(); }
/** * return json format string * * @param int $options options * @return string */ public function toJson($options = 0) { $this->data = $this->convert($this->presenter->getData()); return json_encode($this->data); }