Conditions | 5 |
Paths | 5 |
Total Lines | 21 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function fields($tables=array()) |
||
38 | { |
||
39 | $list = []; |
||
40 | |||
41 | foreach ($this->columns as $table=>$columns) |
||
42 | { |
||
43 | foreach ($columns as $columnData) |
||
44 | { |
||
45 | if(count($tables)){ |
||
46 | |||
47 | if(in_array($table,$tables)){ |
||
48 | $list[$table][] = $columnData[$this->fieldKey]; |
||
49 | } |
||
50 | } |
||
51 | else{ |
||
52 | $list[$table][] = $columnData[$this->fieldKey]; |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $list; |
||
58 | } |
||
61 |