Beispiel #1
0
 /**
  * postExecute
  *
  * @param string $result
  *
  * @return  string
  */
 protected function postExecute($result = null)
 {
     if (WINDWALKER_DEBUG) {
         if (class_exists('Windwalker\\Debugger\\Helper\\DebuggerHelper')) {
             DebuggerHelper::addCustomData('Language Orphans', '<pre>' . TranslatorHelper::getFormattedOrphans() . '</pre>');
         }
     }
     return $result;
 }
 /**
  * doExecute
  *
  * @return  mixed
  */
 protected function doExecute()
 {
     $this->prepareModelState($this->model);
     // Add default
     $this->view->setModel($this->model, true);
     $this->assignModels($this->view);
     $this->prepareViewData($this->view);
     if ($this->view instanceof HtmlView) {
         $this->view->setLayout($this->layout);
     } elseif (class_exists(DebuggerHelper::class)) {
         DebuggerHelper::disableConsole();
     }
     return $this->view;
 }
Beispiel #3
0
 /**
  * postExecute
  *
  * @param string $result
  *
  * @return  string
  */
 protected function postExecute($result = null)
 {
     if (WINDWALKER_DEBUG) {
         if (class_exists('Windwalker\\Debugger\\Helper\\DebuggerHelper')) {
             DebuggerHelper::addCustomData('Language Orphans', '<pre>' . TranslatorHelper::getFormattedOrphans() . '</pre>');
         }
         // Un comment this line, Translator will export all orphans to /cache/language
         if ($this->app->get('language.debug')) {
             TranslatorHelper::dumpOrphans('ini');
         }
     }
     return $result;
 }