Beispiel #1
0
 public function onAfterRender()
 {
     if (!JFactory::getApplication()->isAdmin()) {
         $this->doTagReplacements();
         $providers = JFBCFactory::getAllProviders();
         foreach ($providers as $provider) {
             $provider->onAfterRender();
         }
         JFBCFactory::library('toolbar')->onAfterRender();
         $this->replaceCSSPlaceholder();
     }
     return true;
 }
Beispiel #2
0
 public function fetch()
 {
     if (!JSession::checkToken('get')) {
         exit;
     }
     $input = JFactory::getApplication()->input;
     $library = $input->getCmd('library', null);
     $subtask = $input->getCmd('subtask', null);
     if ($library && $subtask) {
         $lib = JFBCFactory::library($library);
         $task = 'ajax' . ucfirst($subtask);
         $result = $lib->{$task}();
     }
     exit;
 }