Example #1
0
 protected function executeStart()
 {
     try {
         parent::executeStart();
     } catch (Exception $e) {
         throw $e;
     }
 }
Example #2
0
 protected function executeStart()
 {
     try {
         parent::executeStart();
         $outputFilter = new OutputFilterDiscussion($this->config);
         $outputFilter->setRecord($this->getRecord());
         $this->config->setOutputFilter($outputFilter);
     } catch (Exception $e) {
         throw $e;
     }
 }
Example #3
0
 /**
  * pretizeno o automaticke vytvareni sablony z defaultni
  * @return string
  */
 protected function getTemplatePath()
 {
     try {
         $pathTemplate = parent::getTemplatePath();
         if (!file_exists($pathTemplate)) {
             $srcPath = LBoxConfigSystem::getInstance()->getParamByPath("pages/templates/path") . SLASH . LBoxConfigSystem::getInstance()->getParamByPath("pages/templates/default");
             LBoxUtil::copyFile($srcPath, $pathTemplate);
         }
         return $pathTemplate;
     } catch (Exception $e) {
         throw $e;
     }
 }
 /**
  * pridava parsing vysledku podle configu
  * @param string $out
  * @return string
  * @throws Exception
  */
 public function getContent()
 {
     try {
         $out = parent::getContent();
         if ($this->isDebugOn()) {
             return $out;
         }
         $out = $this->removeComents($out);
         $out = $this->compress($out);
         return $out;
     } catch (Exception $e) {
         throw $e;
     }
 }
Example #5
0
 /**
  * Vraci aktualni hodnotu limitu parties na stranku pro admin
  * @return int
  */
 protected function getPagingBy()
 {
     try {
         if (strlen($this->recordsPagingByConfigVarname) < 1) {
             throw new LBoxExceptionPage("\$recordsPagingByConfigVarname: " . LBoxExceptionPage::MSG_INSTANCE_VAR_STRING_NOTNULL, LBoxExceptionPage::CODE_BAD_INSTANCE_VAR);
         }
         $value = LBoxConfigManagerProperties::getInstance()->getPropertyByName($this->recordsPagingByConfigVarname)->getContent();
         return is_numeric($value) ? (int) $value : parent::getPagingBy();
     } catch (Exception $e) {
         throw $e;
     }
 }