本文整理匯總了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;
}