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


PHP JModelList::_populateState方法代码示例

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


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

示例1: _populateState

 /**
  * Method to auto-populate the model state.
  *
  * @return	void
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // List state information.
     parent::_populateState('a.id', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:12,代码来源:menus.php

示例2: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string');
     $this->setState('filter.state', $state);
     // List state information.
     parent::_populateState('a.date_time', 'desc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:15,代码来源:messages.php

示例3: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_users');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.lft', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:16,代码来源:groups.php

示例4: _populateState

 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * @return	void
  * @since	1.6
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', 0);
     $this->setState('filter.client_id', $clientId);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_languages');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.title', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:23,代码来源:installed.php

示例5: _populateState

 /**
  * Method to auto-populate the model state.
  *
  * @since	1.6
  */
 protected function _populateState()
 {
     $app = JFactory::getApplication();
     $search = $app->getUserStateFromRequest($this->_context . '.search', 'filter_search');
     $this->setState('filter.search', $search);
     $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int');
     $this->setState('filter.access', $access);
     $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', '');
     $this->setState('filter.published', $published);
     $categoryId = $app->getUserStateFromRequest($this->_context . '.category_id', 'filter_category_id');
     $this->setState('filter.category_id', $categoryId);
     // List state information.
     parent::_populateState('a.name', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:19,代码来源:contacts.php

示例6:

 /**
  * Method to auto-populate the model state.
  *
  * This method should only be called once per instantiation and is designed
  * to be called on the first call to the getState() method unless the model
  * configuration flag to ignore the request is set.
  *
  * @access	protected
  */
 function _populateState()
 {
     $app =& JFactory::getApplication('administrator');
     $context = 'com_comments.threads';
     // Load the filter state.
     $search = $app->getUserStateFromRequest($context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $context = $app->getUserStateFromRequest($context . '.filter.context', 'filter_context', '', 'word');
     $this->setState('filter.context', $context);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_comments');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.id', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:24,代码来源:threads.php

示例7: _populateState

 /**
  * Method to auto-populate the model state.
  *
  * @since	1.6
  */
 protected function _populateState()
 {
     $app = JFactory::getApplication();
     $extension = $app->getUserStateFromRequest($this->_context . '.filter.extension', 'extension');
     $this->setState('filter.extension', $extension);
     if (!empty($extension)) {
         $this->_context .= ".{$extension}";
     }
     $search = $app->getUserStateFromRequest($this->_context . '.search', 'filter_search');
     $this->setState('filter.search', $search);
     $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int');
     $this->setState('filter.access', $access);
     $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', '');
     $this->setState('filter.published', $published);
     // List state information.
     parent::_populateState('a.lft', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:22,代码来源:categories.php

示例8: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string');
     $this->setState('filter.state', $state);
     $categoryId = $app->getUserStateFromRequest($this->_context . '.filter.category_id', 'filter_category_id', '');
     $this->setState('filter.category_id', $categoryId);
     $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', '');
     $this->setState('filter.client_id', $clientId);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_banners');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('name', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:22,代码来源:banners.php

示例9: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string');
     $this->setState('filter.state', $state);
     $context = $app->getUserStateFromRequest($this->_context . 'filter.branch', 'filter_context', '', 'word');
     $this->setState('filter.context', $context);
     $threadId = $app->getUserStateFromRequest($this->_context . 'filter.thread_id', 'filter_thread', null, 'int');
     $this->setState('filter.thread_id', $threadId);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_comments');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.name', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:22,代码来源:comments.php

示例10: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int');
     $this->setState('filter.access', $accessId);
     $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string');
     $this->setState('filter.state', $state);
     $folder = $app->getUserStateFromRequest($this->_context . '.filter.folder', 'filter_folder', null, 'cmd');
     $this->setState('filter.folder', $folder);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_plugins');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.folder', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:22,代码来源:plugins.php

示例11: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int');
     $this->setState('filter.access', $accessId);
     $published = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_published', '', 'string');
     $this->setState('filter.state', $published);
     $categoryId = $app->getUserStateFromRequest($this->_context . '.filter.category_id', 'filter_category_id', '');
     $this->setState('filter.category_id', $categoryId);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_weblinks');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.title', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:22,代码来源:weblinks.php

示例12: _populateState

 /**
  * Method to auto-populate the model state.
  *
  * @return	void
  */
 protected function _populateState()
 {
     $app = JFactory::getApplication('administrator');
     $search = $app->getUserStateFromRequest($this->_context . '.search', 'search');
     $this->setState('filter.search', $search);
     $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', '');
     $this->setState('filter.published', $published);
     $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int');
     $this->setState('filter.access', $access);
     $parentId = $app->getUserStateFromRequest($this->_context . '.filter.parent_id', 'filter_parent_id', 0, 'int');
     $this->setState('filter.parent_id', $parentId);
     $level = $app->getUserStateFromRequest($this->_context . '.filter.level', 'filter_level', 0, 'int');
     $this->setState('filter.level', $level);
     $menuType = $app->getUserStateFromRequest($this->_context . '.filter.menutype', 'menutype', 'mainmenu');
     $this->setState('filter.menutype', $menuType);
     // Component parameters.
     $params = JComponentHelper::getParams('com_menus');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.lft', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:26,代码来源:items.php

示例13: _populateState

 /**
  * Method to auto-populate the model state.
  */
 protected function _populateState()
 {
     // Initialise variables.
     $app = JFactory::getApplication('administrator');
     // Load the filter state.
     $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int');
     $this->setState('filter.access', $accessId);
     $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string');
     $this->setState('filter.state', $state);
     $position = $app->getUserStateFromRequest($this->_context . '.filter.position', 'filter_position', '', 'string');
     $this->setState('filter.position', $position);
     $module = $app->getUserStateFromRequest($this->_context . '.filter.module', 'filter_module', '', 'string');
     $this->setState('filter.module', $module);
     $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', 0, 'int');
     $this->setState('filter.client_id', $clientId);
     // Load the parameters.
     $params = JComponentHelper::getParams('com_modules');
     $this->setState('params', $params);
     // List state information.
     parent::_populateState('a.position', 'asc');
 }
开发者ID:joebushi,项目名称:joomla,代码行数:26,代码来源:modules.php


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