public function getGooglePlusPosts($postData=NULL)
	{
        $key = Cii::getConfig('google_plus_public_server_key');
		if ($key == NULL || $this->googlePlusUserId == NULL)
			return false;

		$result = Yii::app()->cache->get($this->theme . '_settings_g+_activities');

		if ($result == false)
		{
			$client = new Google_Client();
			$client->setApplicationName("Client_Library_Examples");
			$client->setDeveloperKey($key);

			$service = new Google_Service_Plus($client);

			$result = $service->activities->listActivities($this->googlePlusUserId, 'public');

			Yii::app()->cache->set($this->theme . '_settings_g+_activities',$result, 900);
		}
		return $result;
	}
public function getGooglePlusPosts($postData=NULL)
	{
        $key = Cii::getConfig('google_plus_public_server_key');
		if ($key == NULL || $this->googlePlusUserId == NULL)
			return false;

		$result = Yii::app()->cache->get($this->theme . '_settings_g+_activities');

		if ($result == false)
		{
			$client = new Google_Client();
			$client->setApplicationName("Client_Library_Examples");
			$client->setDeveloperKey($key);

			$service = new Google_Service_Plus($client);

			$result = $service->activities->listActivities($this->googlePlusUserId, 'public');

			Yii::app()->cache->set($this->theme . '_settings_g+_activities',$result, 900);
		}
		return $result;
	}
public function getGooglePlusPosts ( $ postData = NULL ) { $ key = Cii :: getConfig ( 'google_plus_public_server_key' ) ; if ( $ key == NULL || $ this -> googlePlusUserId == NULL ) return false ; $ result = Yii :: app ( ) -> cache -> get ( $ this -> theme . '_settings_g+_activities' ) ; if ( $ result == false ) { $ client = new Google_Client ( ) ; $ client -> setApplicationName ( "Client_Library_Examples" ) ; $ client -> setDeveloperKey ( $ key ) ; $ service = new Google_Service_Plus ( $ client ) ; $ result = $ service -> activities -> listActivities ( $ this -> googlePlusUserId , 'public' ) ; Yii :: app ( ) -> cache -> set ( $ this -> theme . '_settings_g+_activities' , $ result , 900 ) ; } return $ result ; }
getGooglePlusPosts callback method
Retrieves recent activities from Google+
@param  array $postdata    	$_POST response data
getGooglePlusPosts callback method Retrieves recent activities from Google +