http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 7 LOC: 88 Statements: 0

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


Report generated at 2008-01-20T12:13:38-05:00