/
ColdCore-3.0a9.02/
ColdCore-3.0a9.02/src/
new object $user_interfaces: $command_cache;

var $has_commands shortcuts = #[];
var $root created_on = 796268969;
var $root fertile = 1;
var $root flags = ['methods, 'code, 'fertile, 'variables, 'core];
var $root inited = 1;
var $root managed = [$user_interfaces];
var $root manager = $user_interfaces;
var $user_interfaces links = 0;

public method .interface_link() {
    (> .perms(caller(), $command_cache) <);
    links++;
    if ((!(.local_cache())) || (!(.remote_cache())))
        .rehash_caches();
};

public method .interface_unlink() {
    (> .perms(caller(), $command_cache) <);
    links--;
    if (links < 1) {
        .purge_caches();
        (| clear_var('links) |);
    }
};