Example #1
0
	function __construct($config = array()){
		parent::__construct($config);
		$this->profiler = KunenaProfiler::instance('Kunena');
		$this->me = KunenaUserHelper::getMyself();
		$this->config = KunenaFactory::getConfig();
		$this->template = KunenaFactory::getTemplate();
	}
Example #2
0
 function __construct($params)
 {
     parent::__construct($params);
     $this->addHelperPath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers');
     $this->loadHelper('html');
     $this->loadHelper('dtregister');
 }
Example #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
     $cfg = BidsHelperTools::getConfig();
     $this->assignRef('cfg', $cfg);
     JHTML::stylesheet('com_bids.css', JURI::root() . 'administrator/components/com_bids/css/');
 }
 function __construct()
 {
     parent::__construct();
     // Load the database and execute our sql file
     $this->db = JFactory::getDBO();
     // Get information of our plugin so we can pass it on to MDS Collivery for Logs
     $sel_query = "SELECT * FROM `#__extensions` where type = 'plugin' and element = 'mds_shipping' and folder = 'vmshipment';";
     $this->db->setQuery($sel_query);
     $this->db->query();
     $this->extension_id = $this->db->loadObjectList()[0]->extension_id;
     $this->app_name = $this->db->loadObjectList()[0]->extension_id;
     $this->app_info = json_decode($this->db->loadObjectList()[0]->manifest_cache);
     // Get our login information
     $config_query = "SELECT * FROM `#__mds_collivery_config` where id = 1;";
     $this->db->setQuery($config_query);
     $this->db->query();
     $this->password = $this->db->loadObjectList()[0]->password;
     $this->username = $this->db->loadObjectList()[0]->username;
     $version = new JVersion();
     require_once preg_replace('|com_installer|i', "", JPATH_COMPONENT_ADMINISTRATOR) . '/helpers/config.php';
     $config = array('app_name' => $this->app_info->name, 'app_version' => $this->app_info->version, 'app_host' => "Joomla: " . $version->getShortVersion() . ' - Virtuemart: ' . VmConfig::getInstalledVersion(), 'app_url' => JURI::base(), 'user_email' => $this->username, 'user_password' => $this->password);
     // Use the MDS API Files
     require_once JPATH_PLUGINS . '/vmshipment/mds_shipping/Mds/Cache.php';
     require_once JPATH_PLUGINS . '/vmshipment/mds_shipping/Mds/Collivery.php';
     $this->collivery = new Mds\Collivery($config);
     // Get some information from the API
     $this->towns = $this->collivery->getTowns();
     $this->services = $this->collivery->getServices();
     $this->location_types = $this->collivery->getLocationTypes();
 }
 function __construct($config = array())
 {
     global $mainframe, $option;
     parent::__construct($config);
     $document =& JFactory::getDocument();
     $document->addStyleSheet('components/' . $option . '/assets/rokecwid.css');
 }
 function __construct($config = array())
 {
     parent::__construct($config);
     $this->lists = new JObject();
     $tmpl_path = JPATH_COMPONENT_ADMINISTRATOR . '/plugins/views/buadmin/tmpl';
     $this->addTemplatePath($tmpl_path);
 }
Example #7
0
	function __construct($config = null)
	{
		parent::__construct( array(
			'base_path' =>  JPATH_COMPONENT .DS. 'installer'
		) );
		$this->_addPath('template', dirname(__FILE__).DS.'tmpl');
	}
Example #8
0
 /**
  * @since	1.5
  */
 function __construct($config = null)
 {
     $app = JFactory::getApplication();
     parent::__construct($config);
     $this->_addPath('template', $this->_basePath . '/views/default/tmpl');
     $this->_addPath('template', JPATH_THEMES . '/' . $app->getTemplate() . '/html/com_installer/default');
 }
Example #9
0
 function ResetViewReset()
 {
     parent::__construct();
     $document = JFactory::getDocument();
     $document->addScript('components/com_jotcache/assets/jotcache.js');
     $document->addStyleSheet('components/com_jotcache/assets/jotcache.css');
 }
Example #10
0
 public function __construct($config = array())
 {
     $mainframe =& JFactory::getApplication();
     $this->my =& JFactory::getUser();
     parent::__construct($config);
     $view = JRequest::getVar('view', '', 'REQUEST');
 }
Example #11
0
 function __construct($tpl = null)
 {
     //Importamos el plugin de formato de moneda
     $this->pluginCatalogo =& JDispatcher::getInstance();
     $this->catalogoComponentConfig =& JComponentHelper::getParams('com_catalogo_planes');
     $this->root_path = JURI::base() . 'components/com_catalogo_planes/assets/';
     parent::__construct($tpl);
 }
 /**
  * Constructor
  *
  * @access	protected
  */
 function __construct($config = array())
 {
     parent::__construct($config);
     //initializing object properties
     $this->id = JRequest::getVar('record', JRequest::getVar('id'));
     //loading resources
     $this->u =& JFactory::getUser();
 }
Example #13
0
 public function __construct($config = array())
 {
     $option = JRequest::getCmd('option');
     parent::__construct($config);
     $document =& JFactory::getDocument();
     $session =& JFactory::getSession();
     $this->rtmodel = new RokGallery_Site_DetailModel();
 }
Example #14
0
 public function __construct($config = array())
 {
     // Call the parent constructor
     parent::__construct($config);
     // Import use full variables from JFactory
     $this->db = JFactory::getDBO();
     $this->uri = JFactory::getURI();
     $this->document = JFactory::getDocument();
     $this->user = JFactory::getUser();
     $this->application = JFactory::getApplication();
     // Create the namespace-variables
     $this->_view = !empty($config['name']) ? $config['name'] : JRequest::getCmd('view', 'default');
     $this->_option = !empty($config['option']) ? $config['option'] : JRequest::getCmd('option');
     $this->_name = $this->_view;
     $this->_option_id = $this->_option . '_' . $this->_view . '_';
     if ($this->application->isSite()) {
         $this->_option_id .= JRequest::getInt('Itemid') . '_';
     }
     // Set the parameters
     if (empty($this->params)) {
         if (YireoHelper::isJoomla15() || $this->application->isSite() == false) {
             $this->params = JComponentHelper::getParams($this->_option);
         } else {
             $this->params = $this->application->getParams($this->_option);
         }
     }
     // Determine whether this view is single or not
     if ($this->_single === null) {
         $className = get_class($this);
         if (preg_match('/s$/', $className)) {
             $this->_single = false;
         } else {
             $this->_single = true;
         }
     }
     // Add some backend-elements
     if ($this->application->isAdmin()) {
         // Automatically set the title
         $this->setTitle();
         $this->setMenu();
         $this->setAutoclean(true);
         // Add some things to the task-bar
         if ($this->_single && $this->loadToolbar == true) {
             JToolBarHelper::custom('savenew', 'save.png', 'save.png', 'LIB_YIREO_VIEW_TOOLBAR_SAVENEW', false, true);
             JToolBarHelper::custom('savecopy', 'copy.png', 'copy.png', 'LIB_YIREO_VIEW_TOOLBAR_SAVECOPY', false, true);
             JToolBarHelper::save();
             JToolBarHelper::apply();
             if ($this->isEdit() == false) {
                 JToolBarHelper::cancel();
             } else {
                 JToolBarHelper::cancel('cancel', 'LIB_YIREO_VIEW_TOOLBAR_CLOSE');
             }
             JHTML::_('behavior.tooltip');
         }
     }
 }
Example #15
0
 function __construct($config = null)
 {
     parent::__construct($config);
     $this->_addPath('template', $this->_basePath . DS . 'views' . DS . 'abstract' . DS . 'tmpl');
     // note that the name config variable is ignored in the parent construct!
     if (JVersion::isCompatible("2.5")) {
         $theme = JEV_CommonFunctions::getJEventsViewName();
         $this->addTemplatePath(JPATH_BASE . DS . 'templates' . DS . JFactory::getApplication()->getTemplate() . DS . 'html' . DS . JEV_COM_COMPONENT . DS . $theme . DS . $this->getName());
         // or could have used
         //$this->addTemplatePath( JPATH_BASE.DS.'templates'.DS.JFactory::getApplication()->getTemplate().DS.'html'.DS.JEV_COM_COMPONENT.DS.$config['name'] );
     }
 }
Example #16
0
 /**
  * Constructor
  *
  * @access	protected
  */
 function __construct($config = array())
 {
     parent::__construct($config);
     //loading resources
     $this->user =& JFactory::getUser();
     if (!$this->user->authorize(EBOOK_COMPONENT, JRequest::getCmd('view') . '.' . JRequest::getCmd('layout', 'default'))) {
         header('Location: ' . DOTCOM . 'index.php?option=com_community');
     }
     //initializing object properties
     $this->id = JRequest::getVar('record', $this->id);
     //loading resources
     $this->getRecord();
 }
Example #17
0
 public function __construct()
 {
     parent::__construct();
     $service = JRequest::getString("service");
     if (!empty($service)) {
         //if we know what service add search paths
         $serviceDir = TUIYO_PLUGINS . DS . strtolower($service) . DS;
         $this->serviceViewDir = $serviceDir . 'views' . DS;
         $serviceTmplDir = $serviceDir . 'views' . DS . $service . DS . 'tmpl' . DS;
         $this->addTemplatePath($serviceDir);
         $this->addTemplatePath($serviceTmplDir);
     }
 }
Example #18
0
 public function __construct($config = array())
 {
     $name = isset($config['name']) ? $config['name'] : $this->getName();
     $this->document = JFactory::getDocument();
     $this->profiler = KunenaProfiler::instance('Kunena');
     $this->app = JFactory::getApplication();
     $this->me = KunenaUserHelper::getMyself();
     $this->config = KunenaFactory::getConfig();
     $this->ktemplate = KunenaFactory::getTemplate();
     // Set the default template search path
     if ($this->app->isSite() && !isset($config['template_path'])) {
         $config['template_path'] = $this->ktemplate->getTemplatePaths("html/{$name}", true);
     }
     parent::__construct($config);
     if ($this->app->isSite()) {
         // Add another template file lookup path specific to the current template
         $fallback = JPATH_THEMES . "/{$this->app->getTemplate()}/html/com_kunena/{$this->ktemplate->name}/{$this->getName()}";
         $this->addTemplatePath($fallback);
     }
 }
Example #19
0
	function __construct($config = array()) {
		parent::__construct($config);
		JHTML::addIncludePath(OSEMSC_F_HELPER);
		// add detect
		$detect = new Mobile_Detect();
		//$this->isMobile = $detect->isMobile();
		$this->isMobile = false;
		$view = JRequest::getCmd('view');
		if ($this->isMobile && !empty($view) && in_array($view, array('login', 'register', 'member'))) {
			// Any mobile device.
			$this->setLayout('mobile');
			JRequest::setvar('tmpl', 'component');
			oseHtml::loadTouchJs();
			oseHTML::stylesheet('components/com_osemsc/assets/css/msc5mobile.css', '1.5');
		} else {
			$jversion = (JOOMLA16 == true) ? '1.6' : '1.5';
			oseHTML::script('media/system/js/core.js', $jversion);
			$this->loadViewJs();
		}
	}
Example #20
0
 function __construct()
 {
     parent::__construct();
     //pull settings from admin
     $db =& JFactory::getDBO();
     $db->setQuery("SELECT * From #__catonesettings limit 1");
     $SETTINGS = $db->loadObject();
     jimport('joomla.database.database');
     jimport('joomla.database.table');
     $conf =& JFactory::getConfig();
     // TODO: Cache on the fingerprint of the arguments
     $driver = $conf->getValue('config.dbtype');
     $optionDb = array('driver' => $driver, 'host' => $SETTINGS->OC_Database_host, 'user' => $SETTINGS->OC_Database_Username, 'password' => $SETTINGS->OC_Database_password, 'database' => $SETTINGS->OC_Database_Name, 'prefix' => "");
     $this->CatsDb =& JDatabase::getInstance($optionDb);
     $this->ftp_host = $SETTINGS->ftp_host;
     $this->ftp_user = $SETTINGS->ftp_user;
     $this->ftp_password = $SETTINGS->ftp_password;
     $this->ftp_path = $SETTINGS->ftp_path;
     $this->Cats_local = $SETTINGS->Cats_local;
 }
Example #21
0
 public function __construct($config = array()) {
     parent::__construct($config);
     $this->_dbg = JRequest::getBool('dbg', 0);
     $this->_japp = & JFactory::getApplication();
 }
Example #22
0
 function __construct($config = array())
 {
     parent::__construct($config);
     // What Access Permissions does this user have? What can (s)he do?
     $this->canDo = self::getActions();
 }
Example #23
0
	function  __construct($config = array()) {
		parent::__construct($config);
		$this->lists = new JObject();
	}
Example #24
0
 public function __construct($config = array()) {
     parent::__construct($config);
 }
Example #25
0
 function __construct($config = array())
 {
     $mainframe =& JFactory::getApplication();
     $this->my =& JFactory::getUser();
     parent::__construct($config);
 }
Example #26
0
 function __construct($config = null)
 {
     parent::__construct($config);
     $this->_addPath('template', $this->_basePath . DS . 'views' . DS . 'default' . DS . 'tmpl');
 }
Example #27
0
 function __construct()
 {
     $this->set('option', JRequest::getCmd('option'));
     parent::__construct();
 }
Example #28
0
 function __construct($config = array())
 {
     parent::__construct($config);
     JHTML::addIncludePath(JPATH_COMPONENT . DS . 'libraries' . DS . 'html' . DS . 'helper');
 }
Example #29
0
 function __construct($config = null)
 {
     parent::__construct(array('base_path' => JPATH_COMPONENT));
     $this->_addPath('template', $this->_basePath . DS . 'views' . DS . 'default' . DS . 'tmpl');
 }
Example #30
0
 function __construct($config = array())
 {
     global $option;
     $this->num = 1;
     parent::__construct($config);
 }