| Conditions | 4 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | protected function check_where_array(array $where) |
||
| 10 | { |
||
| 11 | if(count($where) != 3){ |
||
| 12 | throw new DatamanagerException("Condition where set incorrectly: ".implode(' ',$where)); |
||
| 13 | } |
||
| 14 | |||
| 15 | if(!array_key_exists($where[0],$this->data) && $this->full){ |
||
| 16 | throw new DatamanagerException("{$where[0]} field does not exist in the table {$this->table}."); |
||
| 17 | } |
||
| 65 |