/** * Constructor * * @since 1.5 */ function __construct() { parent::__construct(); $usersConfig =& JComponentHelper::getParams('com_fabrik'); $id = JRequest::getInt('fabrik', $usersConfig->get('fabrik')); $this->setId($id); }
/** * Constructor that retrieves the ID from the request * * @access public * @return void */ function __construct() { parent::__construct(); $id = JRequest::getVar('cid', 0, '', 'int'); $this->setId($id); }
function __construct() { parent::__construct(); $this->_data = array(); jimport('joomla.filesystem.file'); require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_jdefender' . DS . 'helpers' . DS . 'vars.php'; }
function __construct() { parent::__construct(); global $option; $id = JRequest::getInt('feed_id', 0, '', 'int'); $this->setId((int) $id); }
/** * Constructor * * @since 0.1 */ function __construct() { parent::__construct(); $array = JRequest::getVar('cid', array(0), '', 'array'); $this->setId((int) $array[0]); $this->setSubmitKey(JRequest::getVar('submit_key', '')); }
function __construct() { parent::__construct(); $this->_cid = JRequest::getInt('catid', 0); $this->_size = JRequest::getVar('size', ''); $this->_id = JRequest::getVar('id', ''); }
function __construct() { parent::__construct(); $mainframe =& JFactory::getApplication(); $option = 'com_rsticketspro'; $user = JFactory::getUser(); if ($user->get('guest')) { $link = JRequest::getURI(); $link = base64_encode($link); $user_option = RSTicketsProHelper::isJ16() ? 'com_users' : 'com_user'; $mainframe->redirect(RSTicketsProHelper::route('index.php?option=' . $user_option . '&view=login&return=' . $link, false)); } if (!RSTicketsProHelper::isStaff()) { JError::raiseWarning(500, JText::_('RST_STAFF_CANNOT_VIEW_USERS')); $mainframe->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=rsticketspro', false)); } $this->_permissions = RSTicketsProHelper::getCurrentPermissions(); if (!$this->_permissions->add_ticket_customers && !$this->_permissions->add_ticket_staff) { JError::raiseWarning(500, JText::_('RST_STAFF_CANNOT_VIEW_USERS')); $mainframe->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=rsticketspro', false)); } $this->_db = JFactory::getDBO(); // Get pagination request variables $limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'), '', 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState($option . '.users.limit', $limit); $this->setState($option . '.users.limitstart', $limitstart); $this->_query = $this->_buildQuery(); }
function __construct() { parent::__construct(); $this->turnierid = JRequest::getInt('turnier', 0); $this->_getTurnierData(); $this->_getTurnierPlayers(); }
function YRMModelVersion($lists) { $this->_version = $lists['version']; $this->_url = $lists['url']; $this->_pc = $lists['pc']; parent::__construct(); }
public function __construct() { parent::__construct(); $this->_table_prefix = '#__redshop_'; $infoid = JRequest::getInt('infoid'); $this->setId($infoid); }
function __construct() { parent::__construct(); $mainframe =& JFactory::getApplication(); $option = 'com_rsmembership'; // Get pagination request variables $limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'), '', 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState($option . '.categories.limit', $limit); $this->setState($option . '.categories.limitstart', $limitstart); $params = clone $mainframe->getParams('com_rsmembership'); switch ($params->get('orderby')) { case 'title': $sortColumn = 'c.name'; $sortOrder = 'ASC'; break; case 'rtitle': $sortColumn = 'c.name'; $sortOrder = 'DESC'; break; default: case 'order': $sortColumn = 'c.ordering'; $sortOrder = 'ASC'; break; } $filter_order = $mainframe->getUserStateFromRequest($option . '.categories.filter_order', 'filter_order', $sortColumn); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.categories.filter_order_Dir', 'filter_order_Dir', $sortOrder); $this->setState($option . '.categories.filter_order', $filter_order); $this->setState($option . '.categories.filter_order_Dir', $filter_order_Dir); $this->_query = $this->_buildQuery(); }
/** * Constructor that retrieves the ID from the request * * @access public * @return void */ function __construct() { parent::__construct(); //dump(JRequest::getVar('cid'), "CID"); $array = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int) $array[0]); }
function __construct() { parent::__construct(); $array = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int) $array[0]); $this->_params =& JComponentHelper::getParams('com_ecommerce'); }
/** * Constructor * * @since 1.5 */ function __construct() { global $mainframe; parent::__construct(); $_task = JRequest::getVar('task', 'time'); $_time = JRequest::getVar('time', '24h'); switch ($_time) { case "4h": $this->_hours = 4; break; case "8h": $this->_hours = 8; break; case "12h": $this->_hours = 12; break; case "24h": $this->_hours = 24; break; default: $this->_hours = 24; break; } // get parameters $params = JComponentHelper::getParams('com_discussions'); $_categoryListLength = $params->get('categoryListLength', '20'); $this->setState('limit', $_categoryListLength, 'int'); $this->setState('limitstart', JRequest::getVar('limitstart', 0, '', 'int')); }
function __construct() { parent::__construct(); global $mainframe, $option; $component = JComponentHelper::getComponent('com_properties'); $params = new JParameter($component->params); $this->Mostrar = $params->get('cantidad_productos'); if (!JRequest::getVar('limitstart')) { $this->setState('limit', $this->Mostrar); $this->setState('limitstart', 0); } else { $limit = $this->Mostrar; $this->setState('limit', $this->Mostrar); $limitstart = JRequest::getVar('limitstart'); $this->setState('limitstart', $limitstart); $start = JRequest::getVar('start'); $this->setState('start', $start); } $ShowOrderByDefault = $params->get('ShowOrderByDefault'); $ShowOrderDefault = $params->get('ShowOrderDefault'); $this->filter_order = $mainframe->getUserStateFromRequest("{$option}.filter_order", 'filter_order', $ShowOrderByDefault, 'cmd'); $this->filter_order_Dir = $mainframe->getUserStateFromRequest("{$option}.filter_order_Dir", 'filter_order_Dir', $ShowOrderDefault, 'word'); $menus =& JSite::getMenu(); $menu = $menus->getActive(); $menu_params = new JParameter($menu->params); $DetailsMarket = $menu_params->get('DetailsMarket'); $this->DetailsMarket = $DetailsMarket; $this->pathway(); }
function __construct() { parent::__construct(); $this->_language = JRequest::getVar('language', 'en-GB'); $this->_db = JFactory::getDBO(); $this->_query = $this->_buildQuery(); }
function __construct() { parent::__construct(); $mainframe =& JFactory::getApplication(); $option = 'com_rsticketspro'; $user = JFactory::getUser(); if ($user->get('guest')) { $link = JRequest::getURI(); $link = base64_encode($link); $user_option = RSTicketsProHelper::isJ16() ? 'com_users' : 'com_user'; $mainframe->redirect(RSTicketsProHelper::route('index.php?option=' . $user_option . '&view=login&return=' . $link, false)); } $ticket_viewing_history = RSTicketsProHelper::getConfig('ticket_viewing_history'); if (!$ticket_viewing_history) { JError::raiseWarning(500, JText::_('RST_CANNOT_VIEW_HISTORY')); $mainframe->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=rsticketspro', false)); } if ($ticket_viewing_history == 1 && !RSTicketsProHelper::isStaff()) { JError::raiseWarning(500, JText::_('RST_CANNOT_VIEW_HISTORY')); $mainframe->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=rsticketspro', false)); } $this->_db = JFactory::getDBO(); // Get pagination request variables $limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'), '', 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState($option . '.history.limit', $limit); $this->setState($option . '.history.limitstart', $limitstart); $this->_query = $this->_buildQuery(); $document =& JFactory::getDocument(); $document->addStyleSheet(JURI::root(true) . '/templates/system/css/system.css'); $document->addStyleSheet(JURI::root(true) . '/templates/system/css/general.css'); }
public function __construct() { parent::__construct(); $this->_table_prefix = '#__redshop_'; $this->Redconfiguration = new Redconfiguration(); $this->_configpath = JPATH_SITE . "/administrator/components/com_redshop/helpers/redshop.cfg.php"; }
function __construct() { parent::__construct(); $db =& JFactory::getDBO(); $mainframe = JFactory::getApplication(); global $option; $this->_subcode = JRequest::getVar('sub_code', 0, '', 'int'); $this->_timeperiod = JRequest::getVar('time_period', 0, '', 'int'); //dump($this->_subcode, "SUBCODE"); // Get pagination request variables $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // Get the user state $filter_order = $mainframe->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'order_date'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'DESC'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); // Build the list array for use in the layout $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $lists['subcode'] = $this->_subcode; $lists['timeperiod'] = $this->_timeperiod; $this->_lists = $lists; }
/** * Constructor * * @since 0.1 */ function __construct() { parent::__construct(); $app =& JFactory::getApplication(); $option = Jrequest::getCmd('option'); // Get the pagination request variables $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); // filters and ordering $filter_order = $app->getUserStateFromRequest('com_redevent.sessions.filter_order', 'filter_order', 'obj.dates', 'cmd'); $filter_order_Dir = $app->getUserStateFromRequest('com_redevent.sessions.filter_order_Dir', 'filter_order_Dir', 'asc', 'word'); $search = $app->getUserStateFromRequest('com_redevent.sessions.search', 'search', '', 'string'); $eventid = $app->getUserStateFromRequest('com_redevent.sessions.eventid', 'eventid', 0, 'int'); $venueid = $app->getUserStateFromRequest('com_redevent.sessions.venueid', 'venueid', 0, 'int'); $filter_state = $app->getUserStateFromRequest('com_redevent.sessions.filter_state', 'filter_state', 'notarchived', 'cmd'); $filter_featured = $app->getUserStateFromRequest('com_redevent.sessions.filter_featured', 'filter_featured', '', 'cmd'); $filter_group = $app->getUserStateFromRequest('com_redevent.sessions.filter_group', 'filter_group', 0, 'int'); $filter_group_manage = $app->getUserStateFromRequest('com_redevent.sessions.filter_group_manage', 'filter_group_manage', 1, 'int'); $this->setState('filter_order', $filter_order); $this->setState('filter_order_Dir', $filter_order_Dir); $this->setState('filter_state', $filter_state); $this->setState('filter_featured', $filter_featured); $this->setState('filter_group', $filter_group); $this->setState('filter_group_manage', $filter_group_manage); $this->setState('search', strtolower($search)); $this->setState('eventid', $eventid); $this->setState('venueid', $venueid); $this->setEventId($eventid); }
public function __construct($config = array()) { if (empty($config['filter_fields'])) { $config['filter_fields'] = array(); } parent::__construct($config); }
function __construct($config = array()) { //remove old bridge $old_bridge = JRequest::getString('current_bridge_path', '', 'post'); $posted_params = JRequest::getVar('params', '', 'post'); if (is_array($posted_params)) { $new_bridge = $posted_params['bridge_path']; if (trim($old_bridge) != trim($new_bridge)) { // new location, so delete old $this->removebridge($old_bridge, false); } } if ($this->_isForumInstalled() && $this->_isBridgeInstalled()) { $current_auth = $this->_getAuthMethod(); // if plugin installed, and not set to joomla... if (JFile::exists(JPATH_SITE . DS . $this->getForumPath() . DS . "includes" . DS . "auth" . DS . "auth_joomla.php")) { if ($current_auth != "joomla") { $this->_setAuthMethod("joomla"); } } else { if ($current_auth == "joomla") { $this->_setAuthMethod("db"); } } } parent::__construct($config); }
/** * Constructor that retrieves the ID from the request * * @access public * @return void */ function __construct() { parent::__construct(); ini_set('max_execution_time', '3600'); $this->_config = $this->getConfig(); $this->getConnectToExternalDB(); }
function __construct() { $this->context = APP_EXTENSION . "_payments."; $this->tablename = '#__' . APP_PREFIX . '_payment_log'; JTheFactoryHelper::tableIncludePath('payments'); parent::__construct(); }
function __construct() { parent::__construct(); $cid = JRequest::getVar('cid', 0); $this->_cid = $cid; $this->_issearch = JRequest::getVar('issearch', 0); }
function __construct() { $this->context = APP_EXTENSION . "_positions."; $this->_tablename = '#__' . APP_PREFIX . '_fields_positions'; $this->_tablename_fields = '#__' . APP_PREFIX . '_fields'; parent::__construct(); }
public function __construct() { parent::__construct(); $this->_table_prefix = '#__redshop_'; $array = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int) $array[0]); }
/** * Constructor. Sets the internal reference to Profile ID based on the request parameters. * */ public function __construct() { parent::__construct(); // Get the pagination request variables $app = JFactory::getApplication(); $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit')); $limitstart = $app->getUserStateFromRequest(JRequest::getCmd('option', 'com_akeeba') . 'profileslimitstart', 'limitstart', 0); // Set the page pagination variables $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); // Get the ID from the request $cid = JRequest::getVar('cid', false); if ($cid) { $cid = JRequest::getVar('cid', false, 'DEFAULT', 'array'); if (!empty($cid)) { $this->id_list = array(); foreach ($cid as $id) { $this->id_list[] = $id; } } $id = $cid[0]; } else { $id = JRequest::getInt('id', 0); $this->id_list = array($id); } $this->setId($id); }
/** * Constructor * * @since 1.0 */ function __construct() { parent::__construct(); $cid = JRequest::getVar('cid', array(0), '', 'array'); JArrayHelper::toInteger($cid, array(0)); $this->setId($cid[0]); }
function __construct() { parent::__construct(); $db =& JFactory::getDBO(); $mainframe = JFactory::getApplication(); global $option; $search = $mainframe->getUserStateFromRequest($option . 'search', 'search', '', 'string'); $origSearch = $search; $search = JString::strtolower($search); // Get the user state $filter_order = $mainframe->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'pub_name'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'ASC'); //dump($search, "SEARCH"); // Get pagination request variables $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $where = array(); if ($search) { $where[] = 'pub.pub_name LIKE "%' . $db->getEscaped($search) . '%"'; } $where = count($where) ? ' WHERE ' . implode(' AND ', $where) : ''; // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); // Build the list array for use in the layout $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $lists['search'] = $origSearch; $this->_where = $where; $this->_lists = $lists; }