class UnitOfWork implements ObjectContainerInterface (View source)

ID generator using PHP uniqid function

Constants

KEY_OPERATION

Managed object pending operation

KEY_OBJECT

Managed object data

KEY_IDENTITY

Object initial identity

OPERATION_INSERT

Store a new object

OPERATION_UPDATE

Update already existing object

OPERATION_REMOVE

Methods

__construct()

No description

insert($object)

No description

update($object)

No description

remove($object)

No description

attach(object $object)

Make the given object contained in the interface implementation instance.

detach(object $object)

Forget object

clear($full)

No description

contains(object $object)

Indicates if the interface implementation instance contains the given object

getTasks()

No description

setObjectIdentity($object, $id)

No description

notManagedException($classOrObject)

No description

Details

__construct()

insert($object)

Parameters

$object

update($object)

Parameters

$object

remove($object)

Parameters

$object

attach(object $object)

Make the given object contained in the interface implementation instance.

Parameters

object $object Object to attach to container

detach(object $object)

Forget object

Parameters

object $object Object to forget

clear($full)

Parameters

$full

contains(object $object)

Indicates if the interface implementation instance contains the given object

Parameters

object $object Object to check

getTasks()

setObjectIdentity($object, $id)

Parameters

$object
$id

protected notManagedException($classOrObject)

Parameters

$classOrObject