SproutCMS

This is the code documentation for the SproutCMS project

class Event_Observer

Kohana event observer. Uses the SPL observer pattern.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends Event_Observer {
    
    /**
    * Updates the observer subject with a new caller.
    **/
    public function update (Event_Subject $caller) {
        // Method code goes here
    }
    
    /**
    * Detaches this observer from the subject.
    **/
    public function remove () {
        // Method code goes here
    }
    
    /**
    * Notify the observer of a new message. This function must be defined in
    * all observers and must take exactly one parameter of any type.
    **/
    public function notify (mixed $message) {
        // Method code goes here
    }
    
    /**
    * Initializes a new observer and attaches the subject as the caller.
    **/
    public function __construct (Event_Subject $caller) {
        // Method code goes here
    }
    
}
?>