当前位置: 首页>>代码示例>>PHP>>正文


PHP KunenaController::__construct方法代码示例

本文整理汇总了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);
	}
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:27,代码来源:plugins.php

示例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);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:7,代码来源:topic.php

示例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);
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:13,代码来源:topic.php

示例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();
	}
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:9,代码来源:topic.php

示例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');
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:18,代码来源:plugin.php

示例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 ();
	}
开发者ID:rich20,项目名称:Kunena,代码行数:17,代码来源:createmenu.php

示例7: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->baseurl = 'administrator/index.php?option=com_kunena&view=report';
 }
开发者ID:sillysachin,项目名称:teamtogether,代码行数:5,代码来源:report.php

示例8: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:4,代码来源:search.php

示例9: __construct

	public function __construct($config = array()) {
		parent::__construct($config);
		$this->app = JFactory::getApplication ();
	}
开发者ID:rich20,项目名称:Kunena,代码行数:4,代码来源:search.php

示例10: __construct

	public function __construct($config = array()) {
		$this->db = JFactory::getDBO ();
		parent::__construct($config);
	}
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:4,代码来源:announcement.php

示例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();
	}
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:6,代码来源:categories.php


注:本文中的KunenaController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。