function is_oop_on($trace = false) { static $s_oopIsEnabled; if (isset($s_oopIsEnabled)) { // Return the cached value. return $s_oopIsEnabled; } if (CConfiguration::isInitialized()) { $s_oopIsEnabled = CConfiguration::appOption("enableOop"); return $s_oopIsEnabled; } else { return false; } }
/** * Returns the name of the application's default locale. * * @return CUStringObject The name of the application's default locale. */ public static function defaultLocaleName() { return CConfiguration::appOption("defaultLocale"); }
/** * Returns the path to the default directory for temporary files. * * The returned path is the path to either the OS's temporary files directory or the directory specified in the * application's configuration. * * @return CUStringObject The path to the default directory for temporary files. */ public static function temporaryFilesDp() { $dp; $customTempFilesDp = CConfiguration::appOption("customTemporaryFilesDirectoryPath"); if (CString::isEmpty($customTempFilesDp)) { // Return the OS's temporary files directory. $dp = sys_get_temp_dir(); } else { // Return the custom temporary files directory. $dp = $customTempFilesDp; } $dp = CString::stripEnd($dp, "/"); // just in case return $dp; }