/**
  * Register the plugin in the database
  *
  * @param unknown_type $sClassName
  * @param unknown_type $sNamespace
  * @param unknown_type $sFilename
  */
 function registerPlugin($sClassName, $sNamespace, $sFilename = null)
 {
     $sFilename = !empty($sFilename) ? KTPlugin::_fixFilename($sFilename) : '';
     $this->_aPluginDetails[$sNamespace] = array($sClassName, $sNamespace, $sFilename);
     $object = $sClassName . '|' . $sNamespace . '|' . $sFilename;
     KTPlugin::registerPluginHelper($sNamespace, $sClassName, $sFilename, $object, 'general', 'plugin');
 }
 /**
  * Register the plugin in the database
  *
  * @param unknown_type $sClassName
  * @param unknown_type $sNamespace
  * @param unknown_type $sFilename
  */
 function registerPlugin($sClassName, $sNamespace, $sFilename = null)
 {
     $sFilename = !empty($sFilename) ? KTPlugin::_fixFilename($sFilename) : '';
     $this->_aPluginDetails[$sNamespace] = array($sClassName, $sNamespace, $sFilename);
     /*
     Check whether the system is registering or not. If true, register the plugin in plugin_helper.
     If false, skip.
     This check has been put in place to prevent the plugin being registered on every page load.
     */
     if (isset($_SESSION['plugins_registerplugins']) && $_SESSION['plugins_registerplugins']) {
         $object = $sClassName . '|' . $sNamespace . '|' . $sFilename;
         KTPlugin::registerPluginHelper($sNamespace, $sClassName, $sFilename, $object, 'general', 'plugin');
     }
 }
 /**
  * Register a new location in the database
  *
  * @param unknown_type $descr
  * @param unknown_type $loc
  */
 function addLocation($descr, $loc, $sPluginNamespace = NULL)
 {
     $this->aLocationRegistry[$descr] = $loc;
     if (!empty($sPluginNamespace)) {
         $sPlugin = $sPluginNamespace;
     } else {
         $sPlugin = $this->getPluginName();
         $sPlugin = !empty($sPlugin) ? $sPlugin : $descr;
     }
     KTPlugin::registerPluginHelper($sPlugin, $sPlugin, $loc, $descr . '|' . $loc, 'general', 'locations');
 }