*/ class Mage_Api2_Model_Renderer_Query implements Mage_Api2_Model_Renderer_Interface { /** * Adapter mime type */ const MIME_TYPE = 'text/plain'; /** * Convert Array to URL-encoded query string * * @param array|object $data * @return string */ public function render($data) { $query = http_build_query($data); return $query; } /** * Get MIME type generated by renderer * * @return string */ public function getMimeType() { return self::MIME_TYPE; } }