| @@ 95-103 (lines=9) @@ | ||
| 92 | * |
|
| 93 | * @return mixed |
|
| 94 | */ |
|
| 95 | public function fetchOne($sql, array $bind = []) |
|
| 96 | { |
|
| 97 | $row = $this->fetchRow($sql, $bind); |
|
| 98 | if ($row) { |
|
| 99 | return $row[0]; |
|
| 100 | } |
|
| 101 | ||
| 102 | return false; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @param mixed $value |
|
| @@ 79-87 (lines=9) @@ | ||
| 76 | * |
|
| 77 | * @return mixed |
|
| 78 | */ |
|
| 79 | public function fetchOne($sql, array $bind = []) |
|
| 80 | { |
|
| 81 | $row = $this->fetchRow($sql, $bind); |
|
| 82 | if ($row) { |
|
| 83 | return $row[0]; |
|
| 84 | } else { |
|
| 85 | return false; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param mixed $value |
|