-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrelloWireCard.module
86 lines (79 loc) · 1.84 KB
/
TrelloWireCard.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
namespace ProcessWire;
class TrelloWireCard extends WireData implements Module
{
public static function getModuleInfo()
{
return [
'title' => __('Trello Wire Card'),
'summary' => __('TrelloWire: Card component (installed automatically).'),
'author' => "Moritz L'Hoest",
'version' => '1.0.0',
'icon' => 'trello',
'requires' => [
'PHP>=7.2',
],
];
}
/**
* Set the page this card belongs to.
*
* @param Page $page
* @return void
*/
public function ___setPage(Page $page): void
{
$this->set('page', $page);
}
/**
* Set this card's ID (only used for cards that already exist in Trello).
*
* @param string $id
* @return void
*/
public function ___setId(string $id): void
{
$this->set('id', $id);
}
/**
* Set the ID of the list this card belongs to.
*
* @param string $idList
* @return void
*/
public function ___setList(string $idList): void
{
$this->set('list', $idList);
}
/**
* Set the title / name of this card.
*
* @param string $title
* @return void
*/
public function ___setTitle(string $title): void
{
$this->set('title', $title);
}
/**
* Set the body / description of this card.
*
* @param string $body
* @return void
*/
public function ___setBody(string $body): void
{
$this->set('body', $body);
}
/**
* Set the IDs of labels belonging to this cards. Note that label IDs are
* specific to each board.
*
* @param array $labelIds
* @return void
*/
public function ___setLabels(array $labelIds): void
{
$this->set('labels', $labelIds);
}
}