Example #1
0
 /**
  * Megkeresi a bővítmény lokációját az extensions.ini-ben.
  *
  * @param string $pin_ExtName           A bővítmény neve.
  * @param string $pin_Type              A bővítmény típusa.
  * @return boolean
  */
 private static function _getExtLocation(string $pin_ExtName, string $pin_Type) : string
 {
     (object) ($loc_IniContent = File::getIniContent(APPS_D_CONFIG . self::$_extensionIni));
     foreach ($loc_IniContent->{$pin_Type} as $loc_Name => $loc_Path) {
         if (trim($loc_Name) == trim($pin_ExtName)) {
             return $loc_Path;
         }
     }
     throw new \Exception("{MSG.WRN.MISSING_EXTENSION_LOCATION}", self::missingExtLocation);
 }
Example #2
0
 /**
  * Lekérdezi a debug.ini-ben beállított értékeket, majd visszaadja hogy be van
  * e állítva a debugolás vagy sem.
  * 
  * @return boolean                          Be van e állítva a debugolás vagy sem.
  * @version 1.0
  */
 public static function isDebug() : bool
 {
     (object) ($loc_IniObj = File::getIniContent(self::$_debugIniFile));
     foreach ($loc_IniObj as $loc_Key => $loc_Value) {
         if ($loc_Key == "DEBUG" && $loc_Value == 'true') {
             return true;
         }
     }
     return true;
 }