module_id = $module_id; $this->cached_header = $cached_header; $this->plugin_conf = &$plugin_conf; $this->module_manager = &$module_manager; $this->init(); } /** * Module initializer. Called when the module is first instantiated. * The default implementation does nothing. Override it in a subclass to * specify some sort of start-up behaviour. * * @return void */ function init() { //Should be overridden in a sub-class. } /** * Called when the module is activated. * Should be overridden in a sub-class. * * @return void */ function activated() { //Should be overridden in a sub-class. } /** * Called when the module is deactivated. * Should be overridden in a sub-class. * * @return void */ function deactivated() { //Should be overridden in a sub-class. } /** * Called when BLC itself is activated. * Usually this method just calls activated(), but subclasses could override it for special handling. */ function plugin_activated() { $this->activated(); } }