http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 7 LOC: 93 Statements: 0

Source file Statements Methods Total coverage
Abstract.php - 0.0% 0.0%
 
1
<?php
2
/**
3
 * Xyster Framework
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the new BSD license that is bundled
8
 * with this package in the file LICENSE.txt.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://www.opensource.org/licenses/bsd-license.php
11
 * If you did not receive a copy of the license and are unable to
12
 * obtain it through the world-wide-web, please send an email
13
 * to xyster@devweblog.org so we can send you a copy immediately.
14
 *
15
 * @category  Xyster
16
 * @package   Xyster_Orm
17
 * @copyright Copyright (c) 2007 Irrational Logic (http://devweblog.org)
18
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
19
 * @version   $Id: Abstract.php 116 2007-10-07 17:03:52Z doublecompile $
20
 */
21
/**
22
 * The base ORM plugin object
23
 *
24
 * @category  Xyster
25
 * @package   Xyster_Orm
26
 * @copyright Copyright (c) 2007 Irrational Logic (http://devweblog.org)
27
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
28
 */
29
abstract class Xyster_Orm_Plugin_Abstract
30
{
31
    /**
32
     * Called prior to an entity being deleted
33
     *
34
     * @param Xyster_Orm_Entity $entity
35
     */
36
    public function postDelete( Xyster_Orm_Entity $entity )
37
    {
38
    }
39
40
    /**
41
     * Called prior to an entity being inserted
42
     *
43
     * @param Xyster_Orm_Entity $entity
44
     */
45
    public function postInsert( Xyster_Orm_Entity $entity )
46
    {
47
    }
48
49
    /**
50
     * Called after a new entity is loaded with values
51
     *
52
     * @param Xyster_Orm_Entity $entity
53
     */
54
    public function postLoad( Xyster_Orm_Entity $entity )
55
    {
56
    }
57
58
    /**
59
     * Called prior to an entity being updated
60
     *
61
     * @param Xyster_Orm_Entity $entity
62
     */
63
    public function postUpdate( Xyster_Orm_Entity $entity )
64
    {
65
    }
66
67
    /**
68
     * Called prior to an entity being deleted
69
     *
70
     * @param Xyster_Orm_Entity $entity
71
     */
72
    public function preDelete( Xyster_Orm_Entity $entity )
73
    {
74
    }
75
76
    /**
77
     * Called prior to an entity being inserted
78
     *
79
     * @param Xyster_Orm_Entity $entity
80
     */
81
    public function preInsert( Xyster_Orm_Entity $entity )
82
    {
83
    }
84
85
    /**
86
     * Called prior to an entity being updated
87
     *
88
     * @param Xyster_Orm_Entity $entity
89
     */
90
    public function preUpdate( Xyster_Orm_Entity $entity )
91
    {
92
    }
93
}


Report generated at 2007-10-08T19:32:23-05:00