Kajona\System\System\Model

Top-level class for all model-classes.

Please be aware that all logic located in this class will be moved to Root. This means that this
class will become useless. It will remain for API-compatibility but without any logic.

Synopsis

class Model extends Root {
}

Hierarchy

Tasks

Line Task
41+ : with php5.4, ths could be moved to traits
68+ : with php5.4, ths could be moved to traits
93+ : with php5.4, ths could be moved to traits
639+ move to OrmObjectupdate completely
913+ find ussages and make private
1542+ : remove first params, is always the current systemid. maybe mark as protected, currently only called by the test-classes

Constants

Name Value
STR_MODULE_ANNOTATION "@module"
STR_MODULEID_ANNOTATION "@moduleId"
STR_SORTMANAGER_ANNOTATION "@sortManager"

Members

protected

Methods

public

Inherited from Kajona\System\System\Root

protected

  • getObjLang() — Returns the current Text-Object Instance
  • initObjectInternal() — InitObjectInternal is called during an objects instantiation.
  • onInsertToDb() — Overwrite this method if you want to trigger additional commands during the insert of an object, e.g. to create additional objects / relations
  • updateStateToDb() — Called whenever a update-request was fired.
  • updateSystemrecord() — Updates the current record to the database and saves all relevant fields.

public