EventListener.php 4.11 KB
Newer Older
doctrine's avatar
doctrine committed
1
<?php
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 *  $Id$
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * This software consists of voluntary contributions made by many individuals
 * and is licensed under the LGPL. For more information, see
 * <http://www.phpdoctrine.com>.
 */
doctrine's avatar
doctrine committed
21
Doctrine::autoload('Doctrine_EventListener_Interface');
doctrine's avatar
doctrine committed
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
doctrine's avatar
doctrine committed
25 26
 *
 *
lsmith's avatar
lsmith committed
27 28 29 30 31 32 33 34
 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
 * @package     Doctrine
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
 * @category    Object Relational Mapping
 * @link        www.phpdoctrine.com
 * @since       1.0
 * @version     $Revision$
 */
lsmith's avatar
lsmith committed
35 36 37 38 39 40
class Doctrine_EventListener implements Doctrine_EventListener_Interface
{
    public function onLoad(Doctrine_Record $record)
    { }
    public function onPreLoad(Doctrine_Record $record)
    { }
doctrine's avatar
doctrine committed
41

lsmith's avatar
lsmith committed
42 43
    public function onSleep(Doctrine_Record $record)
    { }
doctrine's avatar
doctrine committed
44

lsmith's avatar
lsmith committed
45 46
    public function onWakeUp(Doctrine_Record $record)
    { }
doctrine's avatar
doctrine committed
47

lsmith's avatar
lsmith committed
48 49 50 51 52
    public function onEvict(Doctrine_Record $record)
    { }
    public function onPreEvict(Doctrine_Record $record)
    { }

zYne's avatar
zYne committed
53
    public function preClose(Doctrine_Event $event)
54
    { }
zYne's avatar
zYne committed
55
    public function postClose(Doctrine_Event $event)
56 57 58
    { }

    public function onCollectionDelete(Doctrine_Collection $collection)
lsmith's avatar
lsmith committed
59
    { }
60
    public function onPreCollectionDelete(Doctrine_Collection $collection)
lsmith's avatar
lsmith committed
61 62 63 64 65
    { }

    public function onOpen(Doctrine_Connection $connection)
    { }

66
    public function preTransactionCommit(Doctrine_Event $event)
zYne's avatar
zYne committed
67
    { }
68
    public function postTransactionCommit(Doctrine_Event $event)
zYne's avatar
zYne committed
69 70
    { }

71
    public function preTransactionRollback(Doctrine_Event $event)
lsmith's avatar
lsmith committed
72
    { }
73
    public function postTransactionRollback(Doctrine_Event $event)
lsmith's avatar
lsmith committed
74 75
    { }

76
    public function preTransactionBegin(Doctrine_Event $event)
lsmith's avatar
lsmith committed
77
    { }
78
    public function postTransactionBegin(Doctrine_Event $event)
lsmith's avatar
lsmith committed
79 80
    { }

zYne's avatar
zYne committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96

    public function preSavepointCommit(Doctrine_Event $event)
    { }
    public function postSavepointCommit(Doctrine_Event $event)
    { }

    public function preSavepointRollback(Doctrine_Event $event)
    { }
    public function postSavepointRollback(Doctrine_Event $event)
    { }

    public function preSavepointCreate(Doctrine_Event $event)
    { }
    public function postSavepointCreate(Doctrine_Event $event)
    { }

97
    public function postConnect(Doctrine_Event $event)
lsmith's avatar
lsmith committed
98
    { }
99
    public function preConnect(Doctrine_Event $event)
100
    { }
101 102

    public function preQuery(Doctrine_Event $event)
103
    { }
104
    public function postQuery(Doctrine_Event $event)
lsmith's avatar
lsmith committed
105 106
    { }

107
    public function prePrepare(Doctrine_Event $event)
lsmith's avatar
lsmith committed
108
    { }
109
    public function postPrepare(Doctrine_Event $event)
110 111
    { }

112
    public function preExec(Doctrine_Event $event)
113
    { }
114
    public function postExec(Doctrine_Event $event)
115
    { }
116 117

    public function preFetch(Doctrine_Event $event)
118
    { }
119
    public function postFetch(Doctrine_Event $event)
120 121
    { }

122
    public function preFetchAll(Doctrine_Event $event)
123
    { }
124
    public function postFetchAll(Doctrine_Event $event)
125 126
    { }

127
    public function preExecute(Doctrine_Event $event)
128
    { }
129
    public function postExecute(Doctrine_Event $event)
lsmith's avatar
lsmith committed
130
    { }
zYne's avatar
zYne committed
131
}