/** * @see CommonDBTM::cleanDBonPurge() * * @since version 0.83.1 **/ function cleanDBonPurge() { $class = new KnowbaseItem_User(); $class->cleanDBonItemDelete($this->getType(), $this->fields['id']); $class = new Entity_KnowbaseItem(); $class->cleanDBonItemDelete($this->getType(), $this->fields['id']); $class = new Group_KnowbaseItem(); $class->cleanDBonItemDelete($this->getType(), $this->fields['id']); $class = new KnowbaseItem_Profile(); $class->cleanDBonItemDelete($this->getType(), $this->fields['id']); }
function cleanDBonPurge() { global $DB; $gpr = new ProfileRight(); $gpr->cleanDBonItemDelete($this->getType(), $this->fields['id']); $gpu = new Profile_User(); $gpu->cleanDBonItemDelete($this->getType(), $this->fields['id']); Rule::cleanForItemAction($this); // PROFILES and UNIQUE_PROFILE in RuleMailcollector Rule::cleanForItemCriteria($this, 'PROFILES'); Rule::cleanForItemCriteria($this, 'UNIQUE_PROFILE'); $gki = new KnowbaseItem_Profile(); $gki->cleanDBonItemDelete($this->getType(), $this->fields['id']); $gr = new Profile_Reminder(); $gr->cleanDBonItemDelete($this->getType(), $this->fields['id']); }
function cleanDBonPurge() { global $DB; $query = "DELETE\n FROM `glpi_profiles_users`\n WHERE `profiles_id` = '" . $this->fields['id'] . "'"; $DB->query($query); Rule::cleanForItemAction($this); // PROFILES and UNIQUE_PROFILE in RuleMailcollector Rule::cleanForItemCriteria($this, 'PROFILES'); Rule::cleanForItemCriteria($this, 'UNIQUE_PROFILE'); $gki = new KnowbaseItem_Profile(); $gki->cleanDBonItemDelete($this->getType(), $this->fields['id']); $gr = new Profile_Reminder(); $gr->cleanDBonItemDelete($this->getType(), $this->fields['id']); }