code
stringlengths
17
247k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function getPrivacy() { return $this->getField('privacy'); }
Returns the privacy settings for the album. @return string|null
getPrivacy
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAlbum.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAlbum.php
MIT
public function __construct(FacebookRequest $request, array $data = [], array $metaData = [], $parentEdgeEndpoint = null, $subclassName = null) { $this->request = $request; $this->metaData = $metaData; $this->parentEdgeEndpoint = $parentEdgeEndpoint; $this->subclassName = $subclassName; parent::__construct($data); }
Init this collection of GraphNode's. @param FacebookRequest $request The original request that generated this data. @param array $data An array of GraphNode's. @param array $metaData An array of Graph meta data like pagination, etc. @param string|null $parentEdgeEndpoint The parent Graph edge endpoint that generated the list. @param string|null $subclassName The subclass of the child GraphNode's.
__construct
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getParentGraphEdge() { return $this->parentEdgeEndpoint; }
Gets the parent Graph edge endpoint that generated the list. @return string|null
getParentGraphEdge
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getSubClassName() { return $this->subclassName; }
Gets the subclass name that the child GraphNode's are cast as. @return string|null
getSubClassName
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getMetaData() { return $this->metaData; }
Returns the raw meta data associated with this GraphEdge. @return array
getMetaData
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getNextCursor() { return $this->getCursor('after'); }
Returns the next cursor if it exists. @return string|null
getNextCursor
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getPreviousCursor() { return $this->getCursor('before'); }
Returns the previous cursor if it exists. @return string|null
getPreviousCursor
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getCursor($direction) { if (isset($this->metaData['paging']['cursors'][$direction])) { return $this->metaData['paging']['cursors'][$direction]; } return null; }
Returns the cursor for a specific direction if it exists. @param string $direction The direction of the page: after|before @return string|null
getCursor
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getPaginationUrl($direction) { $this->validateForPagination(); // Do we have a paging URL? if (!isset($this->metaData['paging'][$direction])) { return null; } $pageUrl = $this->metaData['paging'][$direction]; return FacebookUrlManipulator::baseGraphUrlEndpoint($pageUrl); }
Generates a pagination URL based on a cursor. @param string $direction The direction of the page: next|previous @return string|null @throws FacebookSDKException
getPaginationUrl
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function validateForPagination() { if ($this->request->getMethod() !== 'GET') { throw new FacebookSDKException('You can only paginate on a GET request.', 720); } }
Validates whether or not we can paginate on this request. @throws FacebookSDKException
validateForPagination
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getPaginationRequest($direction) { $pageUrl = $this->getPaginationUrl($direction); if (!$pageUrl) { return null; } $newRequest = clone $this->request; $newRequest->setEndpoint($pageUrl); return $newRequest; }
Gets the request object needed to make a next|previous page request. @param string $direction The direction of the page: next|previous @return FacebookRequest|null @throws FacebookSDKException
getPaginationRequest
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getNextPageRequest() { return $this->getPaginationRequest('next'); }
Gets the request object needed to make a "next" page request. @return FacebookRequest|null @throws FacebookSDKException
getNextPageRequest
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getPreviousPageRequest() { return $this->getPaginationRequest('previous'); }
Gets the request object needed to make a "previous" page request. @return FacebookRequest|null @throws FacebookSDKException
getPreviousPageRequest
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function getTotalCount() { if (isset($this->metaData['summary']['total_count'])) { return $this->metaData['summary']['total_count']; } return null; }
The total number of results according to Graph if it exists. This will be returned if the summary=true modifier is present in the request. @return int|null
getTotalCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEdge.php
MIT
public function isSilhouette() { return $this->getField('is_silhouette'); }
Returns true if user picture is silhouette. @return bool|null
isSilhouette
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
MIT
public function getUrl() { return $this->getField('url'); }
Returns the url of user picture if it exists @return string|null
getUrl
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
MIT
public function getWidth() { return $this->getField('width'); }
Returns the width of user picture if it exists @return int|null
getWidth
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
MIT
public function getHeight() { return $this->getField('height'); }
Returns the height of user picture if it exists @return int|null
getHeight
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPicture.php
MIT
public function getId() { return $this->getField('id'); }
Returns the `id` (The Group ID) as string if present. @return string|null
getId
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getCover() { return $this->getField('cover'); }
Returns the `cover` (The cover photo of the Group) as GraphCoverPhoto if present. @return GraphCoverPhoto|null
getCover
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getEmail() { return $this->getField('email'); }
Returns the `email` (The email address to upload content to the Group. Only current members of the Group can use this) as string if present. @return string|null
getEmail
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getIcon() { return $this->getField('icon'); }
Returns the `icon` (The URL for the Group's icon) as string if present. @return string|null
getIcon
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getMemberRequestCount() { return $this->getField('member_request_count'); }
Returns the `member_request_count` (Number of people asking to join the group.) as int if present. @return int|null
getMemberRequestCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getOwner() { return $this->getField('owner'); }
Returns the `owner` (The profile that created this Group) as GraphNode if present. @return GraphNode|null
getOwner
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getParent() { return $this->getField('parent'); }
Returns the `parent` (The parent Group of this Group, if it exists) as GraphNode if present. @return GraphNode|null
getParent
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function getVenue() { return $this->getField('venue'); }
Returns the `venue` (The location for the Group) as GraphLocation if present. @return GraphLocation|null
getVenue
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphGroup.php
MIT
public function castItems(array $data) { $items = []; foreach ($data as $k => $v) { if ($this->shouldCastAsDateTime($k) && (is_numeric($v) || $this->isIso8601DateString($v)) ) { $items[$k] = $this->castToDateTime($v); } elseif ($k === 'birthday') { $items[$k] = $this->castToBirthday($v); } else { $items[$k] = $v; } } return $items; }
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. @param array $data The array to iterate over. @return array
castItems
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function uncastItems() { $items = $this->asArray(); return array_map(function ($v) { if ($v instanceof \DateTime) { return $v->format(\DateTime::ISO8601); } return $v; }, $items); }
Uncasts any auto-casted datatypes. Basically the reverse of castItems(). @return array
uncastItems
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function asJson($options = 0) { return json_encode($this->uncastItems(), $options); }
Get the collection of items as JSON. @param int $options @return string
asJson
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function isIso8601DateString($string) { // This insane regex was yoinked from here: // http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/ // ...and I'm all like: // http://thecodinglove.com/post/95378251969/when-code-works-and-i-dont-know-why $crazyInsaneRegexThatSomehowDetectsIso8601 = '/^([\+-]?\d{4}(?!\d{2}\b))' . '((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?' . '|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d' . '|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])' . '((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d' . '([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/'; return preg_match($crazyInsaneRegexThatSomehowDetectsIso8601, $string) === 1; }
Detects an ISO 8601 formatted string. @param string $string @return boolean @see https://developers.facebook.com/docs/graph-api/using-graph-api/#readmodifiers @see http://www.cl.cam.ac.uk/~mgk25/iso-time.html @see http://en.wikipedia.org/wiki/ISO_8601
isIso8601DateString
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function shouldCastAsDateTime($key) { return in_array($key, [ 'created_time', 'updated_time', 'start_time', 'end_time', 'backdated_time', 'issued_at', 'expires_at', 'publish_time' ], true); }
Determines if a value from Graph should be cast to DateTime. @param string $key @return boolean
shouldCastAsDateTime
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function castToDateTime($value) { if (is_int($value)) { $dt = new \DateTime(); $dt->setTimestamp($value); } else { $dt = new \DateTime($value); } return $dt; }
Casts a date value from Graph to DateTime. @param int|string $value @return \DateTime
castToDateTime
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function castToBirthday($value) { return new Birthday($value); }
Casts a birthday value from Graph to Birthday @param string $value @return Birthday
castToBirthday
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNode.php
MIT
public function makeGraphObject($subclassName = null) { return $this->makeGraphNode($subclassName); }
Tries to convert a FacebookResponse entity into a GraphNode. @param string|null $subclassName The GraphNode sub class to cast to. @return GraphNode @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory
makeGraphObject
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
MIT
public function makeGraphEvent() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphEvent'); }
Convenience method for creating a GraphEvent collection. @return GraphEvent @throws FacebookSDKException
makeGraphEvent
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
MIT
public function makeGraphList($subclassName = null, $auto_prefix = true) { return $this->makeGraphEdge($subclassName, $auto_prefix); }
Tries to convert a FacebookResponse entity into a GraphEdge. @param string|null $subclassName The GraphNode sub class to cast the list items to. @param boolean $auto_prefix Toggle to auto-prefix the subclass name. @return GraphEdge @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory
makeGraphList
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php
MIT
public function getField($name, $default = null) { if (isset($this->items[$name])) { return $this->items[$name]; } return $default; }
Gets the value of a field from the Graph node. @param string $name The field to retrieve. @param mixed $default The default to return if the field doesn't exist. @return mixed
getField
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function getProperty($name, $default = null) { return $this->getField($name, $default); }
Gets the value of the named property for this graph object. @param string $name The property to retrieve. @param mixed $default The default to return if the property doesn't exist. @return mixed @deprecated 5.0.0 getProperty() has been renamed to getField() @todo v6: Remove this method
getProperty
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function getFieldNames() { return array_keys($this->items); }
Returns a list of all fields set on the object. @return array
getFieldNames
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function getPropertyNames() { return $this->getFieldNames(); }
Returns a list of all properties set on the object. @return array @deprecated 5.0.0 getPropertyNames() has been renamed to getFieldNames() @todo v6: Remove this method
getPropertyNames
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function all() { return $this->items; }
Get all of the items in the collection. @return array
all
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function asArray() { return array_map(function ($value) { return $value instanceof Collection ? $value->asArray() : $value; }, $this->items); }
Get the collection of items as a plain array. @return array
asArray
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function map(\Closure $callback) { return new static(array_map($callback, $this->items, array_keys($this->items))); }
Run a map over each of the items. @param \Closure $callback @return static
map
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function count() { return count($this->items); }
Count the number of items in the collection. @return int
count
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function offsetExists($key) { return array_key_exists($key, $this->items); }
Determine if an item exists at an offset. @param mixed $key @return bool
offsetExists
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function offsetGet($key) { return $this->items[$key]; }
Get an item at a given offset. @param mixed $key @return mixed
offsetGet
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function offsetSet($key, $value) { if (is_null($key)) { $this->items[] = $value; } else { $this->items[$key] = $value; } }
Set the item at a given offset. @param mixed $key @param mixed $value @return void
offsetSet
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function offsetUnset($key) { unset($this->items[$key]); }
Unset the item at a given offset. @param string $key @return void
offsetUnset
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function __toString() { return $this->asJson(); }
Convert the collection to its string representation. @return string
__toString
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Collection.php
MIT
public function getSource() { return $this->getField('source'); }
Returns the source of cover if it exists @return string|null
getSource
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
MIT
public function getOffsetX() { return $this->getField('offset_x'); }
Returns the offset_x of cover if it exists @return int|null
getOffsetX
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
MIT
public function getOffsetY() { return $this->getField('offset_y'); }
Returns the offset_y of cover if it exists @return int|null
getOffsetY
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphCoverPhoto.php
MIT
public function makeGraphNode($subclassName = null) { $this->validateResponseAsArray(); $this->validateResponseCastableAsGraphNode(); return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName); }
Tries to convert a FacebookResponse entity into a GraphNode. @param string|null $subclassName The GraphNode sub class to cast to. @return GraphNode @throws FacebookSDKException
makeGraphNode
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphAchievement() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphAchievement'); }
Convenience method for creating a GraphAchievement collection. @return GraphAchievement @throws FacebookSDKException
makeGraphAchievement
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphAlbum() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphAlbum'); }
Convenience method for creating a GraphAlbum collection. @return GraphAlbum @throws FacebookSDKException
makeGraphAlbum
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphPage() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphPage'); }
Convenience method for creating a GraphPage collection. @return GraphPage @throws FacebookSDKException
makeGraphPage
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphSessionInfo() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphSessionInfo'); }
Convenience method for creating a GraphSessionInfo collection. @return GraphSessionInfo @throws FacebookSDKException
makeGraphSessionInfo
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphUser() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphUser'); }
Convenience method for creating a GraphUser collection. @return GraphUser @throws FacebookSDKException
makeGraphUser
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphGroup() { return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphGroup'); }
Convenience method for creating a GraphGroup collection. @return GraphGroup @throws FacebookSDKException
makeGraphGroup
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function makeGraphEdge($subclassName = null, $auto_prefix = true) { $this->validateResponseAsArray(); $this->validateResponseCastableAsGraphEdge(); if ($subclassName && $auto_prefix) { $subclassName = static::BASE_GRAPH_OBJECT_PREFIX . $subclassName; } return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName); }
Tries to convert a FacebookResponse entity into a GraphEdge. @param string|null $subclassName The GraphNode sub class to cast the list items to. @param boolean $auto_prefix Toggle to auto-prefix the subclass name. @return GraphEdge @throws FacebookSDKException
makeGraphEdge
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function validateResponseCastableAsGraphNode() { if (isset($this->decodedBody['data']) && static::isCastableAsGraphEdge($this->decodedBody['data'])) { throw new FacebookSDKException( 'Unable to convert response from Graph to a GraphNode because the response looks like a GraphEdge. Try using GraphNodeFactory::makeGraphEdge() instead.', 620 ); } }
Validates that the return data can be cast as a GraphNode. @throws FacebookSDKException
validateResponseCastableAsGraphNode
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function validateResponseCastableAsGraphEdge() { if (!(isset($this->decodedBody['data']) && static::isCastableAsGraphEdge($this->decodedBody['data']))) { throw new FacebookSDKException( 'Unable to convert response from Graph to a GraphEdge because the response does not look like a GraphEdge. Try using GraphNodeFactory::makeGraphNode() instead.', 620 ); } }
Validates that the return data can be cast as a GraphEdge. @throws FacebookSDKException
validateResponseCastableAsGraphEdge
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function safelyMakeGraphNode(array $data, $subclassName = null) { $subclassName = $subclassName ?: static::BASE_GRAPH_NODE_CLASS; static::validateSubclass($subclassName); // Remember the parent node ID $parentNodeId = isset($data['id']) ? $data['id'] : null; $items = []; foreach ($data as $k => $v) { // Array means could be recurable if (is_array($v)) { // Detect any smart-casting from the $graphObjectMap array. // This is always empty on the GraphNode collection, but subclasses can define // their own array of smart-casting types. $graphObjectMap = $subclassName::getObjectMap(); $objectSubClass = isset($graphObjectMap[$k]) ? $graphObjectMap[$k] : null; // Could be a GraphEdge or GraphNode $items[$k] = $this->castAsGraphNodeOrGraphEdge($v, $objectSubClass, $k, $parentNodeId); } else { $items[$k] = $v; } } return new $subclassName($items); }
Safely instantiates a GraphNode of $subclassName. @param array $data The array of data to iterate over. @param string|null $subclassName The subclass to cast this collection to. @return GraphNode @throws FacebookSDKException
safelyMakeGraphNode
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function castAsGraphNodeOrGraphEdge(array $data, $subclassName = null, $parentKey = null, $parentNodeId = null) { if (isset($data['data'])) { // Create GraphEdge if (static::isCastableAsGraphEdge($data['data'])) { return $this->safelyMakeGraphEdge($data, $subclassName, $parentKey, $parentNodeId); } // Sometimes Graph is a weirdo and returns a GraphNode under the "data" key $data = $data['data']; } // Create GraphNode return $this->safelyMakeGraphNode($data, $subclassName); }
Takes an array of values and determines how to cast each node. @param array $data The array of data to iterate over. @param string|null $subclassName The subclass to cast this collection to. @param string|null $parentKey The key of this data (Graph edge). @param string|null $parentNodeId The parent Graph node ID. @return GraphNode|GraphEdge @throws FacebookSDKException
castAsGraphNodeOrGraphEdge
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function getMetaData(array $data) { unset($data['data']); return $data; }
Get the meta data from a list in a Graph response. @param array $data The Graph response. @return array
getMetaData
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public static function isCastableAsGraphEdge(array $data) { if ($data === []) { return true; } // Checks for a sequential numeric array which would be a GraphEdge return array_keys($data) === range(0, count($data) - 1); }
Determines whether or not the data should be cast as a GraphEdge. @param array $data @return boolean
isCastableAsGraphEdge
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public static function validateSubclass($subclassName) { if ($subclassName == static::BASE_GRAPH_NODE_CLASS || is_subclass_of($subclassName, static::BASE_GRAPH_NODE_CLASS)) { return; } throw new FacebookSDKException('The given subclass "' . $subclassName . '" is not valid. Cannot cast to an object that is not a GraphNode subclass.', 620); }
Ensures that the subclass in question is valid. @param string $subclassName The GraphNode subclass to validate. @throws FacebookSDKException
validateSubclass
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
MIT
public function getEndTime() { return $this->getField('end_time'); }
Returns the `end_time` (End time, if one has been set) as DateTime if present. @return \DateTime|null
getEndTime
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getIsDateOnly() { return $this->getField('is_date_only'); }
Returns the `is_date_only` (Whether the event only has a date specified, but no time) as bool if present. @return bool|null
getIsDateOnly
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getParentGroup() { return $this->getField('parent_group'); }
Returns the `parent_group` (The group the event belongs to) as GraphGroup if present. @return GraphGroup|null
getParentGroup
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getStartTime() { return $this->getField('start_time'); }
Returns the `start_time` (Start time) as DateTime if present. @return \DateTime|null
getStartTime
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getTicketUri() { return $this->getField('ticket_uri'); }
Returns the `ticket_uri` (The link users can visit to buy a ticket to this event) as string if present. @return string|null
getTicketUri
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getTimezone() { return $this->getField('timezone'); }
Returns the `timezone` (Timezone) as string if present. @return string|null
getTimezone
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getPicture() { return $this->getField('picture'); }
Returns the `picture` (Event picture) as GraphPicture if present. @return GraphPicture|null
getPicture
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getAttendingCount() { return $this->getField('attending_count'); }
Returns the `attending_count` (Number of people attending the event) as int if present. @return int|null
getAttendingCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getDeclinedCount() { return $this->getField('declined_count'); }
Returns the `declined_count` (Number of people who declined the event) as int if present. @return int|null
getDeclinedCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getMaybeCount() { return $this->getField('maybe_count'); }
Returns the `maybe_count` (Number of people who maybe going to the event) as int if present. @return int|null
getMaybeCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getNoreplyCount() { return $this->getField('noreply_count'); }
Returns the `noreply_count` (Number of people who did not reply to the event) as int if present. @return int|null
getNoreplyCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getInvitedCount() { return $this->getField('invited_count'); }
Returns the `invited_count` (Number of people invited to the event) as int if present. @return int|null
getInvitedCount
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphEvent.php
MIT
public function getPublishTime() { return $this->getField('publish_time'); }
Returns the time at which this was achieved. @return \DateTime|null
getPublishTime
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
MIT
public function getApplication() { return $this->getField('application'); }
Returns the app in which the user achieved this. @return GraphApplication|null
getApplication
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
MIT
public function getData() { return $this->getField('data'); }
Returns information about the achievement type this instance is connected with. @return array|null
getData
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
MIT
public function getType() { return 'game.achievement'; }
Returns the type of achievement. @see https://developers.facebook.com/docs/graph-api/reference/achievement @return string
getType
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
MIT
public function isNoFeedStory() { return $this->getField('no_feed_story'); }
Indicates whether gaining the achievement published a feed story for the user. @return boolean|null
isNoFeedStory
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphAchievement.php
MIT
public function getCategory() { return $this->getField('category'); }
Returns the Category for the user's page as a string if present. @return string|null
getCategory
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
MIT
public function getBestPage() { return $this->getField('best_page'); }
Returns the best available Page on Facebook. @return GraphPage|null
getBestPage
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
MIT
public function getGlobalBrandParentPage() { return $this->getField('global_brand_parent_page'); }
Returns the brand's global (parent) Page. @return GraphPage|null
getGlobalBrandParentPage
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
MIT
public function getAccessToken() { return $this->getField('access_token'); }
Returns the page access token for the admin user. Only available in the `/me/accounts` context. @return string|null
getAccessToken
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
MIT
public function getPerms() { return $this->getField('perms'); }
Returns the roles of the page admin user. Only available in the `/me/accounts` context. @return array|null
getPerms
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphPage.php
MIT
public function getFirstName() { return $this->getField('first_name'); }
Returns the first name for the user as a string if present. @return string|null
getFirstName
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getMiddleName() { return $this->getField('middle_name'); }
Returns the middle name for the user as a string if present. @return string|null
getMiddleName
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getLastName() { return $this->getField('last_name'); }
Returns the last name for the user as a string if present. @return string|null
getLastName
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getGender() { return $this->getField('gender'); }
Returns the gender for the user as a string if present. @return string|null
getGender
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getBirthday() { return $this->getField('birthday'); }
Returns the users birthday, if available. @return Birthday|null
getBirthday
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getHometown() { return $this->getField('hometown'); }
Returns the current location of the user as a GraphPage. @return GraphPage|null
getHometown
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function getSignificantOther() { return $this->getField('significant_other'); }
Returns the current location of the user as a GraphUser. @return GraphUser|null
getSignificantOther
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphUser.php
MIT
public function __construct($date) { $parts = explode('/', $date); $this->hasYear = count($parts) === 3 || count($parts) === 1; $this->hasDate = count($parts) === 3 || count($parts) === 2; parent::__construct($date); }
Parses Graph birthday format to set indication flags, possible values: MM/DD/YYYY MM/DD YYYY @link https://developers.facebook.com/docs/graph-api/reference/user @param string $date
__construct
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
MIT
public function hasDate() { return $this->hasDate; }
Returns whether date object contains birth day and month @return bool
hasDate
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
MIT
public function hasYear() { return $this->hasYear; }
Returns whether date object contains birth year @return bool
hasYear
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/Birthday.php
MIT
public function getAppId() { return $this->getField('app_id'); }
Returns the application id the token was issued for. @return string|null
getAppId
php
boonex/dolphin.pro
plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphSessionInfo.php
https://github.com/boonex/dolphin.pro/blob/master/plugins/facebook-php-sdk/src/Facebook/GraphNodes/GraphSessionInfo.php
MIT