public getApplicationInfo ( string $applicationName, string $key = null ) : boolean | mixed | ||
$applicationName | string | The name of the application to lookup. |
$key | string | The key of a field in the application info to return. |
Результат | boolean | mixed | Returns the application's info, a specific value, or false if the application cannot be found. |
public function getApplicationInfo($applicationName, $key = null)
{
$ApplicationInfo = val($applicationName, $this->availableApplications(), null);
if (is_null($ApplicationInfo)) {
return false;
}
if (!is_null($key)) {
return GetValueR($key, $ApplicationInfo, false);
}
return $ApplicationInfo;
}