本文整理汇总了PHP中KunenaController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaController::__construct方法的具体用法?PHP KunenaController::__construct怎么用?PHP KunenaController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaController
的用法示例。
在下文中一共展示了KunenaController::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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);
}
示例2: __construct
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);
}
示例3: __construct
/**
* @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);
}
示例4: __construct
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();
}
示例5: __construct
/**
* @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');
}
示例6: __construct
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 ();
}
示例7: __construct
public function __construct($config = array())
{
parent::__construct($config);
$this->baseurl = 'administrator/index.php?option=com_kunena&view=report';
}
示例8: __construct
public function __construct($config = array())
{
parent::__construct($config);
}
示例9: __construct
public function __construct($config = array()) {
parent::__construct($config);
$this->app = JFactory::getApplication ();
}
示例10: __construct
public function __construct($config = array()) {
$this->db = JFactory::getDBO ();
parent::__construct($config);
}
示例11: __construct
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();
}