Oihana PHP

ModelParamTrait

The set of constant keys recognized in a model's `$init` options array.

This trait holds every common parameter name shared by the model operations and factories — covering identity (id, key, keys), payloads (document via model), querying (conditions, query, binds, sort), caching (cache, ttl), alteration (alters, alterKey) and behavioural toggles (debug, mock, throwable, …).

It is consumed by ModelParam, which combines it with ConstantsTrait to expose the reflection helpers. Reference these constants rather than raw strings to keep option arrays consistent across the library (no magic strings).

Tags
author

Marc Alcaraz

since
1.0.0

Table of Contents

Constants

ALTER_KEY  : string = 'alterKey'
The 'alterKey' parameter.
ALTERS  : string = 'alters'
The 'alters' parameter.
BINDS  : string = 'binds'
The 'binds' parameter.
BINDS_ALTERS  : string = 'bindsAlters'
The 'bindsAlters' parameter.
CACHE  : string = 'cache'
The 'cache' parameter.
CONDITIONS  : string = 'conditions'
The 'conditions' parameter.
DEBUG  : string = 'debug'
The 'debug' parameter.
DEFAULT  : string = 'default'
The 'default' parameter.
DEFER_ASSIGNMENT  : string = 'deferAssignment'
The 'deferAssignment' parameter.
ENFORCE  : string = 'enforce'
The 'enforce' parameter.
ENSURE  : string = 'ensure'
The 'ensure' parameter.
ID  : string = 'id'
The 'id' parameter.
KEY  : string = 'key'
The 'key' parameter.
KEYS  : string = 'keys'
The 'keys' parameter.
LIST  : string = 'list'
The 'list' parameter.
LOGGABLE  : string = 'loggable'
The 'loggable' parameter.
LOGGER  : string = 'logger'
The 'logger' parameter.
MOCK  : string = 'mock'
The 'mock' parameter.
MODEL  : string = 'model'
The 'model' parameter.
OPTIMIZED  : string = 'optimized'
The 'optimized' parameter.
OWNER  : string = 'owner'
The 'owner' parameter.
PDO  : string = 'pdo'
The 'pdo' parameter.
QUERY  : string = 'query'
The 'query' parameter.
QUERY_BUILDER  : string = 'queryBuilder'
The 'queryBuilder' parameter.
QUERY_FIELDS  : string = 'queryFields'
The 'queryFields' parameter.
QUERY_ID  : string = 'queryId'
The 'queryId' parameter.
SCHEMA  : string = 'schema'
The 'schema' parameter.
SORT  : string = 'sort'
The 'sort' parameter.
SORT_DEFAULT  : string = 'sortDefault'
The 'sortDefault' parameter.
THROWABLE  : string = 'throwable'
The 'throwable' parameter.
TTL  : string = 'ttl'
The 'ttl' parameter.
VALUE  : string = 'value'
The 'value' parameter.

Constants

ALTER_KEY

The 'alterKey' parameter.

public string ALTER_KEY = 'alterKey'

Defines the default 'alter' key identifier.

BINDS_ALTERS

The 'bindsAlters' parameter.

public string BINDS_ALTERS = 'bindsAlters'

CONDITIONS

The 'conditions' parameter.

public string CONDITIONS = 'conditions'

DEFER_ASSIGNMENT

The 'deferAssignment' parameter.

public string DEFER_ASSIGNMENT = 'deferAssignment'

LOGGABLE

The 'loggable' parameter.

public string LOGGABLE = 'loggable'

OPTIMIZED

The 'optimized' parameter.

public string OPTIMIZED = 'optimized'

QUERY_BUILDER

The 'queryBuilder' parameter.

public string QUERY_BUILDER = 'queryBuilder'

QUERY_FIELDS

The 'queryFields' parameter.

public string QUERY_FIELDS = 'queryFields'

QUERY_ID

The 'queryId' parameter.

public string QUERY_ID = 'queryId'

SORT_DEFAULT

The 'sortDefault' parameter.

public string SORT_DEFAULT = 'sortDefault'

THROWABLE

The 'throwable' parameter.

public string THROWABLE = 'throwable'
On this page

Search results