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


PHP JModelLegacy::populateState方法代碼示例

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


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

示例1: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * 
  */
 protected function populateState()
 {
     // Load the parameters - this will only load those from config.xml
     $params = JComponentHelper::getParams('com_componentarchitect');
     $this->setState('params', $params);
     parent::populateState();
 }
開發者ID:esorone,項目名稱:efcpw,代碼行數:15,代碼來源:dashboard.php

示例2: populateState

 function populateState()
 {
     parent::populateState();
     $this->setState('template.id', JRequest::getInt('id'));
     $this->setState('content.id', null);
     $this->setState('category.id', null);
 }
開發者ID:Glonum,項目名稱:tz_portfolio,代碼行數:7,代碼來源:template.php

示例3: populateState

 function populateState()
 {
     parent::populateState();
     $this->setState('template.id', JFactory::getApplication()->input->getInt('id'));
     $this->setState('content.id', null);
     $this->setState('category.id', null);
 }
開發者ID:templaza,項目名稱:tz_portfolio_plus,代碼行數:7,代碼來源:template.php

示例4: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function populateState()
 {
     $app = JFactory::getApplication('administrator');
     $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();
 }
開發者ID:adjaika,項目名稱:J3Base,代碼行數:18,代碼來源:install.php

示例5: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function populateState()
 {
     $app = JFactory::getApplication('administrator');
     $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', '');
     // Recall the 'Install from Directory' path.
     $path = $app->getUserStateFromRequest($this->_context . '.install_directory', 'install_directory', $app->getCfg('tmp_path'));
     $this->setState('install.directory', $path);
     parent::populateState();
 }
開發者ID:interfaceslivres,項目名稱:ccmd-ufpb,代碼行數:21,代碼來源:install.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($this->getName() . '.project_id', $value);
     // Load the parameters.
     $value = $app->getParams($this->option);
     $this->setState('params', $value);
 }
開發者ID:pashakiz,項目名稱:crowdf,代碼行數:19,代碼來源:rewards.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()
 {
     // Initialise variables.
     $this->setState('message', User::getState('com_installer.message'));
     $this->setState('extension_message', User::getState('com_installer.extension_message'));
     User::setState('com_installer.message', '');
     User::setState('com_installer.extension_message', '');
     // Recall the 'Install from Directory' path.
     $path = Request::getState($this->_context . '.install_directory', 'install_directory', Config::get('tmp_path'));
     $this->setState('install.directory', $path);
     parent::populateState();
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:19,代碼來源:install.php

示例8: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return  void
  *
  */
 protected function populateState()
 {
     $app = JFactory::getApplication('administrator');
     $this->setState('message', $app->getUserState('com_demo.message'));
     $app->setUserState('com_demo.message', '');
     // Recall the 'Import from Directory' path.
     $path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
     $this->setState('import.directory', $path);
     // set uploading values
     $this->use_streams = false;
     $this->allow_unsafe = false;
     $this->safeFileOptions = array();
     parent::populateState();
 }
開發者ID:namibia,項目名稱:demo-joomla-3-component,代碼行數:22,代碼來源:import.php

示例9: populateState

 protected function populateState($ordering = null, $direction = null)
 {
     parent::populateState('lastname', 'ASC');
 }
開發者ID:gorgozilla,項目名稱:Estivole,代碼行數:4,代碼來源:members.php

示例10: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @since	1.6
  */
 protected function populateState()
 {
     // 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', '');
     // Recall the 'Install from Directory' path.
     $path = $app->getUserStateFromRequest($this->_context . '.install_directory', 'install_directory', $app->getCfg('tmp_path'));
     $this->setState('install.directory', $path);
     $this->setState('filter.type', isset($filters['type']) ? $filters['type'] : '');
     if (!isset($filters['update_site_id'])) {
         JRequest::setVar('update_site_id', '1');
     }
     $this->setState('filter.update_site_id', isset($filters['update_site_id']) ? $filters['update_site_id'] : '1');
     $this->setState('filter.folder', isset($filters['folder']) ? $filters['folder'] : '');
     $this->setState('filter.search', isset($filters['search']) ? $filters['search'] : '');
     parent::populateState('a.name', 'asc');
 }
開發者ID:networksoft,項目名稱:seekerplus2.com,代碼行數:34,代碼來源:install.php


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