/** * 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); }
/** * * @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); } }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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); }
public function getModel($name = 'Export', $prefix = 'SocialCommunityModel', $config = array('ignore_request' => true)) { $model = parent::getModel($name, $prefix, $config); return $model; }
/** * 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; }
/** * 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; }
/** * 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)); }
/** * 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; }
/** * 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; }
public function getModel($name = 'Languages', $prefix = 'JUDownloadModel', $config = array('ignore_request' => true)) { $model = parent::getModel($name, $prefix, $config); return $model; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * Proxy for getModel. */ public function getModel($name = 'Packages', $prefix = 'LocaliseModel', $config = array('ignore_request' => true)) { $model = parent::getModel($name, $prefix, $config); return $model; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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); }
public function getModel($name = 'Promotion', $prefix = 'DJClassifiedsModel', $config = array('ignore_request' => true)) { $model = parent::getModel($name, $prefix, $config); return $model; }
/** * 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; }
/** * 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); }
/** * * @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); }
/** * 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; }
public function getModel($name = 'Dashboard', $prefix = 'GAnalyticsModel') { $model = parent::getModel($name, $prefix, array('ignore_request' => true)); return $model; }