Model class for all business DAO objects
package | salt\dao |
---|
__construct(string $objectClassName)
string
class name of the model object
__get(string $field) : \salt\Field
string
field name
\salt\Field
the field metadataexists(string $field) : boolean
string
field name
boolean
TRUE if field is registered, FALSE otherwisegetClass() : string
string
a child class name of BasegetFields() : array<mixed,\salt\Field>
array<mixed,\salt\Field>
fields indexed by field namegetIdFieldName() : string
string
the name of the ID fieldgetTableName() : string
string
the table nameinitialized() : boolean
boolean
TRUE if model is initialized, FALSE otherwiseregisterFields(\salt\Field $args) : \salt\Model
\salt\Field
... list of fields
\salt\Model
this objectregisterId(string $fieldName) : \salt\Model
registerTableName(string $table) : \salt\Model
string
the table name that will be used in query generation
\salt\Model
this 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