# Source for file Interface.php

Documentation is available at Interface.php

1. <?php
2. /*
3. * $Id: Interface.php 1976 2007-07-11 22:03:47Z zYne $
4. *
5. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
8. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
9. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
10. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
11. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
12. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
13. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
15. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16. *
17. * This software consists of voluntary contributions made by many individuals
18. * and is licensed under the LGPL. For more information, see
19. * <http://www.phpdoctrine.com>.
20. */
21. Doctrine::autoload('Doctrine_EventListener_Interface');
22. /**
23. * Doctrine_EventListener all event listeners extend this base class
24. * the empty methods allow child classes to only implement the methods they need to implement
25. *
26. *
27. * @author Konsta Vesterinen <kvesteri@cc.hut.fi>
28. * @package Doctrine
29. * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
30. * @category Object Relational Mapping
31. * @link www.phpdoctrine.com
32. * @since 1.0
33. * @version $Revision: 1976 $
34. */
35. interface Doctrine_EventListener_Interface
36. {
37. public function preTransactionCommit(Doctrine_Event $event);
38. public function postTransactionCommit(Doctrine_Event $event);
40. public function preTransactionRollback(Doctrine_Event $event);
41. public function postTransactionRollback(Doctrine_Event $event);
43. public function preTransactionBegin(Doctrine_Event $event);
44. public function postTransactionBegin(Doctrine_Event $event);
46. public function postConnect(Doctrine_Event $event);
47. public function preConnect(Doctrine_Event $event);
49. public function preQuery(Doctrine_Event $event);
50. public function postQuery(Doctrine_Event $event);
52. public function prePrepare(Doctrine_Event $event);
53. public function postPrepare(Doctrine_Event $event);
55. public function preExec(Doctrine_Event $event);
56. public function postExec(Doctrine_Event $event);
58. public function preError(Doctrine_Event $event);
59. public function postError(Doctrine_Event $event);
61. public function preFetch(Doctrine_Event $event);
62. public function postFetch(Doctrine_Event $event);
64. public function preFetchAll(Doctrine_Event $event);
65. public function postFetchAll(Doctrine_Event $event);
67. public function preStmtExecute(Doctrine_Event $event);
68. public function postStmtExecute(Doctrine_Event $event);
69. }