public function renderDataTable($dataTable) { $result = parent::renderDataTable($dataTable); return $this->applyJsonpIfNeeded($result); }
/** * @param string $outputFormat * @param array $request */ public function __construct($outputFormat, $request = array()) { $this->outputFormat = $outputFormat; $this->request = $request; $this->apiRenderer = ApiRenderer::factory($outputFormat, $request); }
/** * @expectedException \Exception * @expectedExceptionMessage General_ExceptionInvalidRendererFormat */ public function test_factory_shouldThrowAnException_IfInvalidFormatGiven() { ApiRenderer::factory('phpi', array()); }