Пример #1
0
 public function toXml(array $options = array())
 {
     return parent::toXml(array_merge($options, ['attributes' => $this->api_attributes()]));
 }
Пример #2
0
 public function toXml(array $options = [])
 {
     return parent::toXml(['attributes' => ['id' => $this->id, 'post_id' => $this->post_id, 'tags' => $this->tags], 'root' => "tag_history"]);
 }
Пример #3
0
 public function toXml(array $options = [])
 {
     return parent::toXml(array_merge($options, ['root' => "forum-post", 'attributes' => $this->api_attributes()]));
 }
Пример #4
0
 public function toXml(array $options = [])
 {
     return parent::toXml(array_merge($options, ['root' => 'wiki_page', 'attributes' => ['id' => $this->id, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'title' => $this->title, 'body' => $this->body, 'updater_id' => $this->user_id, 'locked' => (bool) (int) $this->is_locked, 'version' => $this->version]]));
 }
Пример #5
0
 public function toXml(array $options = array())
 {
     $options['root'] = "artist";
     $options['attributes'] = $this->api_attributes();
     return parent::toXml($options);
 }