/var/www/(Del)gepgroup.hk/php-activerecord/test/models/VenueCB.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
class VenueCB extends ActiveRecord\Model
{
    static 
$table_name 'venues';
    static 
$before_save;
    static 
$before_update;
    static 
$before_create;
    static 
$before_validation;
    static 
$before_destroy 'before_destroy_using_string';
    static 
$after_destroy = array('after_destroy_one''after_destroy_two');
    static 
$after_create;

    
// DO NOT add a static $after_construct for this. we are testing
    // auto registration of callback with this
    
public function after_construct() {}

    public function 
non_generic_after_construct() {}

    public function 
after_destroy_one() {}
    public function 
after_destroy_two() {}

    public function 
before_destroy_using_string() {}

    public function 
before_update_halt_execution()
    {
        return 
false;
    }

    public function 
before_destroy_halt_execution()
    {
        return 
false;
    }

    public function 
before_create_halt_execution()
    {
        return 
false;
    }

    public function 
before_validation_halt_execution()
    {
        return 
false;
    }
}
?>