TrelloCurl
in package
Table of Contents
- $config : stdClass
- The project configuration
- $host : string
- The host of this handler
- $task : TaskProject
- The single task
- $url : string
- Buffer for url
- __construct() : mixed
- Trello Curl constructor.
- CreateCard() : Result
- Create a card in the project main list
- CreateCardHook() : Result
- Create a card hook for update calls
- DeleteBoard() : Result
- Close or archive a board
- DeleteCard() : Result
- Delete a single card
- UpdateBoard() : Result
- Update a board name
- addCredentials() : mixed
Properties
$config
The project configuration
private
stdClass
$config
= null
$host
The host of this handler
private
string
$host
= 'https://api.trello.com'
$task
The single task
private
TaskProject
$task
= null
$url
Buffer for url
private
string
$url
= null
Methods
__construct()
Trello Curl constructor.
public
__construct(TaskProject $task) : mixed
Parameters
- $task : TaskProject
-
The linked task
Return values
mixed —CreateCard()
Create a card in the project main list
public
CreateCard(Task $task, int $id) : Result
Parameters
- $task : Task
-
The task base object
- $id : int
-
The relation id
Return values
Result —The create result
CreateCardHook()
Create a card hook for update calls
public
CreateCardHook( $id, $internal_id) : Result
Parameters
Return values
Result —DeleteBoard()
Close or archive a board
public
DeleteBoard([bool $soft = false ]) : Result
Parameters
- $soft : bool = false
Return values
Result —DeleteCard()
Delete a single card
public
DeleteCard(int $card_id[, bool $soft = false ]) : Result
Parameters
- $card_id : int
- $soft : bool = false
-
When true the card is closed instead of being deleted
Return values
Result —UpdateBoard()
Update a board name
public
UpdateBoard() : Result
Return values
Result —addCredentials()
private
addCredentials() : mixed