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


PHP JModelAdmin::populateState方法代碼示例

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


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

示例1: populateState

 protected 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

示例2: populateState

 /**
  * Stock method to auto-populate the model state.
  *
  * @return  void
  *
  * @since   2.0.0
  */
 protected function populateState()
 {
     parent::populateState();
     // Get the plugin from the request.
     $plugin = JFactory::getApplication()->input->get('plugin');
     $this->setState($this->getName() . '.plugin', $plugin);
 }
開發者ID:sabrinahung,項目名稱:test_cms,代碼行數:14,代碼來源:server.php

示例3: populateState

 protected function populateState()
 {
     $addon_id = JFactory::getApplication()->input->getInt('addon_id');
     $this->setState($this->getName() . '.addon_id', $addon_id);
     // List state information.
     parent::populateState();
 }
開發者ID:templaza,項目名稱:tz_portfolio_plus,代碼行數:7,代碼來源:addon_data.php

示例4: populateState

 protected function populateState()
 {
     $table = $this->getTable();
     $key = $table->getKeyName();
     $pk = JRequest::getInt($key);
     //dmp($_REQUEST);exit();
     return parent::populateState();
 }
開發者ID:sansandeep143,項目名稱:av,代碼行數:8,代碼來源:item.php

示例5: populateState

 /**
  * Stock method to auto-populate the model state.
  * @return  void
  * @since   12.2
  */
 protected function populateState()
 {
     parent::populateState();
     $app = JFactory::getApplication();
     /** @var $app JApplicationAdministrator * */
     $value = $app->getUserStateFromRequest("url.id", "url_id");
     $this->setState($this->getName() . '.url_id', $value);
 }
開發者ID:brenot,項目名稱:forumdesenvolvimento,代碼行數:13,代碼來源:tag.php

示例6: populateState

 public function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication('administrator');
     $state = $app->getUserStateFromRequest($this->context . '.filter.interpreter_id', 'filter_interpreter_id', '', 'string');
     $this->setState('filter.interpreter_id', $state);
     // List state information.
     parent::populateState();
 }
開發者ID:rogatnev-nikita,項目名稱:cloudinterpreter,代碼行數:8,代碼來源:pairslanguage.php

示例7: populateState

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

示例8: 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();
     $this->setState('user.id', \User::get('id'));
     $messageId = (int) \Request::getInt('message_id');
     $this->setState('message.id', $messageId);
     $replyId = (int) \Request::getInt('reply_id');
     $this->setState('reply.id', $replyId);
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:16,代碼來源:message.php

示例9: 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();
     $user = JFactory::getUser();
     $this->setState('user.id', $user->get('id'));
     $messageId = (int) JRequest::getInt('message_id');
     $this->setState('message.id', $messageId);
     $replyId = (int) JRequest::getInt('reply_id');
     $this->setState('reply.id', $replyId);
 }
開發者ID:exntu,項目名稱:joomla-cms,代碼行數:17,代碼來源:message.php

示例10: 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.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function populateState()
 {
     parent::populateState();
     $input = JFactory::getApplication()->input;
     $user = JFactory::getUser();
     $this->setState('user.id', $user->get('id'));
     $messageId = (int) $input->getInt('message_id');
     $this->setState('message.id', $messageId);
     $replyId = (int) $input->getInt('reply_id');
     $this->setState('reply.id', $replyId);
 }
開發者ID:deenison,項目名稱:joomla-cms,代碼行數:24,代碼來源:message.php

示例11: populateState

 protected function populateState()
 {
     parent::populateState();
     $params = JComponentHelper::getParams('com_tz_portfolio');
     $this->setState('params', $params);
     if ($params->get('tz_image_xsmall', 100)) {
         $sizeImage['XS'] = (int) $params->get('tz_image_xsmall', 100);
     }
     if ($params->get('tz_image_small', 200)) {
         $sizeImage['S'] = (int) $params->get('tz_image_small', 200);
     }
     if ($params->get('tz_image_medium', 400)) {
         $sizeImage['M'] = (int) $params->get('tz_image_medium', 400);
     }
     if ($params->get('tz_image_large', 600)) {
         $sizeImage['L'] = (int) $params->get('tz_image_large', 600);
     }
     if ($params->get('tz_image_xsmall', 900)) {
         $sizeImage['XL'] = (int) $params->get('tz_image_xlarge', 900);
     }
     if ($params->get('tz_image_gallery_xsmall')) {
         $size['XS'] = (int) $params->get('tz_image_gallery_xsmall');
     }
     if ($params->get('tz_image_gallery_small')) {
         $size['S'] = (int) $params->get('tz_image_gallery_small');
     }
     if ($params->get('tz_image_gallery_medium')) {
         $size['M'] = (int) $params->get('tz_image_gallery_medium');
     }
     if ($params->get('tz_image_gallery_large')) {
         $size['L'] = (int) $params->get('tz_image_gallery_large');
     }
     if ($params->get('tz_image_gallery_xsmall')) {
         $size['XL'] = (int) $params->get('tz_image_gallery_xlarge');
     }
     $this->setState('sizeImage', $sizeImage);
     $this->setState('size', $size);
     $this->setState('article.id', JRequest::getInt('id'));
 }
開發者ID:Glonum,項目名稱:tz_portfolio,代碼行數:39,代碼來源:article.php

示例12: populateState

 function populateState()
 {
     parent::populateState();
     $this->setState('com_tz_portfolio.plugin.articleId', null);
     $this->setState('com_tz_portfolio.plugin.pluginid', null);
 }
開發者ID:Glonum,項目名稱:tz_portfolio,代碼行數:6,代碼來源:plugin.php

示例13: 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($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication('administrator');
     $id = $app->input->getInt('id', 0);
     if (!empty($id)) {
         $app->setUserState('com_englishconcept.edit.grammarexercise.id', $id);
     }
     // List state information.
     parent::populateState($ordering, $direction);
 }
開發者ID:prox91,項目名稱:joomla-dev,代碼行數:18,代碼來源:grammarexercise.php

示例14: populateState

 /**
  * Auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  *
  * @return	void
  * @since	1.6
  */
 protected function populateState()
 {
     // Execute the parent method.
     parent::populateState();
     $app = JFactory::getApplication('administrator');
     // Load the User state.
     $pk = (int) JRequest::getInt('extension_id');
     $this->setState('plugin.id', $pk);
 }
開發者ID:jimyb3,項目名稱:mathematicalteachingsite,代碼行數:17,代碼來源:plugin.php

示例15: populateState

 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  */
 protected function populateState()
 {
     parent::populateState();
     // Set Nested Item
     $table = $this->getTable();
     if ($table instanceof JTableNested) {
         $nested = true;
     } else {
         $nested = false;
     }
     $this->setState('item.nested', $nested);
 }
開發者ID:ForAEdesWeb,項目名稱:AEW3,代碼行數:17,代碼來源:modeladmin.php


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