當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。