You are currently viewing the 1.0 branch api documentation. Switch to 1.1

1.0 Doctrine_AuditLog_Listener

Doctrine AuditLog Listener

Inheritence

Doctrine_AuditLog_Listener  < Doctrine_Record_Listener

Method Details

  • postInsert(( ) $event)

    Post insert event hook which creates the new version record This will only insert a version record if the auditLog is enabled


  • preDelete(( ) $event)

    Pre delete event hook deletes all related versions This will only delete version records if the auditLog is enabled


  • preInsert(( ) $event)

    Pre insert event hook for incrementing version number


  • preUpdate(( ) $event)

    Pre update event hook for inserting new version record This will only insert a version record if the auditLog is enabled


  • (integer) _getNextVersion(( ) $record)

    Get the next version number for the audit log


  • __construct(( ) $auditLog)

    Instantiate AuditLog listener and set the Doctrine_AuditLog instance to the class