public static function _getObjects ($params = array (), $key = FALSE, &$db = FALSE)
	{
		
		// Select all attributes if none are set
		
		if (!isset ($params['select']))
		{
			$params['select']	= '*';
		}
		
		// Get data
		
		$rows	= static::_getValues ($params, $db);

		// If no data was returned return FALSE

		if ($rows === FALSE)
		{
			return FALSE;
		}
		
		// Return objects
		
		return self::_arrayToObjects ($rows, $key);
		
	}
public static function _getObjects ($params = array (), $key = FALSE, &$db = FALSE)
	{
		
		// Select all attributes if none are set
		
		if (!isset ($params['select']))
		{
			$params['select']	= '*';
		}
		
		// Get data
		
		$rows	= static::_getValues ($params, $db);

		// If no data was returned return FALSE

		if ($rows === FALSE)
		{
			return FALSE;
		}
		
		// Return objects
		
		return self::_arrayToObjects ($rows, $key);
		
	}
public static function _getObjects ( $ params = array ( ) , $ key = FALSE , & $ db = FALSE ) { // Select all attributes if none are set if ( ! isset ( $ params [ 'select' ] ) ) { $ params [ 'select' ] = '*' ; } // Get data $ rows = static :: _getValues ( $ params , $ db ) ; // If no data was returned return FALSE if ( $ rows === FALSE ) { return FALSE ; } // Return objects return self :: _arrayToObjects ( $ rows , $ key ) ; }
Create and return an array of objects for query parameters
@param array $params Parameter array
@param string $key Attribute value to use as the array index, default to 0-indexed
@param \PDO $db Database connection to use
@return \Sonic\Resource\Model\Collection
Create and return an array of objects for query parameters