/** * Constructor method * * Instantiate in getObject() static method * Singleton pattern */ protected function __construct() { parent::__construct(); // set essence $this->essence = "list"; // append path $this->cache_path .= $this->essence . "/"; // bind actions if ($this->settings["Status_" . $this->essence]) { $this->core->event->bind($this, array("updateCatalogue" => "dropCatalogueCache")); $this->core->event->bind($this, array("dropCatalogue" => "dropCatalogueCache")); $this->core->event->bind($this, array("updateSubdivision" => "dropSubdivisionCache")); $this->core->event->bind($this, array("dropSubdivision" => "dropSubdivisionCache")); $this->core->event->bind($this, array("updateSubClass" => "dropSubClassCache")); $this->core->event->bind($this, array("dropSubClass" => "dropSubClassCache")); $this->core->event->bind($this, array("updateClass" => "dropClassCache")); $this->core->event->bind($this, array("dropClass" => "dropClassCache")); $this->core->event->bind($this, array("updateClassTemplate" => "dropClassTemplateCache")); $this->core->event->bind($this, array("dropClassTemplate" => "dropClassTemplateCache")); $this->core->event->bind($this, array("addMessage" => "dropMessageCache")); $this->core->event->bind($this, array("updateMessage" => "dropMessageCache")); $this->core->event->bind($this, array("dropMessage" => "dropMessageCache")); $this->core->event->bind($this, array("checkMessage" => "dropMessageCache")); $this->core->event->bind($this, array("uncheckMessage" => "dropMessageCache")); $this->core->event->bind($this, array("addComment" => "dropMessageCache")); $this->core->event->bind($this, array("updateComment" => "dropMessageCache")); $this->core->event->bind($this, array("dropComment" => "dropMessageCache")); } }
/** * Constructor method * * Instantiate in getObject() static method * Singleton pattern */ protected function __construct() { parent::__construct(); // set essence $this->essence = "function"; // append path $this->cache_path .= $this->essence . "/"; /* // bind actions $this->core->event->bind( $this, array("addCatalogue" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("updateCatalogue" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("dropCatalogue" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("addSubdivision" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("updateSubdivision" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("dropSubdivision" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("addSubClass" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("updateSubClass" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("dropSubClass" => "dropCatalogueCache") ); $this->core->event->bind( $this, array("addClass" => "dropClassCache") ); $this->core->event->bind( $this, array("updateClass" => "dropClassCache") ); $this->core->event->bind( $this, array("dropClass" => "dropClassCache") ); $this->core->event->bind( $this, array("addClassTemplate" => "dropClassTemplateCache") ); $this->core->event->bind( $this, array("updateClassTemplate" => "dropClassTemplateCache") ); $this->core->event->bind( $this, array("dropClassTemplate" => "dropClassTemplateCache") ); $this->core->event->bind( $this, array("addMessage" => "dropMessageCache") ); $this->core->event->bind( $this, array("updateMessage" => "dropMessageCache") ); $this->core->event->bind( $this, array("dropMessage" => "dropMessageCache") ); $this->core->event->bind( $this, array("checkMessage" => "dropMessageCache") ); $this->core->event->bind( $this, array("uncheckMessage" => "dropMessageCache") ); */ }