Model class for all business DAO objects
| package | salt\dao |
|---|
__construct(string $objectClassName)
stringclass name of the model object
__get(string $field) : \salt\Field
stringfield name
\salt\Fieldthe field metadataexists(string $field) : boolean
stringfield name
booleanTRUE if field is registered, FALSE otherwisegetClass() : string
stringa child class name of BasegetFields() : array<mixed,\salt\Field>
array<mixed,\salt\Field>fields indexed by field namegetIdFieldName() : string
stringthe name of the ID fieldgetTableName() : string
stringthe table nameinitialized() : boolean
booleanTRUE if model is initialized, FALSE otherwiseregisterFields(\salt\Field $args) : \salt\Model
\salt\Field... list of fields
\salt\Modelthis objectregisterId(string $fieldName) : \salt\Model
registerTableName(string $table) : \salt\Model
stringthe table name that will be used in query generation
\salt\Modelthis objectsetInitialized()
No modification can be done to the model after that.
checkChangeAfterInit()
\salt\SaltException |
if called after setInitialized() |
|---|
$_salt_class : string
NULL$_salt_fields : array<mixed,\salt\Field>
array()$_salt_idFieldName : string
NULL$_salt_initialized : boolean
FALSE$_salt_tableName : string
NULL