source/core/datastore/types/googlecalendar/MGoogleCalendarDatastore.php
public function getWebfilesAsStream()
	{
		$client = $this->getClientWithToken();
		$service = new Google_Service_Calendar($client);

		// Print the next 10 events on the user's calendar.
		$optParams = array(
			'maxResults' => 5,
			'orderBy' => 'startTime',
			'singleEvents' => TRUE,
			'timeMin' => date('c'),
		);
		$results = $service->events->listEvents($this->m_sCalendarId, $optParams);


		$webfiles = array();

		foreach ($results->getItems() as $event) {

			$webfile = $this->toWebfileEvent($event);
			array_push($webfiles, $webfile);
		}

		return new MWebfileStream($webfiles);
	}
public function getWebfilesAsStream()
	{
		$client = $this->getClientWithToken();
		$service = new Google_Service_Calendar($client);

		// Print the next 10 events on the user's calendar.
		$optParams = array(
			'maxResults' => 5,
			'orderBy' => 'startTime',
			'singleEvents' => TRUE,
			'timeMin' => date('c'),
		);
		$results = $service->events->listEvents($this->m_sCalendarId, $optParams);


		$webfiles = array();

		foreach ($results->getItems() as $event) {

			$webfile = $this->toWebfileEvent($event);
			array_push($webfiles, $webfile);
		}

		return new MWebfileStream($webfiles);
	}
public function getWebfilesAsStream ( ) { $ client = $ this -> getClientWithToken ( ) ; $ service = new Google_Service_Calendar ( $ client ) ; // Print the next 10 events on the user's calendar. $ optParams = array ( 'maxResults' => 5 , 'orderBy' => 'startTime' , 'singleEvents' => TRUE , 'timeMin' => date ( 'c' ) , ) ; $ results = $ service -> events -> listEvents ( $ this -> m_sCalendarId , $ optParams ) ; $ webfiles = array ( ) ; foreach ( $ results -> getItems ( ) as $ event ) { $ webfile = $ this -> toWebfileEvent ( $ event ) ; array_push ( $ webfiles , $ webfile ) ; } return new MWebfileStream ( $ webfiles ) ; }
Returns a webfiles stream with all webfiles from
the actual datastore.
@return MWebfileStream
Returns a webfiles stream with all webfiles from the actual datastore .