Warning: session_start(): open(/var/lib/php/sessions/sess_fklv0ajp6990uu52ivcrvq7mls, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static class RemoteDB {
DialogIO db;
*(S botName) {
if (isSnippetID(botName)) botName += " Concepts.";
db = findBot(botName);
}
bool functional() { ret db != null; }
L list() {
ret (L) rpc(db, "xlist");
}
L xlist(S className) { ret list(className); }
L list(S className) {
ret (L) rpc(db, "xlist", className);
}
S xclass(RC o) {
ret (S) rpc(db, "xclass", o);
}
O xget(RC o, S field) {
ret rpc(db, "xget", o, field);
}
S xS(RC o, S field) {
ret (S) xget(o, field);
}
RC xgetref(RC o, S field) {
ret (RC) xget(o, field);
}
void xset(RC o, S field, O value) {
rpc(db, "xset", o, field, value);
}
RC uniq(S className) {
RC ref = first(list(className));
if (ref == null)
ref = xnew(className);
ret ref;
}
RC xnew(S className, O... values) {
ret (RC) rpc(db, "xnew", className, values);
}
void xdelete(RC o) {
rpc(db, "xdelete", o);
}
void xdelete(L l) {
rpc(db, "xdelete", l);
}
void close() {
if (db != null)
db.close();
}
S fullgrab() {
ret (S) rpc(db, "xfullgrab");
}
}