crud update

This commit is contained in:
Shish
2019-12-26 00:36:32 +00:00
parent 67afe948bd
commit bafdb1c769
7 changed files with 124 additions and 71 deletions

View File

@@ -1,5 +1,6 @@
<?php
use MicroCRUD\ActionColumn;
use MicroCRUD\TextColumn;
use MicroCRUD\Table;
@@ -13,10 +14,11 @@ class AliasTable extends Table
$this->primary_key = "oldtag";
$this->size = 100;
$this->limit = 1000000;
$this->columns = [
$this->set_columns([
new TextColumn("oldtag", "Old Tag"),
new TextColumn("newtag", "New Tag"),
];
new ActionColumn("oldtag"),
]);
$this->order_by = ["oldtag"];
$this->table_attrs = ["class" => "zebra"];
}