public function getChannels($filter = null)
	{
		$channels = array();

		// Create the request
		$request = new client\Request('/api/channel/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)
			$channels[] = model\Channel::fromRawEntry($entry);

		return $channels;
	}
public function getChannels($filter = null)
	{
		$channels = array();

		// Create the request
		$request = new client\Request('/api/channel/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)
			$channels[] = model\Channel::fromRawEntry($entry);

		return $channels;
	}
public function getChannels ( $ filter = null ) { $ channels = array ( ) ; // Create the request $ request = new client \ Request ( '/api/channel/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 ) $ channels [ ] = model \ Channel :: fromRawEntry ( $ entry ) ; return $ channels ; }
Returns the list of channels
@param model\Filter $filter (optional) filter to use
@return model\Channel[]
Returns the list of channels