/** * Overwrites the original DataMapper to_array() to add some elements * * @param array $fields * @return array */ public function to_array($fields = '') { $result = parent::to_array($fields = ''); $result["thumb_url"] = $this->get_thumb(); $result["fullsized_thumb_url"] = $this->get_thumb(true); $result["href"] = $this->href(); return $result; }
/** * Overwrites the original DataMapper to_array() to add some elements * * @param array $fields * @return array */ public function to_array($fields = '') { $result = parent::to_array($fields = ''); $result["href"] = $this->href(); return $result; }
/** * Overwrites the original DataMapper to_array() to add some elements * * @param array $fields * @return array */ public function to_array($fields = '') { $result = parent::to_array($fields = ''); $result["href"] = $this->href(); $result["title"] = $this->title(); $result["download_href"] = $this->download_href(); return $result; }