Warning: session_start(): open(/var/lib/php/sessions/sess_5bv979vbv2l8pk4ah2c2t4vu94, 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
sclass ConceptShadow {
Map map;
*(Concept c) {
map = conceptShadow_rawMap(c);
map = toSortedArrayBasedMap(mapValues convertValue(map));
}
// legacy
selfType convertRefsToIDs() { this; }
O convertValue(O o) {
if (o cast Concept.Ref)
ret conceptIDObject(o!);
if (o cast Concept.RefL)
ret lmap conceptIDObject(o);
if (o cast Concept)
ret ConceptID(o);
ret o;
}
toString { ret "ConceptShadow " + stringIf(refsConvertedToIDs, "[converted] ") + map; }
O get(O key) { ret mapGet(map, key); }
public bool equals(O o) {
if (o cast ConceptShadow)
ret eq(map, o.map);
false;
}
long id() { ret toLong(get("id")); }
}