1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?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;
- }
- }
- ?>
|