Exemple #1
0
	public function __construct($config = array())
	{
		$this->option = 'com_kunena';
		$this->input  = JFactory::getApplication()->input;

		parent::__construct($config);
		$this->baseurl     = 'administrator/index.php?option=com_kunena&view=plugins';
		$this->baseurl2    = 'administrator/index.php?option=com_kunena&view=plugins';
		$this->view_list   = 'plugins';
		$this->text_prefix = 'COM_PLUGINS';

		// Value = 0
		$this->registerTask('unpublish', 'publish');

		// Value = 2
		$this->registerTask('archive', 'publish');

		// Value = -2
		$this->registerTask('trash', 'publish');

		// Value = -3
		$this->registerTask('report', 'publish');
		$this->registerTask('orderup', 'reorder');
		$this->registerTask('orderdown', 'reorder');

		JFactory::getLanguage()->load('com_plugins', JPATH_ADMINISTRATOR);
	}
Exemple #2
0
	public function __construct($config = array()) {
		parent::__construct($config);
		$this->catid = JRequest::getInt('catid', 0);
		$this->return = JRequest::getInt('return', $this->catid);
		$this->id = JRequest::getInt('id', 0);
		$this->mesid = JRequest::getInt('mesid', 0);
	}
Exemple #3
0
 /**
  * @param   array $config
  *
  * @throws Exception
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->catid = JFactory::getApplication()->input->getInt('catid', 0);
     $this->return = JFactory::getApplication()->input->getInt('return', $this->catid);
     $this->id = JFactory::getApplication()->input->getInt('id', 0);
     $this->mesid = JFactory::getApplication()->input->getInt('mesid', 0);
 }
Exemple #4
0
	public function __construct($config = array()) {
		parent::__construct($config);
		$this->catid = JRequest::getInt('catid', 0);
		$this->return = JRequest::getInt('return', $this->catid);
		$this->id = JRequest::getInt('id', 0);
		$this->mesid = JRequest::getInt('mesid', 0);
		$this->config = KunenaFactory::getConfig();
		$this->me = KunenaUserHelper::getMyself();
	}
Exemple #5
0
 /**
  * @param   array $config
  *
  * @throws Exception
  */
 public function __construct($config = array())
 {
     $this->option = 'com_kunena';
     $this->view_list = 'plugins';
     $this->view_item = 'plugin';
     $this->context = 'plugin';
     $this->text_prefix = 'COM_PLUGINS';
     $this->input = JFactory::getApplication()->input;
     parent::__construct($config);
     JFactory::getLanguage()->load('com_plugins', JPATH_ADMINISTRATOR);
     // Apply, Save & New, and Save As copy should be standard on forms.
     $this->registerTask('apply', 'save');
 }
Exemple #6
0
	public function __construct($config = array()) {
		parent::__construct($config);

		$app = JFactory::getApplication ();
		$lang = JFactory::getLanguage();
		// Start by loading English strings and override them by current locale
		$lang->load('com_kunena.install',JPATH_ADMINISTRATOR, 'en-GB');
		$lang->load('com_kunena.install',JPATH_ADMINISTRATOR, null, true);

		require_once(KPATH_ADMIN . '/install/model.php');
		$installer = new KunenaModelInstall();
		$installer->deleteMenu();
		$installer->createMenu();

		$app->enqueueMessage ( JText::_('COM_KUNENA_MENU_CREATED') );
		$this->redirectBack ();
	}
Exemple #7
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->baseurl = 'administrator/index.php?option=com_kunena&view=report';
 }
Exemple #8
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->baseurl = 'index.php?option=com_kunena';
 }
Exemple #9
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
Exemple #10
0
	public function __construct($config = array()) {
		parent::__construct($config);
		$this->app = JFactory::getApplication ();
	}
Exemple #11
0
	public function __construct($config = array()) {
		$this->db = JFactory::getDBO ();
		parent::__construct($config);
	}
Exemple #12
0
	public function __construct($config = array()) {
		parent::__construct($config);
		$this->baseurl = 'index.php?option=com_kunena&view=categories';
		$this->baseurl2 = 'index.php?option=com_kunena&view=categories';
		$this->me = KunenaUserHelper::getMyself();
	}