} return $fLoaded; }); Verbum::Scriptor('Verbum::reply_success', function ($self, $params) { $msg['status'] = 'success'; $msg['details'] = $params; return $msg; }); Verbum::Scriptor('Verbum::reply_fail', function ($self, $params) { $msg['status'] = 'fail'; $msg['details'] =& $params; return $msg; }); if (php_sapi_name() == "cli") { Verbum::Voco('Verbum::breath', array("Verbum-CLI")); } else { Verbum::Voco('Verbum::breath', array("Verbum-WEB")); } if (!function_exists('\\Verbum\\Core\\shutdown')) { function shutdown() { $error = error_get_last(); if ($error['type'] == 0) { return; } echo "<h1>Error Occured</h1>"; echo $error['message'] . '<br />'; echo $error['file'] . ' at line ' . $error['line'] . '<br />'; } register_shutdown_function('\\Verbum\\Core\\shutdown'); }
private static final function LoadRealm($realm) { if (class_exists($realm)) { return; } $trealm = strtolower($realm); $loaded = self::Voco('Verbum::breath', $trealm . '/realm'); if (count($loaded) != 0) { return; } Verbum::Voco('Verbum::breath', $realm); }