Show
Ignore:
Timestamp:
03/24/2008 09:53:27 AM (8 months ago)
Author:
Shadowhand
Message:

Follow up to r2329, minor cleanups and adding i18n/en_US/event.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Event_Subject.php

    r2329 r2330  
    1212abstract class Event_Subject implements SplSubject { 
    1313 
    14         // Attach of subject listeners 
     14        // Attached subject listeners 
    1515        protected $listeners = array(); 
    1616 
    1717        /** 
    18          * Attach an observer to the Eventable object. 
     18         * Attach an observer to the object. 
    1919         * 
    2020         * @chainable 
     
    2525        { 
    2626                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)); 
    2828 
    2929                // Add a new listener 
     
    3434 
    3535        /** 
    36          * Detach an observer from the the Eventable object. 
     36         * Detach an observer from the object. 
    3737         * 
    3838         * @chainable 
     
    4343        { 
    4444                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)); 
    4646 
    4747                // Notify the observer of removal 
     
    7171        } 
    7272 
    73 } // End Eventable 
     73} // End Event Subject