1 | <?php |
||
7 | trait Create { |
||
8 | |||
9 | protected $definition = null, $error = false, $id = 0, $data = []; |
||
10 | |||
11 | # Create entity entry in DB |
||
12 | |||
13 | public function create(array $data) { |
||
47 | |||
48 | # Get dataset interface |
||
49 | |||
50 | abstract protected function getDataset(array $data, bool $initial = false); |
||
51 | |||
52 | # Get path interface |
||
53 | |||
54 | abstract protected function getPath(); |
||
55 | |||
56 | # Implementor interface |
||
57 | |||
58 | abstract protected function implement(); |
||
59 | } |
||
60 | } |
||
61 |