本文整理汇总了PHP中JControllerAdmin::getModel方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerAdmin::getModel方法的具体用法?PHP JControllerAdmin::getModel怎么用?PHP JControllerAdmin::getModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerAdmin
的用法示例。
在下文中一共展示了JControllerAdmin::getModel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getModel
/**
* Proxy for getModel.
* @since 2.5
*/
public function getModel($name = 'TSJs', $prefix = 'TSJModel', $config = array('ignore_request' => true))
{
//JFactory::getApplication()->enqueueMessage('Debug: TSJControllerTSJs::getModel');
$model = parent::getModel($name, $prefix, $config);
//JFactory::getApplication()->enqueueMessage('Debug: TSJControllerTSJs::getModel model='.$model);
return $model;
}
示例2: getModel
/**
* Proxy for getModel.
*/
public function getModel($name = 'Cssmanager', $prefix = 'JEMModel', $config = array())
{
$model = parent::getModel($name, $prefix, array(
'ignore_request' => true
));
return $model;
}
示例3: getModel
public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
{
$option = JRequest::getVar('option');
$clearName = substr($option, 4);
$prefix = ucfirst($clearName) . 'Model';
$name = str_replace('s', '', str_replace(ucfirst($clearName) . 'Controller', '', get_class()));
return parent::getModel($name, $prefix, $config);
}
示例4: getModel
public function getModel($name = 'Profiles', $prefix = 'GAnalyticsModel')
{
if (JRequest::getVar('task', '') == 'delete' || JRequest::getVar('task', '') == 'profiles.delete') {
$name = 'Profile';
}
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例5: getModel
/**
* Proxy for getModel.
* @since 1.6
*/
public function getModel($name = 'Registration', $prefix = 'OSBITModel', $config = array())
{
if (!isset($config)) {
$config = array();
}
$config['ignore_request'] = false;
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例6: getModel
/**
* Proxy for getModel.
*
* @param string $name Model name
* @param string $prefix Prefix
* @param array $config configuration array
*
* @return the model
*/
public function getModel($name = null, $prefix = 'BabioonAdModel', $config = array('ignore_request' => true))
{
if (is_null($name)) {
$name = BabioonAdHelper::toSingular($this->view_list);
}
// Note: Name in singular
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例7: 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 12.2
*/
public function getModel($name = "", $prefix = "JDeveloperModel", $config = array())
{
if (empty($name)) {
$name = $this->model_item;
}
$config['ignore_request'] = true;
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例8: getModel
/**
* Proxy for getModel.
*
* @param string $name The name of the model.
* @param string $prefix The prefix for the class name.
* @param array $config Configuration array for model. Optional.
*
* @return object
*/
public function getModel($name = '', $prefix = 'PFdatagenModel', $config = array('ignore_request' => true))
{
// Override model name
$name = $this->model;
if (empty($name)) {
$model = false;
} else {
$model = parent::getModel($name, $prefix, $config);
}
return $model;
}
示例9: getModel
public function getModel($name = null, $prefix = null)
{
if ($prefix === null) {
$prefix = "JoomlahaxeModel";
}
if ($name === null) {
$name = "Joomlahaxes";
}
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
开发者ID:ConfidantCommunications,项目名称:JoomlaHaxe,代码行数:11,代码来源:JoomlahaxeControllerJoomlahaxes.class.php
示例10: 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 = '', $prefix = '', $config = array('ignore_request' => true))
{
$class = get_class($this);
if (empty($name)) {
$name = strstr($class, 'Controller');
$name = str_replace('Controller', '', $name);
$name = RInflector::singularize($name);
}
if (empty($prefix)) {
$prefix = strstr($class, 'Controller', true) . 'Model';
}
return parent::getModel($name, $prefix, $config);
}
示例11: getModel
public function getModel($name = 'Tag', $prefix = 'JUDownloadModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例12: getModel
/**
* Proxy for getModel.
* @since 1.6
*/
public function getModel($name = 'item', $prefix = 'JvpricetableModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例13: getModel
/**
* Proxy for getModel.
*
* @param string $name The name of the model.
* @param string $prefix The prefix for the PHP class name.
*
* @return JModel
* @since 3.1
*/
public function getModel($name = 'Repository', $prefix = 'MarketplaceModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例14: 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 = 'Message', $prefix = 'MessagesModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例15: getModel
/**
* Proxy for getModel
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
*
* @return object The model.
* @since 1.6
*/
function getModel($name = 'Category', $prefix = 'CategoriesModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}