/** * Actions done when a typo is deleted from the database * * @return nothing **/ function cleanDBonPurge() { //Clean typology_item $temp1 = new PluginTypologyTypology_Item(); $temp1->deleteByCriteria(array('plugin_typology_typologies_id' => $this->fields['id'])); //Clean typologycriteria $temp2 = new PluginTypologyTypologyCriteria(); $temp2->deleteByCriteria(array('plugin_typology_typologies_id' => $this->fields['id'])); //Clean rule Rule::cleanForItemAction($this); }