Card
in package
Table of Contents
Constants
Properties
Methods
- __construct() : mixed
- Each Card Instance point/ manipulate only one Card defined by constructor id.
- comment() : mixed
- Add or remove a Comment to card.
- comments() : mixed
- Retrieve the card comments.
- entity() : mixed
- labels() : mixed
- Retrieve the card labels.
- updateFields() : mixed
- updateLabels() : mixed
- Add and remove labels to the card.
- reload() : mixed
- Retrieve the entity of the card(id).
Constants
ADD
public
mixed
ADD
= 1
REMOVE
public
mixed
REMOVE
= 0
UPDATE
public
mixed
UPDATE
= 2
Properties
$card
private
Card|null
$card
= null
$id
private
int
$id
Methods
__construct()
Each Card Instance point/ manipulate only one Card defined by constructor id.
public
__construct(int $id) : mixed
Parameters
- $id : int
comment()
Add or remove a Comment to card.
public
comment(Comment $comment[, mixed $op = 1 ]) : mixed
Parameters
- $comment : Comment
- $op : mixed = 1
comments()
Retrieve the card comments.
public
comments() : mixed
entity()
public
entity() : mixed
labels()
Retrieve the card labels.
public
labels([Label|null $filter = null ]) : mixed
Parameters
- $filter : Label|null = null
updateFields()
public
updateFields(Card $card) : mixed
Parameters
- $card : Card
updateLabels()
Add and remove labels to the card.
public
updateLabels(label $label, int $op) : mixed
Parameters
- $label : label
- $op : int
reload()
Retrieve the entity of the card(id).
private
reload() : mixed