Initial import

This commit is contained in:
2026-06-04 11:13:34 +01:00
commit 563d9cc96d
143 changed files with 10572 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
class System extends Model {
protected $table = "systems";
protected $_computed = [
"documents" => "get_documents",
];
public function get_documents() {
$docs = SystemDoc::find([["system", "=", $this->id]])->all();
$dl = new Collection;
foreach ($docs as $d) {
$doc = new Document($d->document);
if ($doc) {
$dl->add($doc);
}
}
$dl->sort("title");
return $dl;
}
}