This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".  
Status: 2024-01-02

functions

get()

simplifies the use of variables. If a variable does not exist, null or a defined value is returned.

usually

$mValue = (isset($aData['foo']['bar'])) ? $aData['foo']['bar'] : null;
// or
$mValue = ($aData['foo']['bar'] ?? null);

way with get()

$mValue = get($aData['foo']['bar']);

display()

shorthand for Debug::display() on userland.

see Debug::display()


info()

shorthand for Debug::info() on userland.

see Debug::info()


stop()

shorthand for Debug::stop() on userland.

see Debug::stop()


whereis()

locates source/binary for a specified file.

Example

$sLogId = '202401011415586592bb0e3eb50';
$sCmd = "cd " . Config::get_MVC_LOG_FILE_DIR() . "; " . whereis('grep') .  " " . $sLogId . " *.log ";
Emvicy::shellExecute($sCmd, true);

pr()

dumps data using print_r.

Example

pr(get_include_path(), ':');

mvcStoreEnv()

reads environment key/values from a given file and stores them via putenv so that they will be accessible via getenv().


mvcConfigLoader()

loads all available configs.

see also Config files, -places and reading order