/** * This function fills the default markers: * * ###PRINT_LINK### * ###PDF_LINK### * ###CSV_LINK### * * @return string Template with replaced markers */ protected function fillDefaultMarkers() { parent::fillDefaultMarkers(); if (Tx_Formhandler_Globals::$formValuesPrefix) { $params[Tx_Formhandler_Globals::$formValuesPrefix] = $this->gp; } else { $params = $this->gp; } $params['type'] = 98; $label = Tx_Formhandler_StaticFuncs::getTranslatedMessage($this->langFiles, 'print'); if (strlen($label) == 0) { $label = 'print'; } $markers['###PRINT_LINK###'] = $this->cObj->getTypolink($label, $GLOBALS['TSFE']->id, $params); unset($params['type']); if ($this->componentSettings['actions.']) { foreach ($this->componentSettings['actions.'] as $action => $options) { $sanitizedAction = str_replace('.', '', $action); $class = $options['class']; if ($class) { $class = Tx_Formhandler_StaticFuncs::prepareClassName($class); $generator = $this->componentManager->getComponent($class); $generator->init($this->gp, $options['config.']); $markers['###' . strtoupper($sanitizedAction) . '_LINK###'] = $generator->getLink($params); } } } $this->fillFEUserMarkers($markers); $this->fillFileMarkers($markers); $this->template = $this->cObj->substituteMarkerArray($this->template, $markers); }
/** * Main method called by the controller. * * @param array $gp The current GET/POST parameters * @param array $errors The errors occurred in validation * @return string content */ public function render($gp, $errors) { $this->gp = $gp; $this->settings = $this->parseSettings(); $this->sanitizeMarkers(); $content = parent::render($this->gp, $errors); return $this->pi_wrapInBaseClass($content); }
/** * Main method called by the controller. * * @param array $gp The current GET/POST parameters * @param array $errors In this class the second param is used to pass information about the email mode (HTML|PLAIN) * @return string content */ public function render($gp, $errors) { $this->currentMailSettings = $errors; $content = ''; if ($this->subparts['template']) { $this->settings = $this->globals->getSettings(); $content = parent::render($gp, array()); } return $content; }
/** * This function fills the default markers: * * ###PRINT_LINK### * ###PDF_LINK### * ###CSV_LINK### * * @return string Template with replaced markers */ protected function fillDefaultMarkers() { parent::fillDefaultMarkers(); $params = array(); if ($this->globals->getFormValuesPrefix()) { $params[$this->globals->getFormValuesPrefix()] = $this->gp; } else { $params = $this->gp; } if ($this->componentSettings['actions.']) { foreach ($this->componentSettings['actions.'] as $action => $options) { $sanitizedAction = str_replace('.', '', $action); $class = $this->utilityFuncs->getPreparedClassName($options); if ($class) { $generator = $this->componentManager->getComponent($class); $generator->init($this->gp, $options['config.']); $markers['###' . strtoupper($sanitizedAction) . '_LINK###'] = $generator->getLink($params); } } } $this->fillFEUserMarkers($markers); $this->fillFileMarkers($markers); $this->template = $this->cObj->substituteMarkerArray($this->template, $markers); }
/** * Main method called by the controller. * * @param array $gp The current GET/POST parameters * @param array $errors The errors occurred in validation * @return string content */ public function render($gp, $errors) { $this->gp = $gp; $this->settings = $this->parseSettings(); return parent::render($this->gp, $errors); }