Cheetah
Public Member Functions | Static Protected Attributes | List of all members
Facebook\GraphNodes\GraphAchievement Class Reference
Inheritance diagram for Facebook\GraphNodes\GraphAchievement:
Facebook\GraphNodes\GraphNode Facebook\GraphNodes\Collection

Public Member Functions

 getId ()
 
 getFrom ()
 
 getPublishTime ()
 
 getApplication ()
 
 getData ()
 
 getType ()
 
 isNoFeedStory ()
 
- Public Member Functions inherited from Facebook\GraphNodes\GraphNode
 __construct (array $data=[])
 
 castItems (array $data)
 
 uncastItems ()
 
 asJson ($options=0)
 
 isIso8601DateString ($string)
 
 shouldCastAsDateTime ($key)
 
 castToDateTime ($value)
 
 castToBirthday ($value)
 
- Public Member Functions inherited from Facebook\GraphNodes\Collection
 getField ($name, $default=null)
 
 getProperty ($name, $default=null)
 
 getFieldNames ()
 
 getPropertyNames ()
 
 all ()
 
 asArray ()
 
 map (\Closure $callback)
 
 count ()
 
 getIterator ()
 
 offsetExists ($key)
 
 offsetGet ($key)
 
 offsetSet ($key, $value)
 
 offsetUnset ($key)
 
 __toString ()
 

Static Protected Attributes

static $graphObjectMap
 
- Static Protected Attributes inherited from Facebook\GraphNodes\GraphNode
static $graphObjectMap = []
 

Additional Inherited Members

- Static Public Member Functions inherited from Facebook\GraphNodes\GraphNode
static getObjectMap ()
 
- Protected Attributes inherited from Facebook\GraphNodes\Collection
 $items = []
 

Detailed Description

Definition at line 31 of file GraphAchievement.php.

Member Function Documentation

◆ getApplication()

Facebook\GraphNodes\GraphAchievement::getApplication ( )

Returns the app in which the user achieved this.

Returns
GraphApplication|null

Definition at line 76 of file GraphAchievement.php.

◆ getData()

Facebook\GraphNodes\GraphAchievement::getData ( )

Returns information about the achievement type this instance is connected with.

Returns
array|null

Definition at line 86 of file GraphAchievement.php.

◆ getFrom()

Facebook\GraphNodes\GraphAchievement::getFrom ( )

Returns the user who achieved this.

Returns
GraphUser|null

Definition at line 56 of file GraphAchievement.php.

◆ getId()

Facebook\GraphNodes\GraphAchievement::getId ( )

Returns the ID for the achievement.

Returns
string|null

Definition at line 46 of file GraphAchievement.php.

◆ getPublishTime()

Facebook\GraphNodes\GraphAchievement::getPublishTime ( )

Returns the time at which this was achieved.

Returns
\DateTime|null

Definition at line 66 of file GraphAchievement.php.

◆ getType()

Facebook\GraphNodes\GraphAchievement::getType ( )

Returns the type of achievement.

See also
https://developers.facebook.com/docs/graph-api/reference/achievement
Returns
string

Definition at line 98 of file GraphAchievement.php.

◆ isNoFeedStory()

Facebook\GraphNodes\GraphAchievement::isNoFeedStory ( )

Indicates whether gaining the achievement published a feed story for the user.

Returns
boolean|null

Definition at line 108 of file GraphAchievement.php.

Member Data Documentation

◆ $graphObjectMap

Facebook\GraphNodes\GraphAchievement::$graphObjectMap
staticprotected
Initial value:
= [
'from' => '\Facebook\GraphNodes\GraphUser',
'application' => '\Facebook\GraphNodes\GraphApplication',
]

Definition at line 36 of file GraphAchievement.php.


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