/** * 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") ); */ }
/** * Constructor method * * Instantiate in getObject() static method * Singleton pattern */ protected function __construct() { parent::__construct(); // set essence $this->essence = "browse"; // 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("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" => "dropSubdivisionCache")); $this->core->event->bind($this, array("updateSubClass" => "dropSubClassCache")); $this->core->event->bind($this, array("dropSubClass" => "dropSubClassCache")); $this->core->event->bind($this, array("updateTemplate" => "dropTemplateCache")); $this->core->event->bind($this, array("dropTemplate" => "dropTemplateCache")); } }
/** * Set nocache marks in component fields * * @param array component data * * @param int counted nocache block */ public function nocacheStore(&$data) { // parsed values with need sequence $this->nocacheStoreKeys = array("FormPrefix", "RecordTemplate", "FormSuffix"); // call parent return parent::nocacheStore($data); }