/** * (non-PHPdoc) * @see FabrikViewFormBase::setTitle() */ protected function setTitle($w, &$params, $model) { parent::setTitle($w, $params, $model); //set the download file name based on the document title $document = JFactory::getDocument(); $document->setName($document->getTitle() . '-' . $model->getRowId()); }
/** * Set the page title * * @param object $w parent worker * @param object &$params parameters * * @return void */ protected function setTitle($w, &$params) { parent::setTitle($w, $params); $model = $this->getModel(); // Set the download file name based on the document title /** @var JDocumentpdf $document */ $document = $this->doc; $document->setName($document->getTitle() . '-' . $model->getRowId()); }
/** * Set the page title * * @param object $w parent worker * @param object &$params parameters * * @return void */ protected function setTitle($w, &$params) { parent::setTitle($w, $params); $model = $this->getModel(); // Set the download file name based on the document title $layout = FabrikHelperHTML::getLayout('form.fabrik-pdf-title'); $displayData = new stdClass(); $displayData->doc = $this->doc; $displayData->model = $this->getModel(); $this->doc->setName($layout->render($displayData)); }