Пример #1
0
/**
*	get recupère des informations sur le système.
**/
function get($key)
{
    $instance = get_instance();
    switch ($key) {
        case "str_core":
            return $instance->config->item('version');
            break;
        case "core_version":
            return (double) $instance->config->item('version');
            break;
        case "core_signature":
            return $instance->config->item('core_signature');
            break;
        case "declared-shortcuts":
            return get_declared_shortcuts();
            break;
    }
}
Пример #2
0
/**
 *	get recupère des informations sur le système.
 **/
function get($key)
{
    $instance = get_instance();
    switch ($key) {
        case "core_version":
            return $instance->version();
            break;
        case "core_id":
            return (double) $instance->id();
            break;
        case "declared_shortcuts":
            return get_declared_shortcuts();
            break;
    }
}