Cheetah
Public Member Functions | Public Attributes | List of all members
Facebook\GraphNodes\GraphObjectFactory Class Reference
Inheritance diagram for Facebook\GraphNodes\GraphObjectFactory:
Facebook\GraphNodes\GraphNodeFactory

Public Member Functions

 makeGraphObject ($subclassName=null)
 
 makeGraphEvent ()
 
 makeGraphList ($subclassName=null, $auto_prefix=true)
 
- Public Member Functions inherited from Facebook\GraphNodes\GraphNodeFactory
 __construct (FacebookResponse $response)
 
 makeGraphNode ($subclassName=null)
 
 makeGraphAchievement ()
 
 makeGraphAlbum ()
 
 makeGraphPage ()
 
 makeGraphSessionInfo ()
 
 makeGraphUser ()
 
 makeGraphGroup ()
 
 makeGraphEdge ($subclassName=null, $auto_prefix=true)
 
 validateResponseAsArray ()
 
 validateResponseCastableAsGraphNode ()
 
 validateResponseCastableAsGraphEdge ()
 
 safelyMakeGraphNode (array $data, $subclassName=null)
 
 castAsGraphNodeOrGraphEdge (array $data, $subclassName=null, $parentKey=null, $parentNodeId=null)
 
 safelyMakeGraphEdge (array $data, $subclassName=null, $parentKey=null, $parentNodeId=null)
 
 getMetaData (array $data)
 

Public Attributes

const BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphObject'
 
const BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphList'
 
- Public Attributes inherited from Facebook\GraphNodes\GraphNodeFactory
const BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphNode'
 
const BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphEdge'
 
const BASE_GRAPH_OBJECT_PREFIX = '\Facebook\GraphNodes\\'
 

Additional Inherited Members

- Static Public Member Functions inherited from Facebook\GraphNodes\GraphNodeFactory
static isCastableAsGraphEdge (array $data)
 
static validateSubclass ($subclassName)
 
- Protected Attributes inherited from Facebook\GraphNodes\GraphNodeFactory
 $response
 
 $decodedBody
 

Detailed Description

Definition at line 36 of file GraphObjectFactory.php.

Member Function Documentation

◆ makeGraphEvent()

Facebook\GraphNodes\GraphObjectFactory::makeGraphEvent ( )

Convenience method for creating a GraphEvent collection.

Returns
GraphEvent
Exceptions
FacebookSDKException

Reimplemented from Facebook\GraphNodes\GraphNodeFactory.

Definition at line 69 of file GraphObjectFactory.php.

◆ makeGraphList()

Facebook\GraphNodes\GraphObjectFactory::makeGraphList (   $subclassName = null,
  $auto_prefix = true 
)

Tries to convert a FacebookResponse entity into a GraphEdge.

Parameters
string | null$subclassNameThe GraphNode sub class to cast the list items to.
boolean$auto_prefixToggle to auto-prefix the subclass name.
Returns
GraphEdge

Definition at line 84 of file GraphObjectFactory.php.

◆ makeGraphObject()

Facebook\GraphNodes\GraphObjectFactory::makeGraphObject (   $subclassName = null)

Tries to convert a FacebookResponse entity into a GraphNode.

Parameters
string | null$subclassNameThe GraphNode sub class to cast to.
Returns
GraphNode

Definition at line 57 of file GraphObjectFactory.php.

Member Data Documentation

◆ BASE_GRAPH_EDGE_CLASS

const Facebook\GraphNodes\GraphObjectFactory::BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphList'

@const string The base graph edge class.

Definition at line 46 of file GraphObjectFactory.php.

◆ BASE_GRAPH_NODE_CLASS

const Facebook\GraphNodes\GraphObjectFactory::BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphObject'

@const string The base graph object class.

Definition at line 41 of file GraphObjectFactory.php.


The documentation for this class was generated from the following file: