Result
Less than 1 minute
Result
Properties
meta
protected array $metaadapter
public Adapter $adapterarrayColumns
protected array $arrayColumnsselectGroups
protected array $selectGroupsMethods
__construct
public __construct(Adapter $adapter): voidParameters
| Parameter | Type | Description |
|---|---|---|
$adapter | Adapter |
__toString
public __toString(): stringsetAdapter
public setAdapter(Adapter $adapter): voidParameters
| Parameter | Type | Description |
|---|---|---|
$adapter | Adapter |
count
public count(): intcollate
Collates a result into a simple key/value array.
public collate(string $indexColumn, string $valueColumn, null $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 | null | optional column name to group items by |
all
public all(): voidfetchModel
Fetches a model instance of the specified class.
public fetchModel(string $modelClass): StructParameters
| 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 |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:25 +0000