1 | <?php |
||
13 | class UserModel implements |
||
14 | ConfigureInterface, |
||
15 | InjectionAwareInterface |
||
16 | { |
||
17 | use ConfigureTrait, |
||
18 | InjectionAwareTrait; |
||
19 | |||
20 | /** |
||
21 | * Variables |
||
22 | */ |
||
23 | //private $session; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Create a new User. |
||
28 | * The acronym is unique! |
||
29 | * |
||
30 | * @param array $newUser the values of the new user. |
||
31 | * |
||
32 | * $newUser = [ |
||
33 | * acronym => name, |
||
34 | * password => hashing in function!, |
||
35 | * email => , |
||
36 | * created => timestamp in function, |
||
37 | * updated => null, |
||
38 | * deleted => null, |
||
39 | * active => null, |
||
40 | * admin => 0, |
||
41 | * ]; |
||
42 | * |
||
43 | * @return boolean true if acronym unique, false otherwise. |
||
44 | */ |
||
45 | public function createUser($newUser) |
||
69 | } |
||
70 |