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


PHP InstallerModel::populateState方法代码示例

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


在下文中一共展示了InstallerModel::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($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication();
     $this->setState('message', $app->getUserState('com_installer.message'));
     $this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
     $app->setUserState('com_installer.message', '');
     $app->setUserState('com_installer.extension_message', '');
     parent::populateState('name', 'asc');
 }
开发者ID:Joomla-on-NoSQL,项目名称:LaMojo,代码行数:16,代码来源:discover.php

示例2: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @param   string  $ordering   An optional ordering field.
  * @param   string  $direction  An optional direction (asc|desc).
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function populateState($ordering = 'name', $direction = 'asc')
 {
     // Load the filter state.
     $this->setState('filter.search', $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search', '', 'string'));
     $this->setState('filter.client_id', $this->getUserStateFromRequest($this->context . '.filter.client_id', 'filter_client_id', null, 'int'));
     $this->setState('filter.enabled', $this->getUserStateFromRequest($this->context . '.filter.enabled', 'filter_enabled', '', 'string'));
     $this->setState('filter.type', $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type', '', 'string'));
     $this->setState('filter.folder', $this->getUserStateFromRequest($this->context . '.filter.folder', 'filter_folder', '', 'string'));
     parent::populateState($ordering, $direction);
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:22,代码来源:updatesites.php

示例3: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @param   string  $ordering   An optional ordering field.
  * @param   string  $direction  An optional direction (asc|desc).
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication();
     $this->setState('message', $app->getUserState('com_installer.message'));
     $this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
     $app->setUserState('com_installer.message', '');
     $app->setUserState('com_installer.extension_message', '');
     // Prepare the utf8mb4 conversion check table
     $this->prepareUtf8mb4StatusTable();
     parent::populateState('name', 'asc');
 }
开发者ID:adjaika,项目名称:J3Base,代码行数:23,代码来源:database.php

示例4: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @param   string  $ordering   An optional ordering field.
  * @param   string  $direction  An optional direction (asc|desc).
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function populateState($ordering = 'name', $direction = 'asc')
 {
     $app = JFactory::getApplication();
     // Load the filter state.
     $this->setState('filter.search', $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search', '', 'string'));
     $this->setState('filter.client_id', $this->getUserStateFromRequest($this->context . '.filter.client_id', 'filter_client_id', null, 'int'));
     $this->setState('filter.type', $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type', '', 'string'));
     $this->setState('filter.folder', $this->getUserStateFromRequest($this->context . '.filter.folder', 'filter_folder', '', 'string'));
     $this->setState('message', $app->getUserState('com_installer.message'));
     $this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
     $app->setUserState('com_installer.message', '');
     $app->setUserState('com_installer.extension_message', '');
     parent::populateState($ordering, $direction);
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:26,代码来源:discover.php

示例5: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @param   string  $ordering   An optional ordering field.
  * @param   string  $direction  An optional direction (asc|desc).
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function populateState($ordering = null, $direction = null)
 {
     // Load the filter state.
     $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $clientId = $this->getUserStateFromRequest($this->context . '.filter.client_id', 'filter_client_id', '');
     $this->setState('filter.client_id', $clientId);
     $status = $this->getUserStateFromRequest($this->context . '.filter.enabled', 'filter_enabled', '');
     $this->setState('filter.enabled', $status);
     $categoryId = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type', '');
     $this->setState('filter.type', $categoryId);
     $group = $this->getUserStateFromRequest($this->context . '.filter.group', 'filter_group', '');
     $this->setState('filter.group', $group);
     parent::populateState('name', 'asc');
 }
开发者ID:grlf,项目名称:eyedock,代码行数:27,代码来源:updatesites.php

示例6: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @param   string  $ordering   An optional ordering field.
  * @param   string  $direction  An optional direction (asc|desc).
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication();
     // Load the filter state.
     $search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $clientId = $this->getUserStateFromRequest($this->context . '.filter.client_id', 'filter_client_id', '');
     $this->setState('filter.client_id', $clientId);
     $categoryId = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type', '');
     $this->setState('filter.type', $categoryId);
     $group = $this->getUserStateFromRequest($this->context . '.filter.group', 'filter_group', '');
     $this->setState('filter.group', $group);
     $this->setState('message', $app->getUserState('com_installer.message'));
     $this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
     $app->setUserState('com_installer.message', '');
     $app->setUserState('com_installer.extension_message', '');
     parent::populateState('name', 'asc');
 }
开发者ID:01J,项目名称:skazkipronebo,代码行数:30,代码来源:discover.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($ordering = null, $direction = null)
 {
     // Initialise variables.
     $app = JFactory::getApplication();
     $filters = JRequest::getVar('filters');
     if (empty($filters)) {
         $data = $app->getUserState($this->context . '.data');
         $filters = $data['filters'];
     } else {
         $app->setUserState($this->context . '.data', array('filters' => $filters));
     }
     $this->setState('message', $app->getUserState('com_installer.message'));
     $this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
     $app->setUserState('com_installer.message', '');
     $app->setUserState('com_installer.extension_message', '');
     $this->setState('filter.search', isset($filters['search']) ? $filters['search'] : '');
     $this->setState('filter.status', isset($filters['status']) ? $filters['status'] : '');
     $this->setState('filter.type', isset($filters['type']) ? $filters['type'] : '');
     $this->setState('filter.group', isset($filters['group']) ? $filters['group'] : '');
     $this->setState('filter.client_id', isset($filters['client_id']) ? $filters['client_id'] : '');
     parent::populateState('name', 'asc');
 }
开发者ID:acculitx,项目名称:fleetmatrixsite,代码行数:29,代码来源:manage.php


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