| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 80 | public function lookupField($fieldnumber) |
||
| 81 | { |
||
| 82 | $ret = []; |
||
| 83 | global $xoopsDB; |
||
| 84 | $SQL = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_lookup' . $fieldnumber) . " ORDER BY 'order'"; |
||
| 85 | $result = $GLOBALS['xoopsDB']->query($SQL); |
||
| 86 | while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) { |
||
| 87 | $ret[] = ['id' => $row['id'], 'value' => $row['value']]; |
||
| 88 | } |
||
| 89 | |||
| 90 | //array_multisort($ret,SORT_ASC); |
||
| 91 | return $ret; |
||
| 92 | } |
||
| 94 |