SproutCMS

This is the code documentation for the SproutCMS project

class Event_Subject

Kohana event subject. Uses the SPL observer pattern.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends Event_Subject {
    
    /**
    * Attach an observer to the object.
    **/
    public function attach (Event_Observer $obj) {
        // Method code goes here
    }
    
    /**
    * Detach an observer from the object.
    **/
    public function detach (Event_Observer $obj) {
        // Method code goes here
    }
    
    /**
    * Notify all attached observers of a new message.
    **/
    public function notify (mixed $message) {
        // Method code goes here
    }
    
}
?>