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


PHP JControllerLegacy::getModel方法代碼示例

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


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

示例1: getModel

 /**
  * Overwrite the Joomla default getModel to make sure the ignore_request is not set to true
  *
  * @copyright
  * @author 		RolandD
  * @todo
  * @see
  * @access 		public
  * @param
  * @return
  * @since 		1.0
  */
 public function getModel($name = '', $prefix = '', $config = array())
 {
     if (empty($name)) {
         $name = $this->context;
     }
     return parent::getModel($name, $prefix, $config);
 }
開發者ID:alesconti,項目名稱:FF_2015,代碼行數:19,代碼來源:export.raw.php

示例2: saveSettings

 /**
  * 
  * @param type $params
  */
 public static function saveSettings($params)
 {
     $oPlugin = JchPlatformPlugin::getPlugin();
     $oPlugin->params = $params->toArray();
     $oData = new JRegistry($oPlugin);
     $aData = $oData->toArray();
     $oController = new JControllerLegacy();
     $oController->addModelPath(JPATH_ADMINISTRATOR . '/components/com_plugins/models', 'PluginsModel');
     $oPluginModel = $oController->getModel('Plugin', 'PluginsModel');
     if ($oPluginModel->save($aData) === FALSE) {
         JchOptimizeLogger::log(JText::sprintf('JLIB_APPLICATION_ERROR_SAVE_FAILED', $oPluginModel->getError()), $params);
     }
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:17,代碼來源:plugin.php

示例3: getModel

 /**
  * Method to get a model object, loading it if required.
  *
  * @param   string  $name    The model name. Optional.
  * @param   string  $prefix  The class prefix. Optional.
  * @param   array   $config  Configuration array for model. Optional (note, the empty array is atypical compared to other models).
  *
  * @return  JModelLegacy  The model.
  *
  * @since   3.2
  */
 public function getModel($name = 'Vistools', $prefix = 'VisformsModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:shamusdougan,項目名稱:GDMCWebsite,代碼行數:16,代碼來源:vistools.php

示例4: getModel

 /**
  * Method to get a model object, loading it if required.
  *
  * @param   string  $name    The model name. Optional.
  * @param   string  $prefix  The class prefix. Optional.
  * @param   array   $config  Configuration array for model. Optional.
  *
  * @return  object  The model.
  *
  * @since   1.6
  */
 public function getModel($name = 'Menu', $prefix = 'MenusModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:brenot,項目名稱:forumdesenvolvimento,代碼行數:16,代碼來源:menus.php

示例5: getModel

 /**
  * Proxy for getModel.
  * @since   1.6
  */
 public function getModel($name = 'Dashboard', $prefix = 'ItpMetaModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:brenot,項目名稱:forumdesenvolvimento,代碼行數:9,代碼來源:dashboard.php

示例6: getModel

 /**
  * Method to get a model object, loading it if required.
  *
  * @param    string $name   The model name. Optional.
  * @param    string $prefix The class prefix. Optional.
  * @param    array  $config Configuration array for model. Optional.
  *
  * @return   CrowdfundingModelNotifier|bool    The model.
  * @since    1.5
  */
 public function getModel($name = 'Notifier', $prefix = 'CrowdfundingModel', $config = array('ignore_request' => true))
 {
     return parent::getModel($name, $prefix, $config);
 }
開發者ID:ITPrism,項目名稱:CrowdfundingDistribution,代碼行數:14,代碼來源:notifier.raw.php

示例7: getModel

 public function getModel($name = 'Export', $prefix = 'SocialCommunityModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:ITPrism,項目名稱:SocialCommunityDistribution,代碼行數:5,代碼來源:export.raw.php

示例8: getModel

 /**
  * Method to get a model object, loading it if required.
  *
  * @param   string  $name    The model name. Optional.
  * @param   string  $prefix  The class prefix. Optional.
  * @param   array   $config  Configuration array for model. Optional.
  *
  * @return  object  The model.
  * 
  */
 public function getModel($name = 'Competities', $prefix = 'Knvbapi2Model', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:esorone,項目名稱:efcpw,代碼行數:15,代碼來源:competities.php

示例9: getModel

 /**
  * Proxy for getModel.
  * @since	1.6
  */
 public function getModel($name = 'Module', $prefix = 'ModulesmanagerckModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:ForAEdesWeb,項目名稱:AEW3,代碼行數:9,代碼來源:modules.raw.php

示例10: getModel

 /**
  * Proxy for getModel.
  *
  * @see     JController::getModel
  *
  * @since   2.1.0
  */
 public function getModel($name = 'User', $prefix = 'ExternalloginModel', $config = null)
 {
     return parent::getModel($name, $prefix, isset($config) ? $config : array('ignore_request' => true));
 }
開發者ID:sabrinahung,項目名稱:test_cms,代碼行數:11,代碼來源:users.php

示例11: array

 /**
  * Method to get a model object, loading it if required.
  *
  * @param	string	The model name. Optional.
  * @param	string	The class prefix. Optional.
  * @param	array	Configuration array for model. Optional (note, the empty array is atypical compared to other models).
  *
  * @return	object	The model.
  */
 public function &getModel($name = 'Assign', $prefix = 'FaviconModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:ForAEdesWeb,項目名稱:AEW3,代碼行數:14,代碼來源:assign.php

示例12: array

 /**
  * Method to get a model object, loading it if required.
  *
  * @param	string	$name The model name. Optional.
  * @param	string	$prefix The class prefix. Optional.
  * @param	array	$config Configuration array for model. Optional.
  *
  * @return	object	The model.
  * @since	1.5
  */
 public function &getModel($name = 'Coupon', $prefix = 'SolidresModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:prox91,項目名稱:joomla-dev,代碼行數:15,代碼來源:coupon.json.php

示例13: getModel

 /**
  * Proxy for getModel.
  *
  * @param   string  $name    The name of the model.
  * @param   string  $prefix  The prefix for the model class name.
  * @param   array   $config  Configuration array for model. Optional.
  *
  * @return  JModel
  *
  * @since   3.5.0
  */
 public function getModel($name = 'Registrations', $prefix = 'iCagendaModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:madcsaba,項目名稱:li-de,代碼行數:16,代碼來源:registrations.raw.php

示例14: getModel

 /**
  * Proxy for getModel.
  * @since       2.5
  */
 public function getModel($name = 'Lessons', $prefix = 'EnglishConceptModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:prox91,項目名稱:joomla-dev,代碼行數:9,代碼來源:lessons.php

示例15: getModel

 /**
  * Method to get a model object, loading it if required.
  *
  * @param    string $name   The model name. Optional.
  * @param    string $prefix The class prefix. Optional.
  * @param    array  $config Configuration array for model. Optional.
  *
  * @return    object    The model.
  * @since    1.5
  */
 public function getModel($name = 'Notifications', $prefix = 'GamificationModel', $config = array('ignore_request' => false))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:pashakiz,項目名稱:crowdf,代碼行數:15,代碼來源:notifications.raw.php


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