Result
Less than 1 minute
Result
Properties
arrayColumns
protected array $arrayColumnsmeta
protected array $metaselectGroups
private array $selectGroupsencrypt
private mixed $encryptMethods
__toString
public __toString(): stringcount
public count(): intcollate
Collates a result into a simple key/value array.
public collate(string $indexColumn, string $valueColumn, string $groupColumn): voidThis is useful for generating SELECT lists directly from a resultset.
Parameters
| Parameter | Type | Description |
|---|---|---|
$indexColumn | string | the column to use as the array index |
$valueColumn | string | the column to use as the array value |
$groupColumn | string | optional column name to group items by |
all
public all(): voidrow
public row(int $cursorOrientation = '\PDO::FETCH_ORI_NEXT', int $offset): ?RowParameters
| Parameter | Type | Description |
|---|---|---|
$cursorOrientation | int | |
$offset | int |
rows
public rows(): voidfetchModel
Fetches a model instance of the specified class.
public fetchModel(string $modelClass): ModelParameters
| Parameter | Type | Description |
|---|---|---|
$modelClass | string | the fully qualified class name of the model to fetch |
fetchAllModel
Fetches a collection of model instances of the specified class.
public fetchAllModel(string $modelClass, ?string $keyColumn): voidParameters
| Parameter | Type | Description |
|---|---|---|
$modelClass | string | the fully qualified class name of the model to fetch |
$keyColumn | string |
fix
protected fix(array $record): voidParameters
| Parameter | Type | Description |
|---|---|---|
$record | array |
decrypt
protected decrypt(array $data): voidParameters
| Parameter | Type | Description |
|---|---|---|
$data | array |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:28 +0000