Example #1
0
 /**
  * Constructor
  *
  * @access public
  * @return object
  */
 public function __construct()
 {
     parent::__construct();
     $this->installDb = function () {
         $oDb = Config::get('Db');
         $oTables = json_decode(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . preg_replace('/^.*\\\\([a-zA-Z0-9]+)$/', '$1', get_called_class()) . DIRECTORY_SEPARATOR . 'conf' . DIRECTORY_SEPARATOR . 'Db.conf'));
         $oDb->configuration->tables = $oTables;
         $aOptions = ["p" => CREATE_PORTAL, "c" => true, "e" => true, "b" => json_encode($oDb)];
         $oEntity = new Entity();
         $oEntity->runScaffolding($aOptions);
     };
 }
Example #2
0
 /**
  * Constructor
  *
  * @access public
  * @return object
  */
 public function __construct()
 {
     parent::__construct();
 }