Exemplo n.º 1
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  *
  * to be called on the first call to the getState() method unless the model
  *
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return  void
  *
  * @since   11.1
  */
 protected function populateState()
 {
     // Get the message id
     $id = isset($_GET['form_id']) ? (int) $_GET['form_id'] : 0;
     $this->setState('form.id', $id);
     parent::populateState();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
	protected function getStoreId($id = '')
	{
		// Compile the store id.
		$id	.= ':'.$this->getState('cimkek.cimke_id');

		return parent::getStoreId($id);
	}
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
	protected function getStoreId($id = '')
	{
		// Compile the store id.
		$id	.= ':'.$this->getState('kapcsolatok.kapcs_id');

		return parent::getStoreId($id);
	}
Exemplo n.º 6
0
 /**
  * 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');
 }
Exemplo n.º 7
0
	protected function getStoreId($id = '')
	{
		// Compile the store id.
		$id	.= ':'.$this->getState('teruletiszervezetek.terszerv_id');

		return parent::getStoreId($id);
	}
Exemplo n.º 8
0
 /**
  * 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);
 }
Exemplo n.º 9
0
 protected function populateState()
 {
     $input = JFactory::getApplication()->input;
     $return = $input->get('return', null, 'default', 'base64');
     $this->setState('return_page', base64_decode($return));
     $this->setState($this->getName() . '.addon', $this->addon);
     $this->setState($this->getName() . '.article', $this->article);
     $params = null;
     if ($this->addon) {
         if (is_string($this->addon->params)) {
             $params = new Registry($this->addon->params);
         } else {
             $params = $this->addon->params;
         }
         $this->addon->params = $params;
     }
     $this->setState($this->getName() . '.addon', $this->addon);
     if ($trigger_params = $this->trigger_params) {
         if (is_string($trigger_params)) {
             $trigger_params = new Registry($trigger_params);
         }
         if ($params) {
             $params->merge($trigger_params);
         } else {
             $params = $trigger_params;
         }
     }
     $this->setState('params', clone $params);
     parent::populateState();
 }
Exemplo n.º 10
0
 /**
  * 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);
 }
Exemplo n.º 11
0
	protected function getStoreId($id = '')
	{
		// Compile the store id.
		$id	.= ':'.$this->getState('felhcsoportok.fcsop_id');

		return parent::getStoreId($id);
	}
Exemplo n.º 12
0
 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());
 }
Exemplo n.º 13
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return      void
  * @since       1.6
  */
 protected function populateState()
 {
     $app = JFactory::getApplication('site');
     // Load state from the request.
     $pk = $app->input->getInt('id');
     $this->setState('article.id', $pk);
     parent::populateState();
 }
Exemplo n.º 14
0
 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()
 {
     $this->walks = array();
     $this->socials = array();
     $this->weekends = array();
     $this->startDate = null;
     $this->endDate = null;
     $this->walkProgramme = null;
     parent::__construct();
 }
 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @since   1.6
  *
  * @return void
  */
 protected function populateState()
 {
     $this->app = JFactory::getApplication();
     $this->input = $this->app->input;
     // Get the item main id
     $id = $this->input->getInt('id', null);
     $this->setState('companyresults.id', $id);
     // Load the parameters.
     parent::populateState();
 }
Exemplo n.º 17
0
	/**
	 * Method to auto-populate the model state.
	 *
	 * This method should only be called once per instantiation and is designed
	 * to be called on the first call to the getState() method unless the model
	 * configuration flag to ignore the request is set.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @return	void
	 * @since	2.5
	 */
	protected function populateState()
	{
		// Get the message id
		$jinput = JFactory::getApplication()->input;
		$id     = $jinput->get('id', 1, 'INT');
		$this->setState('message.id', $id);

		// Load the parameters.
		$this->setState('params', JFactory::getApplication()->getParams());
		parent::populateState();
	}
Exemplo n.º 18
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * @since	2.5
  */
 protected function populateState()
 {
     $app = JFactory::getApplication();
     // Get the message id
     $id = JRequest::getInt('id');
     $this->setState('message.id', $id);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
Exemplo n.º 19
0
Arquivo: user.php Projeto: JozefAB/qk
 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);
     }
 }
Exemplo n.º 20
0
 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Get the pk of the record from the request.
     $itemId = $app->input->getInt('id');
     $this->setState($this->getName() . '.id', $itemId);
     // Load the parameters.
     $value = $app->getParams($this->option);
     $this->setState('params', $value);
 }
Exemplo n.º 21
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * @since	1.6
  */
 protected function populateState()
 {
     $app = JFactory::getApplication();
     $id = JRequest::getInt($this->pk_name);
     $this->setState(strtolower($this->model_key) . '.' . $this->pk_name, $id);
     $cmd = JRequest::getCmd('cmd', '');
     $this->setState(strtolower($this->model_key) . '.cmd', $cmd);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @since   1.6
  *
  * @return void
  */
 protected function populateState()
 {
     $this->app = JFactory::getApplication();
     $this->input = $this->app->input;
     // Get the itme main id
     $id = $this->input->getInt('id', null);
     $this->setState('publicresults.id', $id);
     // Load the parameters.
     $params = $this->app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
Exemplo n.º 23
0
 protected function populateState()
 {
     $app = JFactory::getApplication();
     // Load state from the request.
     $pk = JRequest::getInt('title');
     //echo $pk;
     $this->setState('gallery.id', $pk);
     // Load the parameters.
     $params = $app->getParams();
     //$this->setState('params.id', $params->get('id'));
     $this->setState('params', $params);
     parent::populateState();
 }
Exemplo n.º 24
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * @since	1.6
  */
 protected function populateState()
 {
     echo "in populate state";
     $app = JFactory::getApplication();
     $id = JRequest::getInt('id');
     $this->setState('weight.id', $id);
     $cmd = JRequest::getCmd('cmd', '');
     $this->setState('driver.cmd', $cmd);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
 /**
  * Метод для авто-заполнения состояния модели.
  *
  * Заметка. Вызов метода getState в этом методе приведет к рекурсии.
  *
  * @return  void
  */
 protected function populateState()
 {
     $app = JFactory::getApplication();
     // Получаем Id сообщения из Запроса.
     $id = $app->input->getInt('id', 0);
     // Добавляем Id сообщения в состояние модели.
     $this->setState('message.id', $id);
     // Загружаем глобальные параметры.
     $params = $app->getParams();
     // Добавляем параметры в состояние модели.
     $this->setState('params', $params);
     parent::populateState();
 }
Exemplo n.º 26
0
 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * @since	1.6
  */
 protected function populateState()
 {
     $app = JFactory::getApplication();
     // Get the map id
     $id = JRequest::getInt('id');
     $this->setState('map.id', $id);
     $placemarklistid = JRequest::getVar('placemarklistid');
     $this->setState('map.placemarklistid', $placemarklistid);
     $externalmarkerlink = JRequest::getVar('externalmarkerlink');
     $this->setState('map.externalmarkerlink', $externalmarkerlink);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
Exemplo n.º 27
0
 /**
  * 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);
 }
Exemplo n.º 28
0
 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);
 }
Exemplo n.º 29
0
   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;
       }
   }
Exemplo n.º 30
0
 protected function getStoreId($id = '')
 {
     // Compile the store id.
     $id .= ':' . $this->getState('szavazasok.id');
     return parent::getStoreId($id);
 }