1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/Doctrine/EventListener.php

68 lines
2.6 KiB
PHP
Raw Normal View History

2006-05-30 12:42:10 +04:00
<?php
2006-07-05 03:09:48 +04:00
Doctrine::autoload('Doctrine_EventListener_Interface');
2006-05-30 12:42:10 +04:00
/**
* Doctrine_EventListener all event listeners extend this base class
* the empty methods allow child classes to only implement the methods they need to implement
*
*
* @author Konsta Vesterinen
* @package Doctrine ORM
* @url www.phpdoctrine.com
* @license LGPL
* @version 1.0 alpha
*
*/
2006-07-05 03:09:48 +04:00
abstract class Doctrine_EventListener implements Doctrine_EventListener_Interface {
2006-05-30 12:42:10 +04:00
public function onLoad(Doctrine_Record $record) { }
public function onPreLoad(Doctrine_Record $record) { }
public function onSleep(Doctrine_Record $record) { }
public function onWakeUp(Doctrine_Record $record) { }
public function onUpdate(Doctrine_Record $record) { }
public function onPreUpdate(Doctrine_Record $record) { }
public function onCreate(Doctrine_Record $record) { }
public function onPreCreate(Doctrine_Record $record) { }
public function onSave(Doctrine_Record $record) { }
public function onPreSave(Doctrine_Record $record) { }
public function onInsert(Doctrine_Record $record) { }
public function onPreInsert(Doctrine_Record $record) { }
public function onDelete(Doctrine_Record $record) { }
public function onPreDelete(Doctrine_Record $record) { }
public function onEvict(Doctrine_Record $record) { }
public function onPreEvict(Doctrine_Record $record) { }
public function onSaveCascade(Doctrine_Record $record) { }
public function onPreSaveCascade(Doctrine_Record $record) { }
public function onDeleteCascade(Doctrine_Record $record) { }
public function onPreDeleteCascade(Doctrine_Record $record) { }
2006-08-22 03:19:15 +04:00
public function onClose(Doctrine_Connection $connection) { }
public function onPreClose(Doctrine_Connection $connection) { }
2006-05-30 12:42:10 +04:00
2006-08-22 03:19:15 +04:00
public function onOpen(Doctrine_Connection $connection) { }
2006-05-30 12:42:10 +04:00
2006-08-22 03:19:15 +04:00
public function onTransactionCommit(Doctrine_Connection $connection) { }
public function onPreTransactionCommit(Doctrine_Connection $connection) { }
2006-05-30 12:42:10 +04:00
2006-08-22 03:19:15 +04:00
public function onTransactionRollback(Doctrine_Connection $connection) { }
public function onPreTransactionRollback(Doctrine_Connection $connection) { }
2006-05-30 12:42:10 +04:00
2006-08-22 03:19:15 +04:00
public function onTransactionBegin(Doctrine_Connection $connection) { }
public function onPreTransactionBegin(Doctrine_Connection $connection) { }
2006-05-30 12:42:10 +04:00
public function onCollectionDelete(Doctrine_Collection $collection) { }
public function onPreCollectionDelete(Doctrine_Collection $collection) { }
}
2006-05-30 12:42:10 +04:00