本文整理汇总了PHP中JControllerForm::getModel方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::getModel方法的具体用法?PHP JControllerForm::getModel怎么用?PHP JControllerForm::getModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerForm
的用法示例。
在下文中一共展示了JControllerForm::getModel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getModel
public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
{
if (!isset($this->model)) {
$this->model = parent::getModel($name, $prefix, array('ignore_request' => false));
}
return $this->model;
}
示例2: 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 11.1
*/
public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
{
if (empty($name)) {
$name = $this->context;
}
return parent::getModel($name, $prefix, array('ignore_request' => false));
}
示例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.
*
* @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);
}
if (empty($prefix)) {
$prefix = strstr($class, 'Controller', true) . 'Model';
}
return parent::getModel($name, $prefix, $config);
}
示例4: array
public function &getModel($name = 'System', $prefix = 'SolidresModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例5: getModel
/**
* Proxy for getModel.
* @since 1.6
*/
public function getModel($name = 'fieldsattachimage', $prefix = 'fieldsattachModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
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 object The model.
*/
public function getModel($name = null, $prefix = null, $config = array('ignore_request' => true))
{
$name = $name ? $name : ucfirst($this->view_item);
$prefix = $prefix ? $prefix : ucfirst($this->component) . 'Model';
return parent::getModel($name, $prefix, $config);
}
示例7: 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 1.6
*/
public function getModel($name = 'Meeting', $prefix = 'BigbluebuttonModel', $config = array('ignore_request' => false))
{
$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 = 'Package', $prefix = 'LocaliseModel', $config = array('ignore_request' => false))
{
return parent::getModel($name, $prefix, $config);
}
示例9: getModel
public function getModel($name = 'Categories', $prefix = 'YoutubeGalleryModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例10: 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 1.6
*/
public function getModel($name = 'Extension', $prefix = 'MvceditorModel', $config = array('ignore_request' => false))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例11: 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 = 'Profile', $prefix = 'SocialCommunityModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例12: getModel
public function getModel($name = 'Form', $prefix = 'JUDirectoryModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例13: getModel
public function getModel($name = 'Customer', $prefix = 'BookproModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
示例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 2.0
*/
public function getModel($name = 'Settings', $prefix = 'ShconfigModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
示例15: 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 1.6
*/
public function getModel($name = 'Felhasznalok', $prefix = 'TagnyilvantartasModel', $config = array('ignore_request' => false))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}