当前位置: 首页>>代码示例>>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;未经允许,请勿转载。