Пример #1
0
 public function toArray()
 {
     return array_merge(parent::toArray(), array('title' => $this->getTitle(), 'body' => $this->getBody()));
 }
Пример #2
0
 /**
  * Create Quote Post array
  * 
  * @return array
  */
 public function toArray()
 {
     return array_merge(parent::toArray(), array('quote' => $this->getQuote(), 'source' => $this->getSource()));
 }
Пример #3
0
 /**
  * Create Link Post data array
  *
  * @return array
  */
 public function toArray()
 {
     return array_merge(parent::toArray(), array('name' => $this->getName(), 'url' => $this->getLinkUrl(), 'description' => $this->getDescription()));
 }