/** * Load the iChelper class */ public function __construct($config = array()) { $config['filter_fields'] = array_merge($this->searchInFields, array('c.catid')); parent::__construct($config); // Load the helper class JLoader::register('iCModeliChelper', JPATH_SITE . '/components/com_icagenda/helpers/ichelper.php'); }
/** * Constructor. * * @param array An optional associative array of configuration settings. * */ public function __construct($config = array()) { if (empty($config['teamid_filter_fields'])) { $config['teamid_filter_fields'] = array('id', 'a.id', 'name', 'a.name', 'alias', 'a.alias', 'pouleid', 'a.pouleid', 'classid', 'a.classid', 'compid', 'a.compid', 'district', 'a.district', 'teamnaam', 'a.teamnaam', 'teamid', 'a.teamid', 'checked_out', 'a.checked_out', 'checked_out_time', 'a.checked_out_time', 'state', 'a.state', 'access', 'a.access', 'access_level', 'created', 'a.created', 'created_by', 'a.created_by', 'featured', 'a.featured', 'language', 'a.language', 'hits', 'a.hits', 'ordering', 'a.ordering'); } parent::__construct($config); }
function __construct() { $app = JFactory::getApplication(); $this->_member_id = $app->input->get('member_id', null); $this->_user_id = $app->input->get('user_id', null); parent::__construct(); }
public function __construct($config = array()) { parent::__construct($config); $this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY); $this->urlCrew = '/GetCrews'; $this->urlCreateCrew = '/CreateCrew'; }
/** * Constructor. * * @param array An optional associative array of configuration settings. * */ public function __construct($config = array()) { if (empty($config['competitie_filter_fields'])) { $config['competitie_filter_fields'] = array('id', 'a.id', 'name', 'a.name', 'alias', 'a.alias', 'datakeuze', 'a.datakeuze', 'team', 'a.team', 'competitie', 'a.competitie', 'checked_out', 'a.checked_out', 'checked_out_time', 'a.checked_out_time', 'catid', 'a.catid', 'category_title', 'state', 'a.state', 'access', 'a.access', 'access_level', 'created', 'a.created', 'created_by', 'a.created_by', 'featured', 'a.featured', 'language', 'a.language', 'hits', 'a.hits', 'ordering', 'a.ordering'); } parent::__construct($config); }
/** * Constructor. * * @param array An optional associative array of configuration settings. * */ public function __construct($config = array()) { if (empty($config['selectie_filter_fields'])) { $config['selectie_filter_fields'] = array('id', 'a.id', 'name', 'a.name', 'alias', 'a.alias', 'selectietype', 'a.selectietype', 'selectie', 'a.selectie', 'checked_out', 'a.checked_out', 'checked_out_time', 'a.checked_out_time', 'state', 'a.state', 'access', 'a.access', 'access_level', 'created', 'a.created', 'created_by', 'a.created_by', 'featured', 'a.featured', 'language', 'a.language', 'hits', 'a.hits', 'ordering', 'a.ordering'); } parent::__construct($config); }
public function __construct($config = array()) { parent::__construct($config); // Create a elastica Client $this->elasticaClient = ElasticSearchConfig::getElasticSearchClient(); // Set Index $this->elasticaIndex = $this->elasticaClient->getIndex(ElasticSearchConfig::getIndexName()); }
public function __construct($config = array()) { $this->_storPath = UserNotesHelper::userDataPath(); $udbPath = $this->_storPath . '/usernotes.db3'; $db = JDatabaseDriver::getInstance(array('driver' => 'sqlite', 'database' => $udbPath)); $config['dbo'] = $db; parent::__construct($config); }
function __construct() { $app = JFactory::getApplication(); $this->_daytime_id = $app->input->get('daytime_id', null); $this->_calendar_id = $app->input->get('calendar_id', null); $this->_service_id = $app->input->get('service_id', null); $this->_daytime_day = $app->input->get('daytime', null); parent::__construct(); }
public function __construct($config = array()) { parent::__construct($config); $this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY); $this->urlResource = '/ResourceonsellView(%d)'; $this->urlUnitServices = '/ResourceonsellView(%d)/Unit/Services'; $this->urlUnit = '/ResourceonsellView(%d)'; $this->urlUnits = '/ResourceonsellView'; $this->urlResourceCounter = '/OnSellUnitCounter'; }
function __construct() { $this->walks = array(); $this->socials = array(); $this->weekends = array(); $this->startDate = null; $this->endDate = null; $this->walkProgramme = null; parent::__construct(); }
function __construct() { parent::__construct(); $app = JFactory::getApplication(); $option = 'com_rsmembership'; $user = JFactory::getUser(); if ($user->get('guest')) { $link = base64_encode(JURI::getInstance()); $app->redirect('index.php?option=com_users&view=login&return=' . $link); } }
public function __construct($config = array()) { parent::__construct($config); $this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY); $this->urlGetPayment = '/GetMerchantBookingTypesByMerchantId'; $this->urlGetOrder = '/GetOrder'; $this->urlGetMerchantBookingTypes = '/GetMerchantBookingTypes'; $this->urlGetOrderPayments = '/OrderPayments'; $this->urlGetOrderPaymentsCount = '/OrderPayments/$count/'; $this->urlCreateOrderPayment = '/CreateOrderPayment'; $this->urlGetMerchantPayment = '/MerchantPayments(%d)'; }
/** * Constructor. * * @param array $config An optional associative array of configuration settings. * * @see JModelLegacy * @since 1.0 */ public function __construct($config = array()) { $params = JFactory::getApplication()->getParams(); if ($params->get('extern_db')) { // Taken from https://docs.joomla.org/Connecting_to_an_external_database $option = array(); $option['driver'] = $params->get('db_type', 'mysqli'); $option['host'] = $params->get('db_host', 'localhost'); $option['database'] = $params->get('db_database'); $option['user'] = $params->get('db_user'); $option['password'] = $params->get('db_pass'); $option['prefix'] = $params->get('db_prefix', 'jos_'); $config['dbo'] = JDatabaseDriver::getInstance($option); } parent::__construct($config); }
public function __construct($config = array()) { //Change the column_name1,2,3 to the column names you want sortable $config['filter_fields'] = array('column_name_1', 'column_name_2', 'column_name_3'); $dispatcher = JDispatcher::getInstance(); JPluginHelper::importPlugin("socialpromoter", "stilerospflickr", false); $className = 'plgSocialpromoter' . ucfirst('Stilerospflickr'); $pluginClass = new $className($dispatcher, array()); $plg = JPluginHelper::getPlugin('socialpromoter', 'stilerospflickr'); $plg_params = new JRegistry(); $plg_params->loadString($plg->params); $this->api_key = $plg_params->def('api_key'); $this->api_secret = $plg_params->def('api_secret'); $this->auth_token = $plg_params->def('auth_token'); $this->Flickr = new StileroFlickr($this->api_key, $this->api_secret); $this->Flickr->setAccessToken($this->auth_token); $this->Flickr->init(); parent::__construct($config); }
function __construct() { parent::__construct(); $q = JFactory::getDBO(); $q->setQuery(' CREATE TABLE IF NOT EXISTS #__levelek ( `id` INT(11) NOT NULL AUTO_INCREMENT, `targy` VARCHAR(120), `szoveg` TEXT, `szavazas_id` INT(11), `temakor_id` INT(11), `letrehozo` INT(11), `letrehozva` DATETIME, PRIMARY KEY (`id`) ); '); if (!$q->query()) { echo '<p class="errorMsg">' . $q->getErrorMsg() . '</p>'; exit; } $q->setQuery(' CREATE TABLE IF NOT EXISTS #__levelkuldesek ( `id` int(11) NOT NULL AUTO_INCREMENT, `level_id` int(11), `cimzett_email` varchar(80), `cimzett_nev` varchar(80), `status` varchar(6), `hibauzenet` varchar(120), `idopont` datetime, `probalkozas` int(11), PRIMARY KEY (`id`), UNIQUE KEY `index1` (`level_id`,`cimzett_email`) ) '); if (!$q->query()) { echo '<p class="errorMsg">' . $db->getErrorMsg() . '</p>'; exit; } }
/** * Constructor * * @since 1.5 */ public function __construct() { parent::__construct(); //Get configuration $app = JFactory::getApplication(); $config = JFactory::getConfig(); // Get the pagination request variables $this->setState('limit', $app->getUserStateFromRequest('com_search.limit', 'limit', $config->get('list_limit'), 'uint')); $this->setState('limitstart', $app->input->get('limitstart', 0, 'uint')); // Set the search parameters // $keyword = urldecode($app->input->getString('searchword')); // $match = $app->input->get('searchphrase', 'all', 'word'); $ordering = $app->input->get('ordering', 'newest', 'word'); $this->setState('ordering', $ordering); $searchTags = $app->input->get('searchTags', array(), 'ARRAY'); $this->setState('searchTags', $searchTags); $tagSearchOption = $app->input->getString('tagSearchOption', null, 'post'); $this->setState('tagSearchOption', $tagSearchOption); // $this->setSearch($keyword, $match, $ordering); //Set the search areas /* $areas = $app->input->get('areas', null, 'array'); $this->setAreas($areas); */ }
function __construct() { $app = JFactory::getApplication(); $this->_service_id = $app->input->get('service_id', null); parent::__construct(); }
public function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $cids = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int) $cids[0]); }
public function __construct($config = array()) { parent::__construct($config); }
public function __construct() { parent::__construct(); jimport('joomla.filesystem.folder'); // Some workarounds are needed for Windows $this->isWindows = DIRECTORY_SEPARATOR == '\\'; // Get logged in user $this->user = JFactory::getUser(); $app = JFactory::getApplication(); $jinput = $app->input; $db = JFactory::getDbo(); $query = $db->getQuery(true); // Not logged in - must redirect to login. if ($this->user->guest) { $link = base64_encode((string) JUri::getInstance()); $app->redirect(JRoute::_('index.php?option=com_users&view=login&return=' . $link, false)); } // Membership doesn't match - redirect back to My Memberships page. if (!$this->_getMembership()) { $app = JFactory::getApplication(); $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } $this->getParentFolders(); $this->getExtraParentFolders(); // Let's see if the membership is active if ($this->_data->status > 0) { return; } // let's get the path $path = $jinput->get('path', '', 'string'); if (!empty($path)) { $path = explode("|", $path); // extract the parent folder's id $parent_id = (int) $path[0]; if (empty($parent_id)) { $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } // extract the path within the parent $path = !empty($path[1]) ? $path[1] : ''; // check where are we looking $from = $this->getFrom(); if ($from == 'membership') { $parent = $this->_parents[$parent_id]; } elseif ($from == 'extra') { $parent = $this->_extra_parents[$parent_id]; } // check if the parent is within the allowed parents list if (empty($parent)) { $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } $this->_parent = $parent_id; // compute the full path: parent + path $path = realpath($parent . '/' . $path); $parent = realpath($parent); // check if we are trying to access a path that's not within the parent if (strpos($path, $parent) !== 0) { $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } // let's see if we've requested a download $task = $jinput->get('task', '', 'cmd'); if ($task == 'download') { // check if path exists and is a file if (is_file($path)) { // check if we need to agree to terms first $query->select($db->qn('term_id'))->from($db->qn('#__rsmembership_files'))->where($db->qn('path') . ' = ' . $db->q($path)); $db->setQuery($query); $term_id = $db->loadResult(); if (!empty($term_id)) { $row = JTable::getInstance('Term', 'RSMembershipTable'); $row->load($term_id); if (!$row->published) { $term_id = 0; } } $agree = $jinput->get('agree', '', 'string'); if (!empty($term_id) && empty($agree)) { $this->terms = $row->description; } else { @ob_end_clean(); $filename = basename($path); header("Cache-Control: public, must-revalidate"); header('Cache-Control: pre-check=0, post-check=0, max-age=0'); header("Pragma: no-cache"); header("Expires: 0"); header("Content-Description: File Transfer"); header("Expires: Sat, 01 Jan 2000 01:00:00 GMT"); if (preg_match('#Opera#', $_SERVER['HTTP_USER_AGENT'])) { header("Content-Type: application/octetstream"); } else { header("Content-Type: application/octet-stream"); } header("Content-Length: " . (string) filesize($path)); header('Content-Disposition: attachment; filename="' . $filename . '"'); header("Content-Transfer-Encoding: binary\n"); @readfile($path); $row = JTable::getInstance('Log', 'RSMembershipTable'); $row->date = JFactory::getDate()->toSql(); $row->user_id = $this->user->id; $row->path = '[DWN] ' . $path; $row->ip = $_SERVER['REMOTE_ADDR']; $row->store(); exit; } } else { $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } } else { // check if the path exists and is a folder if (is_dir($path)) { $this->_folder = $path; if (substr($this->_folder, -1) == '/') { $this->_folder = substr($this->_folder, 0, -1); } } else { $app->redirect(JRoute::_(RSMembershipRoute::MyMemberships(), false)); } } } }
function __construct() { parent::__construct(); $this->appSettings = JBusinessUtil::getInstance()->getApplicationSettings(); }
function __construct() { $this->log = Logger::getInstance(); parent::__construct(); }
public function __construct() { parent::__construct(); $this->db = JFactory::getDbo(); }
function __construct() { parent::__construct(); $this->configs = JComponentHelper::getComponent('com_digicom')->params; $this->customer = new DigiComSiteHelperSession(); }
function __construct() { parent::__construct(); $this->appSettings = JBusinessUtil::getInstance()->getApplicationSettings(); $this->eventId = JRequest::getVar('eventId'); }
function __construct() { parent::__construct(); $id = JRequest::getVar('id', 0); $this->setId((int) $id); }
public function __construct($config = array()) { $this->elasticaClient = ElasticSearchConfig::getElasticSearchClient(); parent::__construct($config); }
public function __construct($config = array()) { parent::__construct($config); // Add the parameter fields white list. $this->parameter_merge_fields = array('show_extra_fields', 'field_show_type', 'tz_portfolio_redirect'); }