$A
$A : string
A
Class CONFIG_MANAGER
__construct(array $args = NULL) : \JCORE\LOAD\bool;
CACHEABLE CONFIG.
if we don't have a cache with and API we're looking @ an I/O hit for all the config files use XDEBUG [or equiv] to VERIFY your relative execution times [cache vs file load] (these can change under varying types of load)
$args["CSN"] $args["INSTANCE"] $args["CACHE_SERIALIZATION"] $args["UNSERIALIZE_TYPE"]
if no chache source nothing else to do... otherwise set defaults and over-ride if the arg is passed $this->settings["CACHE_SERIALIZATION"] = 'JSON'; $this->settings["UNSERIALIZE_TYPE"] = 'ARRAY'; $this->settings["IMPLEMENTATION"] = 'STATIC'; ["IMPLEMENTATION"] != 'STATIC' we either use an instantiated class or fail to no cache
array | $args |
getSetting( $LOAD_ID = null, $SECTION_NAME = null, $SETTING_NAME = NULL) : null
DESCRIPTOR: gets the setting.
treat args as setting[LOAD_ID][SECTION_NAME][SETTING_NAME] LOAD_ID is the directory path LOAD_ID only will return all vars defined in the file SECTION_NAME [section] name in the ".ini" SECTION_NAME, LOAD_ID only will return the whole section SETTING_NAME setting under [section] in the ".ini"
$LOAD_ID | ||
$SECTION_NAME | ||
$SETTING_NAME |
getConstants(string $section = "user") : boolean
DESCRIPTOR: .
loads the ini internally and returns a value of true if all good returns the defined constants array with the "categories" flag $section is the "category" returned "user" is default other options: internal, date, libxml, openssl, pcre, zlib, calendar, hash, filter, ftp, gmp, iconv, standard, sockets, exif, tokenizer, xml, curl,dom, gd, imap, ldap, mbstring, mcrypt, mhash, mysql, mysqli pgsql, posix, snmp, soap
string | $section |