Example #1
0
 /**
  * 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);
 }