| 1 | <?php |
||
| 13 | class Actions extends AbstractApi |
||
| 14 | { |
||
| 15 | protected $path = 'cards/#id#/actions'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get actions related to a given card |
||
| 19 | * @link https://trello.com/docs/api/card/#get-1-cards-card-id-or-shortlink-actions |
||
| 20 | * |
||
| 21 | * @param string $id the card's id or short link |
||
| 22 | * @param array $params optional parameters |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | 1 | public function all($id, array $params = array()) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Add comment to a given card |
||
| 33 | * @link https://trello.com/docs/api/card/#post-1-cards-card-id-or-shortlink-actions-comments |
||
| 34 | * |
||
| 35 | * @param string $id the card's id or short link |
||
| 36 | * @param string $text comment message |
||
| 37 | * |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 1 | public function addComment($id, $text) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Remove comment to a given card |
||
| 47 | * @link https://trello.com/docs/api/card/#delete-1-cards-card-id-or-shortlink-actions-idaction-comments |
||
| 48 | * |
||
| 49 | * @param string $id the card's id or short link |
||
| 50 | * @param string $commentId the comment's id |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | 1 | public function removeComment($id, $commentId) |
|
| 58 | } |
||
| 59 |