@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | $this->drv = $drv; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $sql |
|
| 48 | + */ |
|
| 46 | 49 | protected function expand($sql, $data) |
| 47 | 50 | { |
| 48 | 51 | $new = ''; |
@@ -159,7 +162,7 @@ discard block |
||
| 159 | 162 | * @param string $mode result mode - `"assoc"` by default, could be `"num"`, `"both"`, `"assoc_ci"`, `"assoc_lc"`, `"assoc_uc"` |
| 160 | 163 | * @param bool $opti if a single column is returned - do not use an array wrapper (defaults to `true`) |
| 161 | 164 | * |
| 162 | - * @return mixed the result of the execution |
|
| 165 | + * @return string the result of the execution |
|
| 163 | 166 | */ |
| 164 | 167 | public function one($sql, $data = null, $mode = null, $opti = true) |
| 165 | 168 | { |
@@ -256,7 +259,7 @@ discard block |
||
| 256 | 259 | * @param string $table the table to analyze |
| 257 | 260 | * @param bool $detectRelations should relations be extracted - defaults to `true` |
| 258 | 261 | * @param bool $lowerCase should the table fields be converted to lowercase - defaults to `true` |
| 259 | - * @return the newly added definition |
|
| 262 | + * @return Table newly added definition |
|
| 260 | 263 | */ |
| 261 | 264 | public function definition( |
| 262 | 265 | string $table, |
@@ -40,6 +40,10 @@ |
||
| 40 | 40 | oci_close($this->lnk); |
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | + |
|
| 44 | + /** |
|
| 45 | + * @param string $sql |
|
| 46 | + */ |
|
| 43 | 47 | public function real($sql) |
| 44 | 48 | { |
| 45 | 49 | $this->connect(); |
@@ -61,6 +61,10 @@ |
||
| 61 | 61 | { |
| 62 | 62 | return $this->lnk->lastInsertId(null); |
| 63 | 63 | } |
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @param string $sql |
|
| 67 | + */ |
|
| 64 | 68 | public function prepare($sql) |
| 65 | 69 | { |
| 66 | 70 | $this->connect(); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Create an instance |
| 54 | 54 | * @param DatabaseInterface $db the database connection |
| 55 | - * @param Table|string $definition the name or definition of the main table in the query |
|
| 55 | + * @param Table $table |
|
| 56 | 56 | */ |
| 57 | 57 | public function __construct(DatabaseInterface $db, $table) |
| 58 | 58 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | /** |
| 189 | 189 | * Group by a column (or columns) |
| 190 | - * @param string|array $column the column name (or names) to group by |
|
| 190 | + * @param string $column the column name (or names) to group by |
|
| 191 | 191 | * @return $this |
| 192 | 192 | */ |
| 193 | 193 | public function group($column) : TableQuery |