From e6988247360fa98b85915a38803d018dd353df00 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 16 Dec 2018 16:35:17 +0100 Subject: Rev: 4412 --- mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php | 3 ++- mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php | 10 ++++++++++ mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'mayor-orig/www/include/share/facebook/GraphNodes') diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php index 061e7449..a81c47b7 100644 --- a/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php +++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php @@ -150,7 +150,8 @@ class GraphNode extends Collection 'backdated_time', 'issued_at', 'expires_at', - 'publish_time' + 'publish_time', + 'joined' ], true); } diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php index 3dfb0e03..503b96b5 100644 --- a/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php +++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php @@ -144,4 +144,14 @@ class GraphPage extends GraphNode { return $this->getField('perms'); } + + /** + * Returns the `fan_count` (Number of people who likes to page) as int if present. + * + * @return int|null + */ + public function getFanCount() + { + return $this->getField('fan_count'); + } } diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php index c50d7efd..6e1ed8f5 100644 --- a/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php +++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php @@ -123,7 +123,7 @@ class GraphUser extends GraphNode /** * Returns the users birthday, if available. * - * @return \DateTime|null + * @return Birthday|null */ public function getBirthday() { -- cgit v1.2.3