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


PHP JControllerForm::__construct方法代码示例

本文整理汇总了PHP中JControllerForm::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::__construct方法的具体用法?PHP JControllerForm::__construct怎么用?PHP JControllerForm::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JControllerForm的用法示例。


在下文中一共展示了JControllerForm::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 /**
  * constructor (registers additional tasks to methods)
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Set reference to parameters
     $this->params = JComponentHelper::getParams('com_chessvn');
     //$dummy = $this->params->get('parm_text');
 }
开发者ID:khangcodt,项目名称:nvssehcweb,代码行数:11,代码来源:gameoption.php

示例2: __construct

 /**
  * Constructor
  *
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register additional tasks
     $this->registerTask('upload', 'save');
     $this->registerTask('decline', 'approve');
 }
开发者ID:MrJookie,项目名称:pm,代码行数:11,代码来源:revisionform.php

示例3: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     if (JDEBUG) {
         JLog::addLogger(array('text_file' => 'com_usernotes.log.php'), JLog::ALL, array('com_usernotes'));
     }
 }
开发者ID:ron4mac,项目名称:joomla_com_usernotes,代码行数:7,代码来源:edit.php

示例4: __construct

 /**
  *
  * Class Constructor
  *
  * @param	array	$config		An optional associative array of configuration settings.
  * @return	void
  * @since	1.0
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Apply, Save & New, and Save As copy should be standard on forms.
     $this->registerTask('savenclose', 'save');
     $this->view_list = 'subscribers';
 }
开发者ID:Rikisha,项目名称:proj,代码行数:15,代码来源:list.php

示例5: __construct

 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save2new', 'save');
     $this->registerTask('save2copy', 'save');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:10,代码来源:weblink.php

示例6: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->internalContext = $this->input->getCmd('context', 'com_content.article');
     $parts = DPFieldsHelper::extract($this->internalContext);
     $this->component = $parts ? $parts[0] : null;
 }
开发者ID:beingsane,项目名称:DPFields,代码行数:7,代码来源:field.php

示例7: __construct

 /**
  * Function that allows child controller access to model data after the data has been saved.
  *
  * @param   JModelLegacy  $model      The data model object.
  * @param   array         $validData  The validated data.
  *
  * @return	void
  * @since	1.6
  */
 public function __construct($config = array())
 {
     $this->view_item = 'agent';
     $this->view_list = 'agents';
     $this->context = 'customer';
     return parent::__construct($config);
 }
开发者ID:hixbotay,项目名称:executivetransport,代码行数:16,代码来源:agent.php

示例8: array

 function __construct($config = array())
 {
     parent::__construct($config);
     // Need to set list view to plural format in legacy/controllers/form/constructor with array('/is$/i', "ises")
     // Or change like here
     $this->view_list = $this->view_item . "es";
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:7,代码来源:precis.php

示例9: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_app = JFactory::getApplication();
     $this->_input = $this->_app->input;
     $this->_config = JSNConfigHelper::get();
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:7,代码来源:slider.php

示例10: __construct

	public function __construct($config = array())
	{
	
		$this->view_item = 'teruletiszervezetek';
		$this->view_list = 'teruletiszervezeteks';
		parent::__construct($config);
	}	
开发者ID:utopszkij,项目名称:lmp,代码行数:7,代码来源:teruletiszervezetek.php

示例11:

 /**
  * Constructor
  *
  */
 function __construct()
 {
     parent::__construct();
     // Register Extra task
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:11,代码来源:template.php

示例12: __construct

 /**
  * Construct the controller 
  * 
  * @copyright 
  * @author		RolandD 
  * @todo 
  * @see 
  * @access 		public
  * @param 
  * @return 
  * @since 		3.0
  */
 public function __construct()
 {
     parent::__construct();
     // Register some task
     $this->registerTask('sortcategories', 'options');
     $this->registerTask('icecatsettings', 'options');
 }
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:19,代码来源:maintenance.raw.php

示例13: __construct

 /**
  * Constructor
  *
  * @param   array  $config  constructor parameters
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Initialise variables.
     $app = JFactory::getApplication();
     $input = $app->input;
     // Get the id
     $cid = $input->get('cid', array(), 'array');
     $cid = count($cid) ? $cid[0] : '';
     if (!empty($cid)) {
         // From the packages view
         $name = $cid;
         $path = JPATH_COMPONENT_ADMINISTRATOR . '/packages/' . $name . '.xml';
         $id = LocaliseHelper::getFileId($path);
     } else {
         // From the package view
         $data = $input->get('jform', array(), 'array');
         $id = $data['id'];
         $name = $data['name'];
     }
     // Set the id, and path in the session
     $app->setUserState('com_localise.edit.package.id', $id);
     $app->setUserState('com_localise.package.name', $name);
     // Set the id and unset the cid
     if (!empty($id) && $input->get('task') == 'add') {
         $input->set('task', 'edit');
     }
     $input->set('id', $id);
     $input->set('cid', array());
 }
开发者ID:svenbluege,项目名称:com_localise,代码行数:35,代码来源:package.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_link = 'index.php?option=com_ninjarsssyndicator&view=feeds';
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
开发者ID:ingedgarcruz,项目名称:Ninja-RSS-Syndicator,代码行数:7,代码来源:feed.php

示例15: __construct

 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JControllerLegacy
  * @since   12.2
  * @throws  Exception
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if ($this->input->get("component", 0, "int")) {
         $this->view_list = "component";
     }
 }
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:16,代码来源:table.php


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