Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }