PersistentObject: ezcPersistentManualGenerator
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentManualGenerator
|
This identifier generator does not generate any ID's. Instead the user must manually assign an ID when the object is saved. [
source]
This is useful don't want any automatic id generation.
Parents
ezcPersistentIdentifierGenerator
|
--ezcPersistentManualGenerator
Method Summary
|
public void |
checkPersistence(
$def, $db, $state )
Returns true if the object is persistent already. |
|
public int |
postSave(
$def, $db )
Returns the value of the generated identifier for the new object. |
|
public void |
preSave(
$def, $db, $q )
Sets the correct id on the insert query. |
Inherited Methods
From
ezcPersistentIdentifierGenerator :
Methods
checkPersistence
Returns true if the object is persistent already.
Called in the beginning of the save process.
Persistent objects that are being saved must not exist in the database already.
Parameters
Redefinition of
postSave
Returns the value of the generated identifier for the new object.
Called right after execution of the insert query.
Parameters
Redefinition of
preSave
Sets the correct id on the insert query.
Parameters
Redefinition of
Last updated: Tue, 27 May 2008