本文整理汇总了PHP中JController::getModel方法的典型用法代码示例。如果您正苦于以下问题:PHP JController::getModel方法的具体用法?PHP JController::getModel怎么用?PHP JController::getModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JController
的用法示例。
在下文中一共展示了JController::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: unset
function _installOne($folder)
{
if (empty($folder)) {
return false;
}
unset($GLOBALS['_JREQUEST']['installtype']);
unset($GLOBALS['_JREQUEST']['install_directory']);
JRequest::setVar('installtype', 'folder');
JRequest::setVar('install_directory', $folder);
$_REQUEST['installtype'] = 'folder';
$_REQUEST['install_directory'] = $folder;
$controller = new JController(array('base_path' => ACYMAILING_ROOT . 'administrator' . DS . 'components' . DS . 'com_installer', 'name' => 'Installer', 'default_task' => 'installform'));
$model = $controller->getModel('Install');
return $model->install();
}
示例3: array
/**
* Proxy for getModel
*/
function &getModel($name = 'Contacts', $prefix = 'ContactModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例4: 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 = 'Source', $prefix = 'TemplatesModel', $config = array())
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例5: 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.
*/
public function &getModel($name = 'Users', $prefix = 'PFusersModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例6: array
/**
* Proxy for getModel.
*/
public function &getModel($name = 'Plugin', $prefix = 'PluginsModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例7: getModel
public function getModel($name = 'comments', $prefix = 'sliCommentsModel', $config = array())
{
return parent::getModel($name, $prefix, $config);
}
示例8: getModel
/**
* 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.
*
* @return object The model.
*/
public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
{
if (empty($name)) {
$name = $this->_context;
}
return parent::getModel($name, $prefix, $config);
}
示例9: getModel
/**
* Proxy for getModel
*/
function getModel($name = 'Sitemap', $prefix = 'XmapModel')
{
return parent::getModel($name, $prefix, array('ignore_request' => true));
}
示例10: register
function register()
{
$userModel = JController::getModel("Users");
$result = $userModel->registerUser();
if ($result) {
$msg = "Het is gelukt, je kunt nu meespelen met beursplein 5";
} else {
$msg = "Er trad een error op. Misschien ben je nog niet ingelogd.";
}
$link = "index.php?option=com_beursplein&view=home";
if (!$result) {
$this->setRedirect($link, $msg, 'error');
} else {
$this->setRedirect($link, $msg);
}
}
示例11: 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.0
*/
public function getModel($name = 'Products', $prefix = 'customfiltersModel', $config = array('ignore_request' => true))
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例12: 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.
* @return object The model.
* @since 1.5
*/
public function &getModel($name = 'form', $prefix = '', $config = array())
{
$model = parent::getModel($name, $prefix, $config);
return $model;
}
示例13: getModel
public function getModel($name = 'Icon', $prefix = 'SmartIconsModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
示例14: array
/**
* Proxy for getModel
*/
function &getModel()
{
$model = parent::getModel('Contact', '', array('ignore_request' => true));
return $model;
}
示例15: array
function &getModel($name = '', $prefix = 'hotelguideModel', $config = array())
{
$model =& parent::getModel($name, $prefix, $config);
return $model;
}