Sovello

iHRIS_Module_Core

Jun 11th, 2013
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1.     public function action_initialize() {
  2.         $config_protocol = strtolower(I2CE::getRuntimeVariable('I2CE_CONFIG_PROTOCOL', 'config_alt' ));
  3.         switch($config_protocol) {
  4.         case 'mongodb':
  5.             $old_config =I2CE::getConfig()->getAsArray();
  6.             if (! $this->createMongoDBConfig(false)) {
  7.                 return false;
  8.             }
  9.             break;
  10.         default:
  11.             if (! $this->createAltConfig(false)) {
  12.                 return false;
  13.             }
  14.         }
  15.  
  16.         //Re-Add The Db As A Magic Data Storage Mechanism And Dump Everyting already stored  To The Db
  17.         // The db_name stuff doesn't seem to exist anymore so I'm commenting it all out.  It's
  18.         // not being re-set anywhere anyway. -lad
  19.         //$db_name = 'XXX';
  20.        
  21.         //$old_config->setIfIsSet($db_name,"database/DB");
  22.         return $this->setupMagicDataStorage($old_config);
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment