Definition at line 31 of file GraphNode.php.
◆ __construct()
Facebook\GraphNodes\GraphNode::__construct |
( |
array |
$data = [] | ) |
|
◆ asJson()
Facebook\GraphNodes\GraphNode::asJson |
( |
|
$options = 0 | ) |
|
◆ castItems()
Facebook\GraphNodes\GraphNode::castItems |
( |
array |
$data | ) |
|
Iterates over an array and detects the types each node should be cast to and returns all the items as an array.
@TODO Add auto-casting to AccessToken entities.
- Parameters
-
array | $data | The array to iterate over. |
- Returns
- array
Definition at line 58 of file GraphNode.php.
◆ castToBirthday()
Facebook\GraphNodes\GraphNode::castToBirthday |
( |
|
$value | ) |
|
◆ castToDateTime()
Facebook\GraphNodes\GraphNode::castToDateTime |
( |
|
$value | ) |
|
Casts a date value from Graph to DateTime.
- Parameters
-
- Returns
- \DateTime
Definition at line 164 of file GraphNode.php.
◆ getObjectMap()
static Facebook\GraphNodes\GraphNode::getObjectMap |
( |
| ) |
|
|
static |
Getter for $graphObjectMap.
- Returns
- array
Definition at line 193 of file GraphNode.php.
◆ isIso8601DateString()
Facebook\GraphNodes\GraphNode::isIso8601DateString |
( |
|
$string | ) |
|
◆ shouldCastAsDateTime()
Facebook\GraphNodes\GraphNode::shouldCastAsDateTime |
( |
|
$key | ) |
|
Determines if a value from Graph should be cast to DateTime.
- Parameters
-
- Returns
- boolean
Definition at line 143 of file GraphNode.php.
◆ uncastItems()
Facebook\GraphNodes\GraphNode::uncastItems |
( |
| ) |
|
Uncasts any auto-casted datatypes. Basically the reverse of castItems().
- Returns
- array
Definition at line 84 of file GraphNode.php.
◆ $graphObjectMap
Facebook\GraphNodes\GraphNode::$graphObjectMap = [] |
|
staticprotected |
The documentation for this class was generated from the following file: