當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。