/**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JModelLegacy
  * @since   12.2
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (isset($config['event_after_delete'])) {
         $this->event_after_delete = $config['event_after_delete'];
     } elseif (empty($this->event_after_delete)) {
         $this->event_after_delete = 'onContentAfterDelete';
     }
     if (isset($config['event_after_save'])) {
         $this->event_after_save = $config['event_after_save'];
     } elseif (empty($this->event_after_save)) {
         $this->event_after_save = 'onContentAfterSave';
     }
     if (isset($config['event_before_delete'])) {
         $this->event_before_delete = $config['event_before_delete'];
     } elseif (empty($this->event_before_delete)) {
         $this->event_before_delete = 'onContentBeforeDelete';
     }
     if (isset($config['event_before_save'])) {
         $this->event_before_save = $config['event_before_save'];
     } elseif (empty($this->event_before_save)) {
         $this->event_before_save = 'onContentBeforeSave';
     }
     if (isset($config['event_change_state'])) {
         $this->event_change_state = $config['event_change_state'];
     } elseif (empty($this->event_change_state)) {
         $this->event_change_state = 'onContentChangeState';
     }
     // Guess the JText message prefix. Defaults to the option.
     if (isset($config['text_prefix'])) {
         $this->text_prefix = strtoupper($config['text_prefix']);
     } elseif (empty($this->text_prefix)) {
         $this->text_prefix = strtoupper($this->option);
     }
 }
 function __construct()
 {
     parent::__construct();
     $this->projectid = JRequest::getInt('p', 0);
     $this->ptid = JRequest::getInt('ptid', 0);
     $this->tid = JRequest::getInt('tid', 0);
 }
Beispiel #3
0
 public function __construct($config = array())
 {
     $udbPath = UserNotesHelper::userDataPath() . '/usernotes.db3';
     $db = JDatabaseDriver::getInstance(array('driver' => 'sqlite', 'database' => $udbPath));
     $config['dbo'] = $db;
     parent::__construct($config);
 }
 /**
  * Constructor
  *
  * @param   array  $config  An array of configuration options (name, state, dbo, table_path, ignore_request).
  *
  * @since   3.2
  *
  * @throws  Exception
  */
 public function __construct($config = array())
 {
     $config = array_merge(array('events_map' => array('validate' => 'user')), $config);
     parent::__construct($config);
     // Load the helper and model used for two factor authentication
     JLoader::register('UsersModelUser', JPATH_ADMINISTRATOR . '/components/com_users/models/user.php');
     JLoader::register('UsersHelper', JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php');
 }
Beispiel #5
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     global $ext_name_com, $ext_prefix;
     $this->ext_name_com = $ext_name_com;
     $this->ext_prefix = $ext_prefix;
     $this->context .= $this->getName() && ($layout = JRequest::getVar('layout', 'default')) ? '.' . $layout : '';
     $this->params = JComponentHelper::getParams($this->ext_name_com);
 }
Beispiel #6
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Load the Joomla! RAD layer
     if (!defined('FOF_INCLUDED')) {
         include_once JPATH_LIBRARIES . '/fof/include.php';
     }
     // Load the helper and model used for two factor authentication
     require_once JPATH_ADMINISTRATOR . '/components/com_users/models/user.php';
     require_once JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php';
 }
Beispiel #7
0
 public function __construct($config)
 {
     parent::__construct($config);
     // Чтение username из таблицы User
     $user =& JFactory::getUser();
     $this->username = $user->get('id');
     if ($this->username == null) {
         $this->username = 0;
     }
     // Возвращаем ссылку на глобальный объект базы данных
     $this->db = $this->getDBO();
     if (!$this->db->connected()) {
         echo "Нет соединения с сервером баз данных. Повторите запрос позже";
         jexit();
     }
     ### for test only
     //$this->username = 6334;
 }
Beispiel #8
0
 function __construct()
 {
     parent::__construct();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $id = JRequest::getInt('listid', $usersConfig->get('listid'));
     $this->packageId = (int) JRequest::getInt('packageid', $usersConfig->get('packageid'));
     $this->setId($id);
     $this->_access = new stdClass();
 }
Beispiel #9
0
 public function getInput()
 {
     parent::__construct();
 }
Beispiel #10
0
 /**
  * Constructor
  *
  * @param   array  $config  An array of configuration options (name, state, dbo, table_path, ignore_request).
  *
  * @since   3.6
  *
  * @throws  Exception
  */
 public function __construct($config = array())
 {
     $config = array_merge(array('events_map' => array('validate' => 'user')), $config);
     parent::__construct($config);
 }
Beispiel #11
0
 /**
  * Constructor
  *
  * @param   array  $config  DI Config options
  */
 public function __construct($config = array())
 {
     parent::__construct();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $this->app = ArrayHelper::getValue($config, 'app', JFactory::getApplication());
     $this->session = ArrayHelper::getValue($config, 'session', JFactory::getSession());
     $this->user = ArrayHelper::getValue($config, 'user', JFactory::getUser());
     $this->config = ArrayHelper::getValue($config, 'config', JFactory::getConfig());
     $this->lang = ArrayHelper::getValue($config, 'lang', JFactory::getLanguage());
     $input = $this->app->input;
     $id = $input->getInt('listid', $usersConfig->get('listid'));
     $this->packageId = (int) $input->getInt('packageId', $usersConfig->get('packageId'));
     $this->setId($id);
     $this->advancedSearch = JModelLegacy::getInstance('AdvancedSearch', 'FabrikFEModel');
     $this->advancedSearch->setModel($this);
     $this->access = new stdClass();
 }
 function __construct()
 {
     parent::__construct();
 }
Beispiel #13
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
Beispiel #14
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $app = JFactory::getApplication();
     $input = $app->input;
     $id = $input->getInt('listid', $usersConfig->get('listid'));
     $this->packageId = (int) $input->getInt('packageId', $usersConfig->get('packageId'));
     $this->setId($id);
     $this->access = new stdClass();
 }
Beispiel #15
0
 /**
  * Class contructor
  *
  * @access public
  * @return Object&
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // App reference
     $this->app = JFactory::getApplication();
 }
Beispiel #16
0
 /**
  * Constructor
  * @since 1.5
  */
 public function __construct()
 {
     parent::__construct();
     $id = JRequest::getVar('id', '', 'default', 'int');
     $this->setId($id);
 }
Beispiel #17
0
 function __construct($config = array())
 {
     parent::__construct($config);
     $this->images_path = JPATH_SITE . '/images/avatar/';
 }
 public function __construct()
 {
     $this->setProgramme(WalkProgramme::getNextProgrammeId());
     $this->setLeader(Leader::fromJoomlaUser(JFactory::getUser()->id));
     parent::__construct();
 }