當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JControllerForm::getModel方法代碼示例

本文整理匯總了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;
 }
開發者ID:SheffieldWalkingGroup,項目名稱:swgwebsite,代碼行數:7,代碼來源:schedulewalk.php

示例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));
 }
開發者ID:rsam,項目名稱:com_tsj,代碼行數:18,代碼來源:electros.php

示例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);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:21,代碼來源:form.php

示例4: array

 public function &getModel($name = 'System', $prefix = 'SolidresModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:prox91,項目名稱:joomla-dev,代碼行數:5,代碼來源:system.php

示例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;
 }
開發者ID:adjaika,項目名稱:J3Base,代碼行數:9,代碼來源:fieldsattachimage.php

示例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);
 }
開發者ID:beingsane,項目名稱:quickcontent,代碼行數:15,代碼來源:controllerform.php

示例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;
 }
開發者ID:bellodox,項目名稱:BigBlueButton_for_Joomla,代碼行數:14,代碼來源:meeting.php

示例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);
 }
開發者ID:svenbluege,項目名稱:com_localise,代碼行數:13,代碼來源:package.php

示例9: getModel

 public function getModel($name = 'Categories', $prefix = 'YoutubeGalleryModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:brenot,項目名稱:forumdesenvolvimento,代碼行數:5,代碼來源:categories.php

示例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;
	}	
開發者ID:utopszkij,項目名稱:lmp,代碼行數:15,代碼來源:extension.php

示例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;
 }
開發者ID:pashakiz,項目名稱:crowdf,代碼行數:15,代碼來源:profile.php

示例12: getModel

 public function getModel($name = 'Form', $prefix = 'JUDirectoryModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:ranrolls,項目名稱:ras-full-portal,代碼行數:5,代碼來源:form.php

示例13: getModel

 public function getModel($name = 'Customer', $prefix = 'BookproModel', $config = array('ignore_request' => true))
 {
     return parent::getModel($name, $prefix, $config);
 }
開發者ID:hixbotay,項目名稱:executivetransport,代碼行數:4,代碼來源:agent.php

示例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);
 }
開發者ID:philbertphotos,項目名稱:JMapMyLDAP,代碼行數:15,代碼來源:settings.php

示例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;
	}
開發者ID:utopszkij,項目名稱:lmp,代碼行數:15,代碼來源:felhasznalok.php


注:本文中的JControllerForm::getModel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。