API documentation :: Docs For Class arbitModelBase
Packages:Interfaces:
Classes:
|
Core::Model::arbitModelBaseClass arbitModelBaseBasic model class, provifing the default methods for getters and setters for model classes. Basic model class, provifing the default methods for getters and setters for model classes. arbitBaseStruct | --arbitModelBaseAuthor(s):
Descendants
Member Variables
Method Summary
Inherited Methods
Methods__construct
void
__construct(
[mixed
$id
= null] )
Create model from identifier If the identifier of the model is known from somewhere in the application you may set it directly here instead of searching for some value. Create model from identifier If the identifier of the model is known from somewhere in the application you may set it directly here instead of searching for some value. Parameters:
Redefined in descendants as:
create
void
create(
)
Method called to create a new instance in the backend. Method called to create a new instance in the backend. Method called when the model should be created in the backend the first time. This will normally throw an error if a model with the same identifier already exists in the backend. Redefined in descendants as:
getModifiedValues
array
getModifiedValues(
)
Return modified values Return an array with all values which has been modified on the current model instance, with their new values. Return modified values Return an array with all values which has been modified on the current model instance, with their new values. storeChanges
void
storeChanges(
)
Method called to store changes to the model. Method called to store changes to the model. Method called to store changes in the model to the backend. The method should only modify the backend data, if something really has been changed in the model. Use the __set() method, which should wrap all write access to the model, to remember write access. Redefined in descendants as:
toUserModel
mixed
toUserModel(
mixed
$property
)
Transform value to user model(s) Transform a user ID or an array with user IDs in the a user mdoel, or an array of user models. Transform value to user model(s) Transform a user ID or an array with user IDs in the a user mdoel, or an array of user models. Parameters:
transformUserProperties
array
transformUserProperties(
$data
)
Transform all user properties Transform all iser IDs in the declared user properties into user models. Transform all user properties Transform all iser IDs in the declared user properties into user models. If the model has a revisions property, the transformation will also be performed for all revisions of the model. Parameters:
Documentation generated on Mon, 05 Apr 2010 14:01:38 +0200 by phpDocumentor 1.4.3
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||