コード例 #1
0
 /**
  * Performs a GET for a list ID on the resource.
  * @param WList $list - The list id.
  * @return ArrayCollection
  */
 public function forList(WList $list)
 {
     return $this->getItemsForAttribute($this->getBaseUrl(), 'list_id', $list->getId(), "ArrayCollection<{$this->type}>");
 }
コード例 #2
0
ファイル: TaskService.php プロジェクト: italolelis/wunderlist
 public function forList(WList $list, $completed = false)
 {
     $data = ['list_id' => $list->getId(), 'completed' => $completed];
     return $this->getItemsForAttributes($this->getBaseUrl(), $data, "ArrayCollection<{$this->type}>");
 }
コード例 #3
0
ファイル: ListService.php プロジェクト: italolelis/wunderlist
 public function makePrivate(WList $data)
 {
     return $this->patch($this->getBaseUrl() . '/' . $data->getId(), $this->type, ['public' => false]);
 }