public function __construct($config = array()) { parent::__construct($config); $this->app = JFactory::getApplication(); // Get project id. $this->projectId = $this->input->getUint('pid'); // Prepare log object $registry = Joomla\Registry\Registry::getInstance('com_crowdfunding'); /** @var $registry Joomla\Registry\Registry */ $fileName = $registry->get('logger.file'); $tableName = $registry->get('logger.table'); $file = JPath::clean($this->app->get('log_path') . DIRECTORY_SEPARATOR . $fileName); $this->log = new Prism\Log\Log(); $this->log->addAdapter(new Prism\Log\Adapter\Database(JFactory::getDbo(), $tableName)); $this->log->addAdapter(new Prism\Log\Adapter\File($file)); // Create an object that contains a data used during the payment process. $this->paymentProcessContext = Crowdfunding\Constants::PAYMENT_SESSION_CONTEXT . $this->projectId; $this->paymentProcess = $this->app->getUserState($this->paymentProcessContext); // Prepare context $filter = new JFilterInput(); $paymentService = JString::trim(JString::strtolower($this->input->getCmd('payment_service'))); $paymentService = $filter->clean($paymentService, 'ALNUM'); $this->context = JString::strlen($paymentService) > 0 ? 'com_crowdfunding.notify.' . $paymentService : 'com_crowdfunding.notify'; // Prepare params $this->params = JComponentHelper::getParams('com_crowdfunding'); }
function __construct($config = array()) { parent::__construct($config); $this->registerTask('add', 'edit'); checkAccessController("orders"); addSubmenu("orders"); }
/** * Constructor */ public function __construct() { parent::__construct(); // Register Extra task $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); }
function __construct() { parent::__construct(); $view = $this->input->get('view', 'uploadform'); $layout = $this->input->get('layout', ''); $this->setRedirect(JRoute::_('index.php?option=com_fileuploadform' . (!empty($view) ? '&view=' . $view : '') . (!empty($layout) ? '&layout=' . $layout : ''), false)); }
public function __construct() { parent::__construct(); $this->useSSL = VmConfig::get('useSSL', 0); $this->useXHTML = false; VmConfig::loadJLang('com_virtuemart_shoppers', TRUE); }
public function __construct() { parent::__construct(); JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_rsmembership/tables'); $document = JFactory::getDocument(); $config = RSMembershipConfig::getInstance(); $version = (string) new RSMembershipVersion(); // Load our CSS $document->addStyleSheet(JUri::root(true) . '/components/com_rsmembership/assets/css/rsmembership.css?v=' . $version); // Load our JS $document->addScript(JUri::root(true) . '/components/com_rsmembership/assets/js/rsmembership.js?v=' . $version); if (!RSMembershipHelper::isJ3()) { // Load 2.5 CSS $document->addStyleSheet(JUri::root(true) . '/components/com_rsmembership/assets/css/j2.css?v=' . $version); // Load Bootstrap on 2.5.x if ($config->get('load_bootstrap')) { $document->addStyleSheet(JUri::root(true) . '/components/com_rsmembership/assets/css/bootstrap.min.css?v=' . $version); $document->addScript(JUri::root(true) . '/components/com_rsmembership/assets/js/jquery.min.js?v=' . $version); $document->addScript(JUri::root(true) . '/components/com_rsmembership/assets/js/jquery.noconflict.js?v=' . $version); $document->addScript(JUri::root(true) . '/components/com_rsmembership/assets/js/bootstrap.min.js?v=' . $version); } } else { // Load 3.x CSS $document->addStyleSheet(JUri::root(true) . '/components/com_rsmembership/assets/css/j3.css?v=' . $version); // Load Bootstrap on 3.x if ($config->get('load_bootstrap')) { JHtml::_('bootstrap.framework'); } } }
function __construct() { parent::__construct(); $this->_db = JFactory::getDBO(); $doc = JFactory::getDocument(); $doc->addScript(JURI::root(true) . '/components/com_rsform/assets/js/script.js'); }
function __construct($config = array()) { parent::__construct($config); $this->_db = JFactory::getDBO(); // Register Extra tasks $this->registerTask('apply', 'save'); // turnierid $this->id = JRequest::getInt('id'); $clmAccess = clm_core::$access; $row = JTable::getInstance('turniere', 'TableCLM'); $row->load($this->id); echo "<br>invrow: "; var_dump($row); //$tournament = new CLMTournament($this->id, true); //die(' tinvite'); //if (!$tournament->checkAccess(0,0,$row->tl)) { if ($row->tl != clm_core::$access->getJid() and $clmAccess->access('BE_tournament_edit_detail') !== false and $clmAccess->access('BE_tournament_edit_detail') !== true) { JError::raiseWarning(500, JText::_('TOURNAMENT_NO_ACCESS')); $this->adminLink = new AdminLink(); $this->adminLink->view = "turmain"; $this->adminLink->makeURL(); $this->setRedirect($this->adminLink->url); } $this->adminLink = new AdminLink(); $this->adminLink->view = "turinvite"; $this->adminLink->more = array('id' => $this->id); }
function __construct() { parent::__construct(); $this->registerTask('send1', 'send'); $this->registerTask('send2', 'send'); $this->_app = JFactory::getApplication(); }
function __construct() { parent::__construct(); $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); $this->_input = JFactory::getApplication()->input; }
function __construct() { parent::__construct(); $ajax_req = JRequest::getVar("no_html", 0, "request"); $squeeze = JRequest::getVar("sbox", 0, "request"); $squeeze2 = JRequest::getVar("tmpl", 0, "request"); $task = JRequest::getVar("task"); $export = JRequest::getVar("export", ""); $export1 = JRequest::getVar("export1", ""); if ($export != "" || $export1 != "") { // do nothing } elseif (!$ajax_req && $task != "savesbox" && $task != "save2" && $task != "export_button" && $task != "export" && $task != "savequizzes" && $task != "savequestionedit" && $task != "savequestion") { $document = JFactory::getDocument(); $document->addStyleSheet("components/com_guru/css/general.css"); $document->addStyleSheet("components/com_guru/css/tmploverride.css"); $document->addStyleSheet('components/com_guru/css/bootstrap.min.css'); $document->addStyleSheet('components/com_guru/css/font-awesome.min.css'); $document->addStyleSheet('components/com_guru/css/ace-fonts.css'); $document->addStyleSheet('components/com_guru/css/ace.min.css'); $document->addStyleSheet('components/com_guru/css/fullcalendar.css'); $document->addStyleSheet('components/com_guru/css/g_admin_modal.css'); require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'chtmlinput.php'; $view = $this->getView('guruDtree', 'html'); if (!$squeeze2 && !$squeeze) { ?> <?php $view->showDtree(); ?> <?php } } }
public function __construct(array $config) { parent::__construct($config); $option = JRequest::getVar('option'); $clearName = substr($option, 4); $this->default_view = $clearName . 's'; }
function __construct($config = array()) { parent::__construct($config); $this->registerTask('add', 'display'); $this->registerTask('edit', 'display'); $this->registerTask('apply', 'save'); }
public function __construct($config = array()) { parent::__construct($config); $this->app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Get project id. $this->projectId = $this->input->getUint('pid'); // Prepare log object $registry = JRegistry::getInstance('com_crowdfunding'); /** @var $registry Joomla\Registry\Registry */ $fileName = $registry->get('logger.file'); $tableName = $registry->get('logger.table'); $file = JPath::clean($this->app->get('log_path') . DIRECTORY_SEPARATOR . $fileName); $this->log = new Prism\Log\Log(); $this->log->addAdapter(new Prism\Log\Adapter\Database(JFactory::getDbo(), $tableName)); $this->log->addAdapter(new Prism\Log\Adapter\File($file)); // Create an object that contains a data used during the payment process. $this->paymentProcessContext = Crowdfunding\Constants::PAYMENT_SESSION_CONTEXT . $this->projectId; $this->paymentProcess = $this->app->getUserState($this->paymentProcessContext); // Set payment service name. if (!isset($this->paymentProcess->paymentService)) { $this->paymentProcess->paymentService = ''; } // Local executing tasks. It needs to provide form token. $this->registerTask('checkout', 'process'); // Remote executing tasks. It does not need to provide form token. $this->registerTask('doCheckout', 'process'); $this->registerTask('completeCheckout', 'process'); }
function __construct($config = array()) { parent::__construct($config); JPluginHelper::importPlugin('jshoppingcheckout'); JPluginHelper::importPlugin('jshoppingorder'); JDispatcher::getInstance()->trigger('onConstructJshoppingControllerUser', array(&$this)); }
function __construct($config = array()) { parent::__construct($config); $lang = JFactory::GetLanguage(); $lang->load('com_djcatalog2'); $this->registerTask('modfp', 'getFrontpageXMLData'); }
/** * objektum generálás */ function __construct() { parent::__construct(); // ============================== FIGYELEM Ha több szüro mezo van akkor át kell írni! =================== $this->state = JSON_decode('{ "orderCol":"1", "orderDir":"asc", "filterStr":"", "limitstart":0, "limit":10, "id":"" } '); $this->message = JSON_decode('{ "txt":"", "class":"msg" } '); if (file_exists(JPATH_COMPONENT . '/helpers/mvceditor.php')) { include_once JPATH_COMPONENT . '/helpers/mvceditor.php'; $this->helper = new mvceditorHelper(); } if (file_exists(JPATH_COMPONENT . '/helpers/components.php')) { include_once JPATH_COMPONENT . '/helpers/components.php'; $this->componentHelper = new componentsHelper(); } }
function __construct($config = array()) { parent::__construct($config); $this->registerTask('sendbid', 'saveBid' ); $this->registerTask('sendbidajax', 'saveBidAjax' ); $this->registerTask('showsearchresults', 'listauctions' ); $this->registerTask('mybids', 'listauctions' ); $this->registerTask('mywonbids', 'listauctions' ); $this->registerTask('mywatchlist', 'listauctions' ); $this->registerTask('myauctions', 'listauctions' ); $this->registerTask('tags', 'listauctions' ); $this->registerTask('suggestions', 'listsuggestions' ); $this->registerTask('mysuggestions', 'listsuggestions' ); $this->registerTask('myratings', 'userratings' ); $this->registerTask('form', 'editauction' ); $this->registerTask('newauction', 'editauction' ); $this->registerTask('republish', 'editauction' ); $this->registerTask('sendbid', 'saveBid' ); $this->registerTask('bin', 'saveBid' ); $this->registerTask('show_profilemodal','editProfile'); $this->registerTask('registerForm','editProfile'); $this->registerTask('tree','listcats'); $this->registerDefaultTask('listauctions'); }
function __construct() { global $mainframe; $mainframe =& JFactory::getApplication(); parent::__construct(); $this->registerDefaultTask('display'); }
function __construct() { parent::__construct(); $this->key = JRequest::getInt('key', 0); ## Do NOT change the line below. $this->pass = '******'; }
public function __construct($config = array()) { parent::__construct($config); $this->app = JFactory::getApplication(); // Get project ID. $this->projectId = $this->input->getUint('pid'); // Prepare log object. $this->log = new Prism\Log\Log(); // Set database log adapter if Joomla! debug is enabled. if ($this->logTable !== null and $this->logTable !== '' and JDEBUG) { $this->log->addAdapter(new Prism\Log\Adapter\Database(\JFactory::getDbo(), $this->logTable)); } // Set file log adapter. if ($this->logFile !== null and $this->logFile !== '') { $file = \JPath::clean($this->app->get('log_path') . DIRECTORY_SEPARATOR . basename($this->logFile)); $this->log->addAdapter(new Prism\Log\Adapter\File($file)); } // Prepare context $filter = new JFilterInput(); $paymentService = $filter->clean(trim(strtolower($this->input->getCmd('payment_service'))), 'ALNUM'); $this->context = Joomla\String\StringHelper::strlen($paymentService) > 0 ? 'com_crowdfunding.notify.' . $paymentService : 'com_crowdfunding.notify'; // Prepare params $this->params = JComponentHelper::getParams('com_crowdfunding'); // Prepare container and some of the most used objects. $this->container = Prism\Container::getContainer(); $this->prepareCurrency($this->container, $this->params); $this->prepareMoneyFormatter($this->container, $this->params); }
/** * Constructor. * * @param array An optional associative array of configuration settings. * @see JController */ public function __construct($config = array()) { parent::__construct($config); // Apply, Save & New, and Save As copy should be standard on forms. $this->registerTask('apply', 'save'); }
function __construct($default = array()) { parent::__construct($default); $this->registerTask('apply', 'save'); $this->registerTask('save2new', 'save'); $this->registerTask('edit', 'add'); }
function __construct() { parent::__construct(); $this->registerDefaultTask('create_edit_survey'); /* create survey */ $this->registerTask('cancel', 'cancel_form'); $this->registerTask('form', 'create_edit_survey'); $this->registerTask('edit_questions', 'edit_questions'); $this->registerTask('save', 'save_survey'); $this->registerTask('get_tags', 'get_tags'); $this->registerTask('save_qn', 'save_question'); $this->registerTask('delete_qn', 'delete_question'); $this->registerTask('move_qn', 'move_question'); $this->registerTask('new_page', 'new_page'); $this->registerTask('delete_page', 'remove_page'); $this->registerTask('finalize', 'finalize_survey'); $this->registerTask('update_order', 'update_ordering'); $this->registerTask('upload_answer_image', 'upload_answer_image'); $this->registerTask('save_rule', 'save_conditional_rule'); $this->registerTask('remove_rule', 'remove_conditional_rule'); $this->registerTask('copy', 'copy_survey'); $this->registerTask('rename_page', 'rename_page'); $this->registerTask('reorder_pages', 'reorder_pages'); $lang = JFactory::getLanguage(); $lang->load(S_APP_NAME, JPATH_ROOT); JLoader::import('joomla.application.component.model'); JLoader::import('survey', JPATH_ROOT . '/components/com_communitysurveys/models'); }
/** * Constructor. * * @param array $config An optional associative array of configuration settings. * * @see JControllerLegacy * @since 12.2 * @throws Exception */ public function __construct($config = array()) { parent::__construct($config); // Define standard task mappings. // Value = 0 $this->registerTask('unpublish', 'publish'); // Value = 2 $this->registerTask('archive', 'publish'); // Value = -2 $this->registerTask('trash', 'publish'); // Value = -3 $this->registerTask('report', 'publish'); $this->registerTask('orderup', 'reorder'); $this->registerTask('orderdown', 'reorder'); // Guess the option as com_NameOfController. if (empty($this->option)) { $this->option = 'com_' . strtolower($this->getName()); } // Guess the JText message prefix. Defaults to the option. if (empty($this->text_prefix)) { $this->text_prefix = strtoupper($this->option); } // Guess the list view as the suffix, eg: OptionControllerSuffix. if (empty($this->view_list)) { $r = null; if (!preg_match('/(.*)Controller(.*)/i', get_class($this), $r)) { throw new Exception(JText::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); } $this->view_list = strtolower($r[2]); } }
public function __construct($config = array()) { parent::__construct($config); $this->config = JFactory::getConfig(); $this->baseurl = $this->config->get('config.live_site'); $this->db = JFactory::getDBO(); }
function __construct() { parent::__construct(); $this->registerDefaultTask('get_tags_listing'); $this->registerTask('get_tag', 'get_tag_details'); $this->registerTask('save_tag', 'save_tag_details'); }
function __construct() { $this->db = JFactory::getDBO(); $this->rol_config = $this->get_config(); $this->helper = $this->get_helper(); parent::__construct(); }
/** * Constructor */ function __construct($config = array()) { parent::__construct($config); // Register Extra tasks $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); }
function __construct() { parent::__construct(); $this->registerTask('save', 'apply'); $this->registerTask('save_css', 'apply_css'); $this->registerTask('save_field', 'apply_field'); }