当前位置: 首页>>代码示例>>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;未经允许,请勿转载。