VenueCB.php 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. class VenueCB extends ActiveRecord\Model
  3. {
  4. static $table_name = 'venues';
  5. static $before_save;
  6. static $before_update;
  7. static $before_create;
  8. static $before_validation;
  9. static $before_destroy = 'before_destroy_using_string';
  10. static $after_destroy = array('after_destroy_one', 'after_destroy_two');
  11. static $after_create;
  12. // DO NOT add a static $after_construct for this. we are testing
  13. // auto registration of callback with this
  14. public function after_construct() {}
  15. public function non_generic_after_construct() {}
  16. public function after_destroy_one() {}
  17. public function after_destroy_two() {}
  18. public function before_destroy_using_string() {}
  19. public function before_update_halt_execution()
  20. {
  21. return false;
  22. }
  23. public function before_destroy_halt_execution()
  24. {
  25. return false;
  26. }
  27. public function before_create_halt_execution()
  28. {
  29. return false;
  30. }
  31. public function before_validation_halt_execution()
  32. {
  33. return false;
  34. }
  35. }
  36. ?>