Changeset 2330 for trunk/system/libraries/Event_Subject.php
- Timestamp:
- 03/24/2008 09:53:27 AM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Event_Subject.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Event_Subject.php
r2329 r2330 12 12 abstract class Event_Subject implements SplSubject { 13 13 14 // Attach ofsubject listeners14 // Attached subject listeners 15 15 protected $listeners = array(); 16 16 17 17 /** 18 * Attach an observer to the Eventableobject.18 * Attach an observer to the object. 19 19 * 20 20 * @chainable … … 25 25 { 26 26 if ( ! ($obj instanceof Event_Observer)) 27 throw new Kohana_Exception('eventable.invalid_observer' );27 throw new Kohana_Exception('eventable.invalid_observer', get_class($obj), get_class($this)); 28 28 29 29 // Add a new listener … … 34 34 35 35 /** 36 * Detach an observer from the the Eventableobject.36 * Detach an observer from the object. 37 37 * 38 38 * @chainable … … 43 43 { 44 44 if ( ! ($obj instanceof Event_Observer)) 45 throw new Kohana_Exception('eventable.invalid_observer' );45 throw new Kohana_Exception('eventable.invalid_observer', get_class($obj), get_class($this)); 46 46 47 47 // Notify the observer of removal … … 71 71 } 72 72 73 } // End Event able73 } // End Event Subject
