| 1 | <?php |
||
| 12 | class CustomFieldItems extends AbstractApi |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Base path of cards api |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $path = 'cards/#id#/'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get custom fiedls items related to a given card |
||
| 22 | * @link https://developers.trello.com/docs/getting-started-custom-fields#section-getting-customfielditems-for-cards |
||
| 23 | * |
||
| 24 | * @param string $id the card's id or short link |
||
| 25 | * @param array $params optional parameters |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function all($id, array $params = array()) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Update a given custom field value on a given card |
||
| 39 | * @link https://developers.trello.com/docs/getting-started-custom-fields#section-setting-updating-customfielditems |
||
| 40 | * |
||
| 41 | * @param string $id the card's id or short link |
||
| 42 | * @param string $customFieldId the card's id or short link |
||
| 43 | * @param array $value the member's id |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function update($id, $customFieldId, $value = array()) |
||
| 56 | } |
||
| 57 |