当前位置: 首页>>代码示例>>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;未经允许,请勿转载。