當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JModelForm::populateState方法代碼示例

本文整理匯總了PHP中JModelForm::populateState方法的典型用法代碼示例。如果您正苦於以下問題:PHP JModelForm::populateState方法的具體用法?PHP JModelForm::populateState怎麽用?PHP JModelForm::populateState使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JModelForm的用法示例。


在下文中一共展示了JModelForm::populateState方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Load the parameters.
     $value = $app->getParams($this->option);
     $this->setState('params', $value);
 }
開發者ID:xop32,項目名稱:Proof-of-Identity,代碼行數:16,代碼來源:proof.php

示例2: populateState

 /**
  * Method to auto-populate the model state.
  * Note. Calling getState in this method will result in recursion.
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication("Site");
     /** @var $app JApplicationSite * */
     // Get the pk of the record from the request.
     $value = $app->input->getInt("id");
     $this->setState($this->getName() . '.id', $value);
 }
開發者ID:phpsource,項目名稱:CrowdFunding,代碼行數:14,代碼來源:friendmail.php

示例3: populateState

 protected function populateState()
 {
     $jinput = JFactory::getApplication()->input;
     $client = $jinput->get('client', 'site', 'cmd');
     $tag = $jinput->get('tag', '', 'cmd');
     $id = $jinput->get('id', '0', 'int');
     $this->setState('language.client', $client);
     $this->setState('language.tag', $tag);
     $this->setState('language.id', $id);
     parent::populateState();
 }
開發者ID:svenbluege,項目名稱:com_localise,代碼行數:11,代碼來源:language.php

示例4: populateState

 /**
  * Method to auto-populate the model state.
  * Note. Calling getState in this method will result in recursion.
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Get the pk of the record from the request.
     $value = $app->input->getInt('id');
     $this->setState($this->getName() . '.id', $value);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
 }
開發者ID:ITPrism,項目名稱:CrowdfundingDistribution,代碼行數:17,代碼來源:friendmail.php

示例5: populateState

 protected function populateState()
 {
     $app = JFactory::getApplication();
     $id = JRequest::getInt($this->pk_name);
     $this->setState(strtolower($this->model_key) . '.' . $this->pk_name, $id);
     $cmd = JRequest::getCmd('cmd', '');
     $this->setState(strtolower($this->model_key) . '.cmd', $cmd);
     // Load the parameters.
     $params = $app->getParams();
     $this->setState('params', $params);
     parent::populateState();
 }
開發者ID:acculitx,項目名稱:fleetmatrixsite,代碼行數:12,代碼來源:baseedit.php

示例6: populateState

 /**
  * Method to auto-populate the model state.
  * Note. Calling getState in this method will result in recursion.
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication("Site");
     /** @var $app JApplicationSite * */
     // Get the pk of the record from the request.
     $value = $app->input->getInt("id");
     $this->setState('item_id', $value);
     $value = $app->input->getInt("comment_id");
     $this->setState('comment_id', $value);
     // Load the parameters.
     $value = $app->getParams($this->option);
     $this->setState('params', $value);
 }
開發者ID:pippogsm,項目名稱:UserIdeas,代碼行數:19,代碼來源:comment.php

示例7: populateState

 /**
  * Method to auto-populate the model state.
  * Note. Calling getState in this method will result in recursion.
  * @since    1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Get the pk of the record from the request.
     $value = $app->input->getInt("id", 0);
     $this->setState($this->getName() . '.id', $value);
     // Get category ID
     $value = $app->getUserState($this->option . ".items.catid");
     $this->setState('category_id', $value);
     // Load the parameters.
     $value = $app->getParams($this->option);
     $this->setState('params', $value);
 }
開發者ID:johngrange,項目名稱:wookeyholeweb,代碼行數:20,代碼來源:form.php


注:本文中的JModelForm::populateState方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。