Exemple #1
0
 /**
  * Kapcsolatot teremt a paraméterben megadott adatbázis sémával, a megadott username
  * és password alapján.
  *
  * @param string $pin_Schema                                A séma neve
  * @param string $pin_Host                                  A Host neve vagy címe
  * @param string $pin_Username                              A username a kapcsolódáshoz
  * @param string $pin_Password                              A password a kapcsolódáshoz
  * @param array $pin_Option                                 Beállítások a kapcsolódáshoz
  * @return boolean                                          Sikeres volt e a kapcsolat vagy sem
  * @version 1.0
  * @access public
  */
 public function __construct($pin_FetchMode = \PDO::FETCH_OBJ)
 {
     $this->_pdoDB = \library\File::getIniContent(APPS_D_CONFIG . "db-config.ini")->SCHEMA;
     $this->_pdoHost = \library\File::getIniContent(APPS_D_CONFIG . "db-config.ini")->HOST;
     $this->_pdoUsername = \library\File::getIniContent(APPS_D_CONFIG . "db-config.ini")->USERNAME;
     $this->_pdoPassword = \library\File::getIniContent(APPS_D_CONFIG . "db-config.ini")->PASSWORD;
     $this->_pdoDBType = 'MySQL';
     $this->_pdoOption = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8');
     $this->_dbObject = new \stdClass();
     $this->fetchMode = $pin_FetchMode;
     return $this->connect();
 }
Exemple #2
0
 /**
  * Beregisztrálja a module függőségeit a betöltés előtt, hogy a html fejléc biztosan tartalmazza
  * a megfelelő javascript és css fileokat amikre a module-nak szüksége van.
  *
  * @param string $pin_Module                        A module neve
  * @access protected
  * @version 1.0
  */
 protected function _loadModuleDependecies(string $pin_Module)
 {
     $loc_IniContent = new \stdClass();
     $loc_IniContent = \library\File::getIniContent(APPS_D_MODS . $pin_Module . '/config/' . self::$_dependecies);
     \library\Extensionmanager::manualLoadCSSExtension('modules/' . $pin_Module . '/style/' . $pin_Module . '.css');
     \library\Httpresponse::addScript('modules/' . $pin_Module . '/scripts/' . $pin_Module . '.js');
     \library\Extensionmanager::registrateModuleExtensions($loc_IniContent);
 }