| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Anvandare implements ContainerInjectableInterface |
||
| 9 | { |
||
| 10 | use ContainerInjectableTrait; |
||
| 11 | |||
| 12 | |||
| 13 | public function __construct($di) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function allaAnvandare() |
||
| 26 | } |
||
| 27 | |||
| 28 | public function enAnvandare($id) |
||
| 29 | { |
||
| 30 | $db = $this->di->get("db"); |
||
| 31 | $db->connect(); |
||
| 32 | $sql = "SELECT * FROM anvandare2 WHERE anvandarid=?;"; |
||
| 33 | $res = $db->executeFetch($sql, [$id]); |
||
| 34 | |||
| 35 | return $res; |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | public function anvandarensFragor($userid) |
||
| 40 | { |
||
| 41 | $db = $this->di->get("db"); |
||
| 42 | $db->connect(); |
||
| 43 | $sql = "SELECT * FROM inlagg WHERE userid=? AND type='fraga';"; |
||
| 44 | $res = $db->executeFetchAll($sql, [$userid]); |
||
| 45 | return $res; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function anvandarensSvar($userid) |
||
| 55 | } |
||
| 56 | } |
||
| 57 |