コード例 #1
0
ファイル: Comment.php プロジェクト: JCQS04/myimouto
 public function toXml(array $options = array())
 {
     return parent::toXml(array_merge($options, ['attributes' => $this->api_attributes()]));
 }
コード例 #2
0
ファイル: PostTagHistory.php プロジェクト: JCQS04/myimouto
 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
ファイル: ForumPost.php プロジェクト: JCQS04/myimouto
 public function toXml(array $options = [])
 {
     return parent::toXml(array_merge($options, ['root' => "forum-post", 'attributes' => $this->api_attributes()]));
 }
コード例 #4
0
ファイル: WikiPage.php プロジェクト: JCQS04/myimouto
 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
ファイル: Artist.php プロジェクト: JCQS04/myimouto
 public function toXml(array $options = array())
 {
     $options['root'] = "artist";
     $options['attributes'] = $this->api_attributes();
     return parent::toXml($options);
 }