本文整理汇总了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);
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例7: getModel
public function getModel($name = 'Export', $prefix = 'SocialCommunityModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例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;
}
示例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;
}
示例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));
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}