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


PHP JControllerAdmin::getModel方法代碼示例

本文整理匯總了PHP中JControllerAdmin::getModel方法的典型用法代碼示例。如果您正苦於以下問題:PHP JControllerAdmin::getModel方法的具體用法?PHP JControllerAdmin::getModel怎麽用?PHP JControllerAdmin::getModel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JControllerAdmin的用法示例。


在下文中一共展示了JControllerAdmin::getModel方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getModel

 /**
  * Proxy for getModel.
  * @since	2.5
  */
 public function getModel($name = 'TSJs', $prefix = 'TSJModel', $config = array('ignore_request' => true))
 {
     //JFactory::getApplication()->enqueueMessage('Debug: TSJControllerTSJs::getModel');
     $model = parent::getModel($name, $prefix, $config);
     //JFactory::getApplication()->enqueueMessage('Debug: TSJControllerTSJs::getModel model='.$model);
     return $model;
 }
開發者ID:rsam,項目名稱:com_tsj,代碼行數:11,代碼來源:tsjs.php

示例2: getModel

	/**
	 * Proxy for getModel.
	 */
	public function getModel($name = 'Cssmanager', $prefix = 'JEMModel', $config = array())
	{
		$model = parent::getModel($name, $prefix, array(
				'ignore_request' => true
		));
		return $model;
	}
開發者ID:BillVGN,項目名稱:PortalPRP,代碼行數:10,代碼來源:cssmanager.php

示例3: getModel

 public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
 {
     $option = JRequest::getVar('option');
     $clearName = substr($option, 4);
     $prefix = ucfirst($clearName) . 'Model';
     $name = str_replace('s', '', str_replace(ucfirst($clearName) . 'Controller', '', get_class()));
     return parent::getModel($name, $prefix, $config);
 }
開發者ID:baxri,項目名稱:presents,代碼行數:8,代碼來源:searchs.php

示例4: getModel

 public function getModel($name = 'Profiles', $prefix = 'GAnalyticsModel')
 {
     if (JRequest::getVar('task', '') == 'delete' || JRequest::getVar('task', '') == 'profiles.delete') {
         $name = 'Profile';
     }
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:naquib555,項目名稱:quBitolgy,代碼行數:8,代碼來源:profiles.php

示例5: getModel

 /**
  * Proxy for getModel.
  * @since	1.6
  */
 public function getModel($name = 'Registration', $prefix = 'OSBITModel', $config = array())
 {
     if (!isset($config)) {
         $config = array();
     }
     $config['ignore_request'] = false;
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:untergasser,項目名稱:osbit,代碼行數:13,代碼來源:registrations.php

示例6: getModel

 /**
  * Proxy for getModel.
  *
  * @param   string  $name    Model name
  * @param   string  $prefix  Prefix
  * @param   array   $config  configuration array
  *
  * @return  the model
  */
 public function getModel($name = null, $prefix = 'BabioonAdModel', $config = array('ignore_request' => true))
 {
     if (is_null($name)) {
         $name = BabioonAdHelper::toSingular($this->view_list);
     }
     // Note: Name in singular
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:rdeutz,項目名稱:babioon-ad,代碼行數:18,代碼來源:objects.php

示例7: 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   12.2
  */
 public function getModel($name = "", $prefix = "JDeveloperModel", $config = array())
 {
     if (empty($name)) {
         $name = $this->model_item;
     }
     $config['ignore_request'] = true;
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:joshjim27,項目名稱:jobsglobal,代碼行數:20,代碼來源:list.php

示例8: getModel

 /**
  * Proxy for getModel.
  *
  * @param     string    $name      The name of the model.
  * @param     string    $prefix    The prefix for the class name.
  * @param     array     $config    Configuration array for model. Optional.
  *
  * @return    object
  */
 public function getModel($name = '', $prefix = 'PFdatagenModel', $config = array('ignore_request' => true))
 {
     // Override model name
     $name = $this->model;
     if (empty($name)) {
         $model = false;
     } else {
         $model = parent::getModel($name, $prefix, $config);
     }
     return $model;
 }
開發者ID:beingsane,項目名稱:Generator,代碼行數:20,代碼來源:generator.json.php

示例9: getModel

 public function getModel($name = null, $prefix = null)
 {
     if ($prefix === null) {
         $prefix = "JoomlahaxeModel";
     }
     if ($name === null) {
         $name = "Joomlahaxes";
     }
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:ConfidantCommunications,項目名稱:JoomlaHaxe,代碼行數:11,代碼來源:JoomlahaxeControllerJoomlahaxes.class.php

示例10: 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);
         $name = RInflector::singularize($name);
     }
     if (empty($prefix)) {
         $prefix = strstr($class, 'Controller', true) . 'Model';
     }
     return parent::getModel($name, $prefix, $config);
 }
開發者ID:810,項目名稱:redCORE,代碼行數:22,代碼來源:base.php

示例11: getModel

 public function getModel($name = 'Tag', $prefix = 'JUDownloadModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:5,代碼來源:tags.php

示例12: getModel

 /**
  * Proxy for getModel.
  * @since	1.6
  */
 public function getModel($name = 'item', $prefix = 'JvpricetableModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
開發者ID:knigherrant,項目名稱:decopatio,代碼行數:9,代碼來源:items.php

示例13: 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	3.1
  */
 public function getModel($name = 'Repository', $prefix = 'MarketplaceModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:bellodox,項目名稱:joomla-marketplace-component,代碼行數:14,代碼來源:repositories.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   1.6
  */
 public function getModel($name = 'Message', $prefix = 'MessagesModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:WineWorld,項目名稱:joomlatrialcmbg,代碼行數:16,代碼來源:messages.php

示例15: getModel

 /**
  * Proxy for getModel
  *
  * @param	string	$name	The model name. Optional.
  * @param	string	$prefix	The class prefix. Optional.
  *
  * @return	object	The model.
  * @since	1.6
  */
 function getModel($name = 'Category', $prefix = 'CategoriesModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
開發者ID:jimyb3,項目名稱:mathematicalteachingsite,代碼行數:14,代碼來源:categories.php


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