예제 #1
0
 function execute($task)
 {
     $item = JRequest::getString('item');
     if ($item) {
         $controllername = 'J' . APP_PREFIX . 'Admin' . ucfirst($item) . 'Controller';
         require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'pricing' . DS . strtolower($item) . DS . 'controllers' . DS . 'admin.php';
         $controller = new $controllername();
         $res = $controller->execute($task);
         $this->setRedirect($controller->redirect, $controller->message, $controller->messageType);
         return $res;
     } else {
         return parent::execute($task);
     }
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $MyApp = JTheFactoryApplication::getInstance();
     JLoader::register('JTheFactoryThemesHelper', $MyApp->app_path_admin . 'themes/helper/themes.php');
 }
예제 #3
0
 function __construct()
 {
     parent::__construct('payments');
     JHtml::addIncludePath($this->basepath . DS . 'html');
 }
예제 #4
0
 function __construct()
 {
     $MyApp = JTheFactoryApplication::getInstance();
     $this->formxml = JPATH_ROOT . DS . "administrator" . DS . "components" . DS . APP_EXTENSION . DS . $MyApp->getIniValue('configxml');
     parent::__construct();
 }
예제 #5
0
 function __construct()
 {
     $lang = JFactory::getLanguage();
     $lang->load('thefactory.' . strtolower($this->modulename));
     parent::__construct();
 }