public static function get($params = array())
	{
		$object = new static;
		$data   = $object->request('GET', $object->getUrl(), $params);
		$data   = $object->stripResponseData($data);

		// Initialise a collection
		$collection = self::newCollection();

		if (isset($data[0]) && is_array($data[0])) {
			// This should be a collection
			$collection->setItems($data);
		}

		return $collection;
	}
public static function get($params = array())
	{
		$object = new static;
		$data   = $object->request('GET', $object->getUrl(), $params);
		$data   = $object->stripResponseData($data);

		// Initialise a collection
		$collection = self::newCollection();

		if (isset($data[0]) && is_array($data[0])) {
			// This should be a collection
			$collection->setItems($data);
		}

		return $collection;
	}
public static function get ( $ params = array ( ) ) { $ object = new static ; $ data = $ object -> request ( 'GET' , $ object -> getUrl ( ) , $ params ) ; $ data = $ object -> stripResponseData ( $ data ) ; // Initialise a collection $ collection = self :: newCollection ( ) ; if ( isset ( $ data [ 0 ] ) && is_array ( $ data [ 0 ] ) ) { // This should be a collection $ collection -> setItems ( $ data ) ; } return $ collection ; }
Get a collection of items

@param  array  $params
@return Daursu\Xero\BaseModel
Get a collection of items