Warning: session_start(): open(/var/lib/php/sessions/sess_8suu8ph0g2nkvhkklgo1ufkj31, 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
concept G22LeftArrowScript {
S description;
// the script ("saved" text)
S text;
// text currently modified in an editor (or null)
// Note that "" doesn't count as null.
S editingText;
@Override void _doneLoading2() {
//print("_doneLoading " + this);
cMigrateField(this, "code", "text");
}
S myType() { ret dropPrefix("G22", shortClassName(this)); }
toString { ret or2(description, myType() + " " + id); }
S latestText() { ret or(editingText, text); }
S stableText() { ret text; }
File historyFile() {
ret fileInConceptsDir("History/" + shortDynName(this) + id + ".history");
}
void saveTextToHistory() {
File historyFile = assertNotNull(+historyFile());
appendToTextFile(historyFile,
"Concept ID: " + id + "\n" +
"Date: " + dateWithMSUTC() + "\n" +
"Text:" \n +
indentx(text) + "\n"
"===" + "\n");
}
}