PHP Interface Newscoop\Service\IAuditService

Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
changed ( Newscoop\Entity\Entity $entity ) Audit the change of a entity.
created ( Newscoop\Entity\Entity $entity ) Audit the creation of a new entity.
removed ( Newscoop\Entity\Entity $entity ) Audit the remove of a entity.

Method Details

changed() public method

The audit should be called before the persistance of the entity.
public changed ( Newscoop\Entity\Entity $entity )
$entity Newscoop\Entity\Entity The entity to be audited, not null.

created() public method

The audit should be called after the persistance of the entity.
public created ( Newscoop\Entity\Entity $entity )
$entity Newscoop\Entity\Entity The entity to be audited, not null.

removed() public method

The audit should be called before the removal of the entity.
public removed ( Newscoop\Entity\Entity $entity )
$entity Newscoop\Entity\Entity The entity to be audited, not null.