当前位置: 首页>>代码示例>>PHP>>正文


PHP JController::getModel方法代码示例

本文整理汇总了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);
 }
开发者ID:spiridonov-oa,项目名称:SheinCandles,代码行数:19,代码来源:export.raw.php

示例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();
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:15,代码来源:update.php

示例3: array

 /**
  * Proxy for getModel
  */
 function &getModel($name = 'Contacts', $prefix = 'ContactModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:8,代码来源:contacts.php

示例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;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:14,代码来源:source.php

示例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;
 }
开发者ID:gagnonjeanfrancois,项目名称:Projectfork,代码行数:14,代码来源:users.php

示例6: array

 /**
  * Proxy for getModel.
  */
 public function &getModel($name = 'Plugin', $prefix = 'PluginsModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:8,代码来源:plugins.php

示例7: getModel

 public function getModel($name = 'comments', $prefix = 'sliCommentsModel', $config = array())
 {
     return parent::getModel($name, $prefix, $config);
 }
开发者ID:rivetweb,项目名称:old-joomla-dd-countrymap,代码行数:4,代码来源:comments.raw.php

示例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);
 }
开发者ID:joebushi,项目名称:joomla,代码行数:16,代码来源:controllerform.php

示例9: getModel

 /**
  * Proxy for getModel
  */
 function getModel($name = 'Sitemap', $prefix = 'XmapModel')
 {
     return parent::getModel($name, $prefix, array('ignore_request' => true));
 }
开发者ID:vnishukov,项目名称:fdo,代码行数:7,代码来源:sitemaps.php

示例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);
     }
 }
开发者ID:Rayman,项目名称:Beursplein-5,代码行数:16,代码来源:controller.php

示例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;
 }
开发者ID:alesconti,项目名称:FF_2015,代码行数:14,代码来源:products.php

示例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;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:14,代码来源:article.php

示例13: getModel

 public function getModel($name = 'Icon', $prefix = 'SmartIconsModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
开发者ID:alvarovladimir,项目名称:messermeister_ab_rackservers,代码行数:5,代码来源:icons.raw.php

示例14: array

 /**
  * Proxy for getModel
  */
 function &getModel()
 {
     $model = parent::getModel('Contact', '', array('ignore_request' => true));
     return $model;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:8,代码来源:contact.php

示例15: array

 function &getModel($name = '', $prefix = 'hotelguideModel', $config = array())
 {
     $model =& parent::getModel($name, $prefix, $config);
     return $model;
 }
开发者ID:raulrotundo,项目名称:jpmoser_guide,代码行数:5,代码来源:controller.php


注:本文中的JController::getModel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。