Example #1
1
	function __construct() {
		
		$app	= JFactory::getApplication();
		
		parent::__construct();
		
		$config = JFactory::getConfig();		
		
		$paramsC 			= JComponentHelper::getParams('com_phocadownload') ;
		$defaultPagination	= $paramsC->get( 'default_pagination', '20' );
		$file_ordering		= $paramsC->get( 'file_ordering', 1 );
		$context			= $this->_context.'.';
		
		// Get the pagination request variables
		$this->setState('limit', $app->getUserStateFromRequest($context.'limit', 'limit', $defaultPagination, 'int'));
		$this->setState('limitstart', $app->input->get('limitstart', 0, 'int'));

		// In case limit has been changed, adjust limitstart accordingly
		$this->setState('limitstart', ($this->getState('limit') != 0 ? (floor($this->getState('limitstart') / $this->getState('limit')) * $this->getState('limit')) : 0));
		
		$this->setState('filter.language',$app->getLanguageFilter());
		
		$this->setState('fileordering', $app->getUserStateFromRequest($context .'fileordering', 'fileordering', $file_ordering, 'int'));

		// Get the filter request variables
		$this->setState('filter_order', JRequest::getCmd('filter_order', 'ordering'));
		$this->setState('filter_order_dir', JRequest::getCmd('filter_order_Dir', 'ASC'));
		
	}
Example #2
0
 /**
  * Constructor
  *
  * @since 1.0
  */
 function __construct()
 {
     parent::__construct();
     $app = JFactory::getApplication();
     $option = JRequest::getVar('option');
     $cparams = JComponentHelper::getParams('com_flexicontent');
     $default_order = $cparams->get('items_manager_order', 'i.ordering');
     $default_order_dir = $cparams->get('items_manager_order_dir', 'ASC');
     $filter_order_type = $app->getUserStateFromRequest($option . '.items.filter_order_type', 'filter_order_type', 1, 'int');
     $filter_order = $app->getUserStateFromRequest($option . '.items.filter_order', 'filter_order', $default_order, 'cmd');
     $filter_order_Dir = $app->getUserStateFromRequest($option . '.items.filter_order_Dir', 'filter_order_Dir', $default_order_dir, 'word');
     // Filter order is selected via current setting of filter_order_type selector
     $filter_order = $filter_order_type && $filter_order == 'i.ordering' ? 'catsordering' : $filter_order;
     $filter_order = !$filter_order_type && $filter_order == 'catsordering' ? 'i.ordering' : $filter_order;
     JRequest::setVar('filter_order', $filter_order);
     JRequest::setVar('filter_order_Dir', $filter_order_Dir);
     $filter_cats = $app->getUserStateFromRequest($option . '.items.filter_cats', 'filter_cats', '', 'int');
     $filter_subcats = $app->getUserStateFromRequest($option . '.items.filter_subcats', 'filter_subcats', 1, 'int');
     if ($filter_order_type && $filter_cats && ($filter_order == 'i.ordering' || $filter_order == 'catsordering')) {
         JRequest::setVar('filter_subcats', 0);
     }
     $limit = $app->getUserStateFromRequest($option . '.items.limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $app->getUserStateFromRequest($option . '.items.limitstart', 'limitstart', 0, 'int');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     $array = JRequest::getVar('cid', 0, '', 'array');
     $this->setId((int) $array[0]);
 }
Example #3
0
 /**
  * Constructor
  *
  * @param   array  $config  An array of configuration options (name, state, dbo, table_path, ignore_request).
  *
  * @since   11.1
  */
 public function __construct($config = array())
 {
     $this->pathBase = JPATH_SITE . '/plugins/fabrik_visualization/';
     // 3.0 compat
     $this->_row =& $this->row;
     parent::__construct($config);
 }
Example #4
0
 function __construct()
 {
     $this->context = APP_EXTENSION . "_fields.";
     $this->_tablename = '#__' . APP_PREFIX . '_fields';
     $this->_tablename_category = '#__' . APP_PREFIX . '_fields_categories';
     parent::__construct();
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JController
  * @since   1.6
  */
 public function __construct($config = array())
 {
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('id', 'name', 'relname');
     }
     parent::__construct($config);
 }
 /**
  * Constructor
  *
  * @param   array  $config  An array of configuration options (name, state, dbo, table_path, ignore_request).
  *
  * @since   12.2
  * @throws  Exception
  */
 public function __construct($config = [])
 {
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = ['id', 'a.id', 'name', 'a.name', 'lname', 'a.lname', 'suburb', 'a.suburb', 'state', 'a.state', 'country', 'a.country', 'ordering', 'a.ordering', 'sortname1', 'a.sortname1', 'sortname2', 'a.sortname2', 'sortname3', 'a.sortname3'];
     }
     parent::__construct($config);
 }
Example #7
0
 function __construct()
 {
     $app = JFactory::getApplication();
     $this->_member_id = $app->input->get('member_id', null);
     $config['filter_fields'] = array('b.lastname');
     parent::__construct($config);
 }
Example #8
0
 /**
  * Constructor
  *
  * @since 1.0
  */
 function __construct()
 {
     parent::__construct();
     $app = JFactory::getApplication();
     $jinput = $app->input;
     $option = $jinput->get('option', '', 'cmd');
     $view = $jinput->get('view', '', 'cmd');
     $fcform = $jinput->get('fcform', 0, 'int');
     $p = $option . '.' . $view . '.';
     // *****************************
     // Pagination: limit, limitstart
     // *****************************
     $limit = $fcform ? $jinput->get('limit', $app->getCfg('list_limit'), 'int') : $app->getUserStateFromRequest($p . 'limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $fcform ? $jinput->get('limitstart', 0, 'int') : $app->getUserStateFromRequest($p . 'limitstart', 'limitstart', 0, 'int');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $jinput->set('limitstart', $limitstart);
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     $app->setUserState($p . 'limit', $limit);
     $app->setUserState($p . 'limitstart', $limitstart);
     // For some model function that use single id
     $array = $jinput->get('cid', array(0), 'array');
     $this->setId((int) $array[0]);
 }
Example #9
0
 /**
  * Constructor.
  *
  * @param	array	An optional associative array of configuration settings.
  * @see		JController
  * @since	1.6
  */
 public function __construct($config = array())
 {
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('name', 'client_id', 'type', 'folder', 'extension_id', 'update_id', 'update_site_id', 'update_site');
     }
     parent::__construct($config);
 }
Example #10
0
 function __construct()
 {
     parent::__construct();
     // Mannschafts-Nummer fuer update
     // ...
     // $db_man_nr  = ...
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
     $app = JFactory::getApplication();
     $jinput = $app->input;
     $this->projectid = JLHelperFront::stringToInt($jinput->getInt('p', 0));
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     $this->db = JFactory::getDBO();
     $this->app = JFactory::getApplication();
     $this->config = JFactory::getConfig();
 }
Example #13
0
 function __construct()
 {
     parent::__construct();
     global $mainframe, $option;
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     //CATEGORY FILTER store_cat
     //$store_cat = $mainframe->getUserStateFromRequest( 'com_quick2cart.store_cat', 'store_cat',0, 'INTEGER' );
     $store_cat = $jinput->get('store_cat', '', 'INTEGER');
     $this->setState('store_cat', $store_cat);
     // get component limit for pagination
     $params = JComponentHelper::getParams('com_quick2cart');
     if (!empty($store_cat)) {
         // show pagination only when pagination is selected
         $comp_limit = $params->get('all_prod_pagination_limit');
     } else {
         $comp_limit = $params->get('storeProdPage_limit');
     }
     //$filter_limit=$mainframe->getCfg('list_limit');
     //$filter_limit=!empty($default_limit)?$default_limit:$comp_limit;
     // Get the pagination request variables
     $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $comp_limit, 'int');
     $limitstart = $jinput->get('limitstart', 0, '', 'int');
     $this->setState('limit', $limit);
     // Set the limit variable for query later on
     $this->setState('limitstart', $limitstart);
     //$change_storeto= $mainframe->getUserStateFromRequest( 'current_store', 'current_store','', 'INTEGER' );
     //$this->setState('current_store', $change_storeto);
 }
Example #14
0
	/**
	 * Constructor
	 */
	public function __construct()
	{
		parent::__construct();

		$app = JFactory::getApplication();

		// Get the parameters of the active menu item
		$params = $app->getParams('com_jem');

		$id = $app->input->getInt('id', 0);
		if (empty($id)) {
			$id = $params->get('id', 1);
		}

		$this->_id = $id;

		$this->_showemptycats    = (bool)$params->get('showemptycats', 1);
		$this->_showsubcats      = (bool)$params->get('usecat', 1);
		$this->_showemptysubcats = (bool)$params->get('showemptychilds', 1);

		//get the number of events from database
		$limit 		= $app->input->getInt('limit', $params->get('cat_num'));
		$limitstart = $app->input->getInt('limitstart', 0);
		// correct start value if required
		$limitstart = $limit ? (int)(floor($limitstart / $limit) * $limit) : 0;

		$this->setState('limit', $limit);
		$this->setState('limitstart', $limitstart);
	}
Example #15
0
 /**
  * Constructor
  *
  * @since 1.0
  */
 function __construct()
 {
     parent::__construct();
     $type = JRequest::getVar('type', 'items', '', 'word');
     $folder = JRequest::getVar('folder', 'default', '', 'cmd');
     $this->setId($type, $folder);
 }
Example #16
0
 function __construct()
 {
     parent::__construct();
     $app = JFactory::getApplication();
     $id = $app->input->get('id', 0, 'int');
     $this->setId((int) $id);
 }
Example #17
0
 function __construct()
 {
     parent::__construct();
     $option = JRequest::getCmd('option');
     $app = JFactory::getApplication();
     $filter_raid_order = $app->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'r.start_time', 'cmd');
     $filter_raid_order_Dir = $app->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'asc', 'word');
     $filter_raid_search = $app->getUserStateFromRequest($option . 'filter_raid_search', 'search', '', 'string');
     $filter_raid_start_time_min = $app->getUserStateFromRequest($option . 'filter_raid_start_time_min', 'start_time_min', null, 'date');
     $filter_raid_start_time_max = $app->getUserStateFromRequest($option . 'filter_raid_start_time_max', 'start_time_max', null, 'date');
     $filter_guild_filter = $app->getUserStateFromRequest($option . 'filter_guild_filter', 'guild_filter', null, 'int');
     // Get 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);
     $this->setState('filter_order', $filter_raid_order);
     $this->setState('filter_order_Dir', $filter_raid_order_Dir);
     $this->setState('filter_raid_search', $filter_raid_search);
     $this->setState('filter_raid_start_time_min', $filter_raid_start_time_min);
     $this->setState('filter_raid_start_time_max', $filter_raid_start_time_max);
     $this->setState('filter_guild_filter', $filter_guild_filter);
 }
Example #18
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_dbg = JRequest::getBool('dbg', 0);
     $this->_japp = JFactory::getApplication();
     $user = JFactory::getUser();
     $this->_user_id = $user->get('id');
     $this->_id_elemento = JRequest::getInt('id', 0);
     $this->SCOInstanceID = $this->_id_elemento;
     $this->_user =& JFactory::getUser();
     // if ($this->_user->guest) {
     //     //TODO Personalizzare il messaggio per i non registrati
     //     $msg = "Per accedere al corso รจ necessario loggarsi";
     //     //TODO Sistemare per fare in modo che dopo il login torni al corso
     //     $uri      = JFactory::getURI();
     //     $return      = $uri->toString();
     //     $url  = 'index.php?option=com_users&view=login';
     //     $url .= '&return='.base64_encode($return);
     //     $this->_japp->redirect(JRoute::_($url), $msg);
     //     FB::error("E' NECESSARIO LOGGARSI");
     // }
     //$this->initializeTrack();
     //bypasso check iscrizione
     //$this->checkIscrizione();
     // $this->_checkCoupon();
     $this->_checkPermessi();
 }
Example #19
0
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     global $option;
     $context = "kb_cats_";
     // Get pagination request variables
     $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = $mainframe->getUserStateFromRequest($context . '.list.limitstart', 'limitstart', 0, 'int');
     $search = $mainframe->getUserStateFromRequest($context . 'search', 'search', '', 'string');
     $search = JString::strtolower($search);
     $filter_order = $mainframe->getUserStateFromRequest($context . 'filter_order', 'filter_order', '', 'cmd');
     $filter_order_Dir = $mainframe->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '', 'word');
     $ispublished = $mainframe->getUserStateFromRequest($context . 'filter_ispublished', 'ispublished', -1, 'int');
     if (!$filter_order) {
         $filter_order = "c.ordering";
     }
     $this->lists['order_Dir'] = $filter_order_Dir;
     $this->lists['order'] = $filter_order;
     $this->lists['search'] = $search;
     $this->lists['ispublished'] = $ispublished;
     // In case limit has been changed, adjust it
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Example #20
0
	/**
	 * Constructor
	 *
	 */
	public function __construct()
	{
		parent::__construct();

		$app = JFactory::getApplication();
		$jemsettings = JEMHelper::config();

		//get the number of events from database
		$limit		= $app->getUserStateFromRequest('com_jem.search.limit', 'limit', $jemsettings->display_num, 'int');
		$limitstart	= $app->input->getInt('limitstart', 0);
		// correct start value if required
		$limitstart = $limit ? (int)(floor($limitstart / $limit) * $limit) : 0;

		$this->setState('limit', $limit);
		$this->setState('limitstart', $limitstart);

		// Get the filter request variables
		$filter_order = $app->input->getCmd('filter_order', 'a.dates');
		$this->setState('filter_order', $filter_order);

		$filter_order_DirDefault = 'ASC';
		// Reverse default order for dates in archive mode
		$task = $app->input->get('task', '');
		if (($task == 'archive') && ($filter_order == 'a.dates')) {
			$filter_order_DirDefault = 'DESC';
		}
		$this->setState('filter_order_Dir', $app->input->getCmd('filter_order_Dir', $filter_order_DirDefault));
	}
Example #21
0
 function __construct()
 {
     parent::__construct();
     $cids = JRequest::getVar('cid', 0, '', 'array');
     $this->setId((int) $cids[0]);
     global $mainframe, $option;
 }
	public function __construct() {
		if(!php_Boot::$skip_constructor) {
		$config = null;
		$config = Array("[\"name\":\"Joomlahaxe\"]");
		parent::__construct($config);
		defined('_JEXEC') or die("no joomla here");
	}}
 /**
  * Constructor
  *
  * @since 1.5
  */
 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', JRequest::getUInt('limitstart', 0));
     // Get parameters.
     $params = $app->getParams();
     if ($params->get('searchphrase') == 1) {
         $searchphrase = 'any';
     } elseif ($params->get('searchphrase') == 2) {
         $searchphrase = 'exact';
     } else {
         $searchphrase = 'all';
     }
     // Set the search parameters
     $keyword = urldecode(JRequest::getString('searchword'));
     $match = JRequest::getWord('searchphrase', $searchphrase);
     $ordering = JRequest::getWord('ordering', $params->get('ordering', 'newest'));
     $this->setSearch($keyword, $match, $ordering);
     //Set the search areas
     $areas = JRequest::getVar('areas');
     $this->setAreas($areas);
 }
Example #24
0
 function __construct()
 {
     parent::__construct();
     $cids = JRequest::getVar('cid', 0, '', 'array');
     $this->setId((int) $cids[0]);
     $this->loadLanguages();
 }
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     $option = JRequest::getVar('option');
     //Pagination Variabeln
     $limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'), 'default', 'int');
     $limitstart = JRequest::getVar('limitstart', 0, 'default', 'int');
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     //Suche und Filter
     $filter_saison = JRequest::getVar('filter_saison', $this->_getAktuelleSaison(), 'default', 'int');
     $filter_turnier = JRequest::getVar('filter_turnier', '', 'default', 'int');
     $search = JRequest::getVar('search', '', 'default', 'string');
     $search = JString::strtolower($search);
     $this->setState('filter_saison', $filter_saison);
     $this->setState('filter_turnier', $filter_turnier);
     $this->setState('search', $search);
     //Sortierung Variabeln
     $filter_order = JRequest::getVar('filter_order', 'turnier', 'default', 'cmd');
     $filter_order_Dir = JRequest::getVar('filter_order_Dir', 'ASC', 'default', 'word');
     $this->setState('filter_order', $filter_order);
     $this->setState('filter_order_Dir', $filter_order_Dir);
     // User
     $this->user = JFactory::getUser();
 }
Example #26
0
 function __construct()
 {
     parent::__construct();
     $this->turnierid = JRequest::getInt('turnier', 0);
     $this->_getTurnierData();
     $this->_getTurnierPlayers();
 }
Example #27
0
 function __construct()
 {
     parent::__construct();
     $input = JFactory::getApplication()->input;
     $array = $input->get('cid', 0, 'ARRAY');
     $this->setId((int) $array[0]);
 }
Example #28
0
	/**
	 * Constructor
	 *
	 */
	public function __construct()
	{
		parent::__construct();

		$app         = JFactory::getApplication();
		$jemsettings = JEMHelper::config();
		$settings    = JEMHelper::globalattribs();

		$id = $app->input->getInt('id', 0);
		$this->setId((int)$id);

		$this->_reguser = $settings->get('global_regname', '1');

		/* in J! 3.3.6 limitstart is removed from request - but we need it! */
		if ($app->input->getInt('limitstart', null) === null) {
			$app->setUserState('com_jem.attendees.limitstart', 0);
		}

		$limit		= $app->getUserStateFromRequest( 'com_jem.attendees.limit', 'limit', $jemsettings->display_num, 'int');
		$limitstart = $app->getUserStateFromRequest( 'com_jem.attendees.limitstart', 'limitstart', 0, 'int' );
		// correct start value if required
		$limitstart = $limit ? (int)(floor($limitstart / $limit) * $limit) : 0;

		$this->setState('limit', $limit);
		$this->setState('limitstart', $limitstart);

		//set unlimited if export or print action | task=export or task=print
		$task = $app->input->get('task', '');
		$this->setState('unlimited', ($task == 'export' || $task == 'print') ? '1' : '');
	}
Example #29
0
 public function __construct()
 {
     // Load installer language file only from the component
     $lang = JFactory::getLanguage();
     $lang->load('com_kunena.install', KUNENA_INSTALLER_ADMINPATH, 'en-GB');
     $lang->load('com_kunena.install', KUNENA_INSTALLER_ADMINPATH);
     $lang->load('com_kunena.libraries', KUNENA_INSTALLER_ADMINPATH, 'en-GB');
     $lang->load('com_kunena.libraries', KUNENA_INSTALLER_ADMINPATH);
     parent::__construct();
     $this->db = JFactory::getDBO();
     if (function_exists('ignore_user_abort')) {
         ignore_user_abort(true);
     }
     $this->setState('default_max_time', @ini_get('max_execution_time'));
     @set_time_limit(300);
     $this->setState('max_time', @ini_get('max_execution_time'));
     // TODO: move to migration
     $this->_versiontablearray = array(array('prefix' => 'kunena_', 'table' => 'kunena_version'), array('prefix' => 'fb_', 'table' => 'fb_version'));
     // TODO: move to migration
     $this->_kVersions = array(array('component' => null, 'prefix' => null, 'version' => null, 'date' => null));
     // TODO: move to migration
     $this->_fbVersions = array(array('component' => 'FireBoard', 'prefix' => 'fb_', 'version' => '1.0.4', 'date' => '2007-12-23', 'table' => 'fb_sessions', 'column' => 'currvisit'), array('component' => 'FireBoard', 'prefix' => 'fb_', 'version' => '1.0.3', 'date' => '2007-09-04', 'table' => 'fb_categories', 'column' => 'headerdesc'), array('component' => 'FireBoard', 'prefix' => 'fb_', 'version' => '1.0.2', 'date' => '2007-08-03', 'table' => 'fb_users', 'column' => 'rank'), array('component' => 'FireBoard', 'prefix' => 'fb_', 'version' => '1.0.1', 'date' => '2007-05-20', 'table' => 'fb_users', 'column' => 'uhits'), array('component' => 'FireBoard', 'prefix' => 'fb_', 'version' => '1.0.0', 'date' => '2007-04-15', 'table' => 'fb_messages'), array('component' => null, 'prefix' => null, 'version' => null, 'date' => null));
     // TODO: move to migration
     $this->_sbVersions = array(array('component' => 'JoomlaBoard', 'prefix' => 'sb_', 'version' => 'v1.0.5', 'date' => '0000-00-00', 'table' => 'sb_messages'), array('component' => null, 'prefix' => null, 'version' => null, 'date' => null));
     $this->steps = array(array('step' => '', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_INSTALL')), array('step' => 'Prepare', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_PREPARE')), array('step' => 'Plugins', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_PLUGINS')), array('step' => 'Database', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_DATABASE')), array('step' => 'Finish', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_FINISH')), array('step' => '', 'menu' => JText::_('COM_KUNENA_INSTALL_STEP_COMPLETE')));
 }
Example #30
0
 /**
  * Constructor
  *
  * @access      protected
  * @param       object  $subject The object to observe
  * @param       array   $config  An array that holds the plugin configuration
  * @since       1.5
  */
 public function __construct($config = array())
 {
     //parent::__construct($subject, $config);
     //Get config for PlayJoomUpdate
     $this->UpdateConf = PlayjoomupdateHelper::getConfig('Update', JPATH_COMPONENT_ADMINISTRATOR . '/playjoomupdate.conf.php');
     parent::__construct($config);
 }