_renderer = new $rendererName($phpExcel); } public function __call($name, $arguments) { if ($this->_renderer === NULL) { throw new PHPExcel_Writer_Exception("PDF Renderer has not been defined."); } return call_user_func_array(array($this->_renderer,$name),$arguments); } }