コード例 #1
0
ファイル: export.raw.php プロジェクト: alesconti/FF_2015
 /**
  * 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);
 }
コード例 #2
0
ファイル: plugin.php プロジェクト: grlf/eyedock
 /**
  * 
  * @param type $params
  */
 public static function saveSettings($params)
 {
     $oPlugin = JchPlatformPlugin::getPlugin();
     $oPlugin->params = $params->toArray();
     $oData = new JRegistry($oPlugin);
     $aData = $oData->toArray();
     $oController = new JControllerLegacy();
     $oController->addModelPath(JPATH_ADMINISTRATOR . '/components/com_plugins/models', 'PluginsModel');
     $oPluginModel = $oController->getModel('Plugin', 'PluginsModel');
     if ($oPluginModel->save($aData) === FALSE) {
         JchOptimizeLogger::log(JText::sprintf('JLIB_APPLICATION_ERROR_SAVE_FAILED', $oPluginModel->getError()), $params);
     }
 }
コード例 #3
0
ファイル: vistools.php プロジェクト: shamusdougan/GDMCWebsite
 /**
  * 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 (note, the empty array is atypical compared to other models).
  *
  * @return  JModelLegacy  The model.
  *
  * @since   3.2
  */
 public function getModel($name = 'Vistools', $prefix = 'VisformsModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #4
0
ファイル: menus.php プロジェクト: brenot/forumdesenvolvimento
 /**
  * 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 = 'Menu', $prefix = 'MenusModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #5
0
 /**
  * Proxy for getModel.
  * @since   1.6
  */
 public function getModel($name = 'Dashboard', $prefix = 'ItpMetaModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #6
0
 /**
  * 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   CrowdfundingModelNotifier|bool    The model.
  * @since    1.5
  */
 public function getModel($name = 'Notifier', $prefix = 'CrowdfundingModel', $config = array('ignore_request' => true))
 {
     return parent::getModel($name, $prefix, $config);
 }
コード例 #7
0
 public function getModel($name = 'Export', $prefix = 'SocialCommunityModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #8
0
ファイル: competities.php プロジェクト: esorone/efcpw
 /**
  * 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 = 'Competities', $prefix = 'Knvbapi2Model', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #9
0
ファイル: modules.raw.php プロジェクト: ForAEdesWeb/AEW3
 /**
  * Proxy for getModel.
  * @since	1.6
  */
 public function getModel($name = 'Module', $prefix = 'ModulesmanagerckModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
コード例 #10
0
ファイル: users.php プロジェクト: sabrinahung/test_cms
 /**
  * Proxy for getModel.
  *
  * @see     JController::getModel
  *
  * @since   2.1.0
  */
 public function getModel($name = 'User', $prefix = 'ExternalloginModel', $config = null)
 {
     return parent::getModel($name, $prefix, isset($config) ? $config : array('ignore_request' => true));
 }
コード例 #11
0
ファイル: assign.php プロジェクト: ForAEdesWeb/AEW3
 /**
  * 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 = 'Assign', $prefix = 'FaviconModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #12
0
ファイル: coupon.json.php プロジェクト: prox91/joomla-dev
 /**
  * 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 = 'Coupon', $prefix = 'SolidresModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #13
0
ファイル: languages.php プロジェクト: kosmosby/medicine-prof
 public function getModel($name = 'Languages', $prefix = 'JUDownloadModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #14
0
ファイル: registrations.raw.php プロジェクト: madcsaba/li-de
 /**
  * Proxy for getModel.
  *
  * @param   string  $name    The name of the model.
  * @param   string  $prefix  The prefix for the model class name.
  * @param   array   $config  Configuration array for model. Optional.
  *
  * @return  JModel
  *
  * @since   3.5.0
  */
 public function getModel($name = 'Registrations', $prefix = 'iCagendaModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
コード例 #15
0
ファイル: lessons.php プロジェクト: prox91/joomla-dev
 /**
  * Proxy for getModel.
  * @since       2.5
  */
 public function getModel($name = 'Lessons', $prefix = 'EnglishConceptModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #16
0
ファイル: notifications.raw.php プロジェクト: pashakiz/crowdf
 /**
  * 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 = 'Notifications', $prefix = 'GamificationModel', $config = array('ignore_request' => false))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #17
0
ファイル: packages.php プロジェクト: ForAEdesWeb/AEW4
 /**
  * Proxy for getModel.
  */
 public function getModel($name = 'Packages', $prefix = 'LocaliseModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #18
0
ファイル: settings.php プロジェクト: JKoelman/JEM-3
 /**
  * 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 model.
  */
 public function getModel($name = 'Settings', $prefix = 'JEMModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #19
0
ファイル: controller.php プロジェクト: appukonrad/attachments
 /**
  * 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 = 'Attachments', $prefix = 'AttachmentModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
コード例 #20
0
 /**
  * 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    CrowdfundingFinanceModelPayout    The model.
  * @since    1.5
  */
 public function getModel($name = 'Payout', $prefix = 'CrowdfundingFinanceModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #21
0
ファイル: source.php プロジェクト: TFToto/playjoom-builds
 /**
  * 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;
 }
コード例 #22
0
ファイル: log.php プロジェクト: naka211/compac
 /**
  * Proxy for getModel.
  *
  * @param	string	$name	The name of the model.
  * @param	string	$prefix	The prefix for the model class name.
  *
  * @return	JModel
  * @since	1.6
  */
 public function &getModel($name = 'Log', $prefix = 'VMMigrateModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
コード例 #23
0
ファイル: tracks.raw.php プロジェクト: RuDers/JoomlaSQL
 /**
  * Proxy for getModel.
  *
  * @param	string	$name	The name of the model.
  * @param	string	$prefix	The prefix for the model class name.
  *
  * @return	JModel
  * @since	1.6
  */
 public function getModel($name = 'Tracks', $prefix = 'BannersModel', $config = array())
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }
コード例 #24
0
ファイル: preview.php プロジェクト: 01J/skazkipronebo
 /**
  * Proxy for getModel.
  *
  * @param   string  $name    The name of the model
  * @param   string  $prefix  The prefix for the model
  * @param   array   $config  An additional array of parameters
  *
  * @return  JModelLegacy  The model
  *
  * @since   3.2
  */
 public function getModel($name = 'Preview', $prefix = 'ContenthistoryModel', $config = array('ignore_request' => true))
 {
     return parent::getModel($name, $prefix, $config);
 }
コード例 #25
0
ファイル: promotion.php プロジェクト: politik86/test2
 public function getModel($name = 'Promotion', $prefix = 'DJClassifiedsModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #26
0
ファイル: file.raw.php プロジェクト: xop32/Proof-of-Identity
 /**
  * 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 = 'File', $prefix = 'IdentityProofModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #27
0
 /**
  * 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 (note, the empty array is atypical compared to other models).
  *
  * @return  JModelLegacy  The model.
  *
  * @since   3.2
  */
 public function getModel($name = 'Template', $prefix = 'TemplatesModel', $config = array())
 {
     return parent::getModel($name, $prefix, $config);
 }
コード例 #28
0
ファイル: auto.php プロジェクト: irovast/eyedock
 /**
  * 
  * @return type
  */
 protected function orderPlugins()
 {
     $aOrder = array('jscsscontrol', 'eorisis_jquery', 'jqueryeasy', 'jch_optimize', 'plugin_googlemap3', 'cdnforjoomla', 'bigshotgoogleanalytics', 'GoogleAnalytics', 'jat3', 'cache', 'jSGCache', 'jotcache', 'vmcache_last');
     $aPlugins = $this->getPlugins();
     $aLowerPlugins = array_values(array_filter($aOrder, function ($aVal) use($aPlugins) {
         return array_key_exists($aVal, $aPlugins);
     }));
     $iNoPlugins = count($aPlugins);
     $iNoLowerPlugins = count($aLowerPlugins);
     $iBaseOrder = $iNoPlugins - $iNoLowerPlugins;
     $cid = array();
     $order = array();
     foreach ($aPlugins as $key => $value) {
         if (in_array($key, $aLowerPlugins)) {
             $value['ordering'] = $iBaseOrder + 1 + array_search($key, $aLowerPlugins);
         } elseif ($value['ordering'] >= $iBaseOrder) {
             $value['ordering'] = $iBaseOrder - 1;
         }
         $cid[] = $value['extension_id'];
         $order[] = $value['ordering'];
     }
     JArrayHelper::toInteger($cid);
     JArrayHelper::toInteger($order);
     $aOrder = array();
     $aOrder['cid'] = $cid;
     $aOrder['order'] = $order;
     $oController = new JControllerLegacy();
     $oController->addModelPath(JPATH_ADMINISTRATOR . '/components/com_plugins/models', 'PluginsModel');
     $oPluginModel = $oController->getModel('Plugin', 'PluginsModel');
     if ($oPluginModel->saveorder($aOrder['cid'], $aOrder['order']) === FALSE) {
         $oController->setMessage(JText::sprintf('JLIB_APPLICATION_ERROR_REORDER_FAILED', $oPluginModel->getError()), 'error');
     } else {
         $oController->setMessage(JText::_('JLIB_APPLICATION_SUCCESS_ORDERING_SAVED'));
     }
     $this->display($oController);
 }
コード例 #29
0
ファイル: backing.php プロジェクト: phpsource/CrowdFunding
 /**
  * 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 = 'Backing', $prefix = 'CrowdFundingModel', $config = array('ignore_request' => true))
 {
     $model = parent::getModel($name, $prefix, $config);
     return $model;
 }
コード例 #30
0
 public function getModel($name = 'Dashboard', $prefix = 'GAnalyticsModel')
 {
     $model = parent::getModel($name, $prefix, array('ignore_request' => true));
     return $model;
 }