public function getServices($filter = null)
	{
		$services = array();

		// Create the request
		$request = new client\Request('/api/mpegts/service/grid');

		if ($filter)
			$request->setFilter($filter);

		// Get the response
		$response = $this->_client->getResponse($request);
		$rawContent = $response->getContent();

		$content = json_decode($rawContent);

		foreach ($content->entries as $entry)
			$services[] = model\Service::fromRawEntry($entry);

		return $services;
	}
public function getServices($filter = null)
	{
		$services = array();

		// Create the request
		$request = new client\Request('/api/mpegts/service/grid');

		if ($filter)
			$request->setFilter($filter);

		// Get the response
		$response = $this->_client->getResponse($request);
		$rawContent = $response->getContent();

		$content = json_decode($rawContent);

		foreach ($content->entries as $entry)
			$services[] = model\Service::fromRawEntry($entry);

		return $services;
	}
public function getServices ( $ filter = null ) { $ services = array ( ) ; // Create the request $ request = new client \ Request ( '/api/mpegts/service/grid' ) ; if ( $ filter ) $ request -> setFilter ( $ filter ) ; // Get the response $ response = $ this -> _client -> getResponse ( $ request ) ; $ rawContent = $ response -> getContent ( ) ; $ content = json_decode ( $ rawContent ) ; foreach ( $ content -> entries as $ entry ) $ services [ ] = model \ Service :: fromRawEntry ( $ entry ) ; return $ services ; }
Returns the list of services
@param model\Filter $filter (optional) filter to use
@return model\Service[]
Returns the list of services