/** * Have I the right to "purge" the Object * * Default is true and check entity if the objet is entity assign * * @since version 0.85 * * @return booleen **/ function canPurgeItem() { if (!$this->checkEntity()) { return false; } // Can purge an object with Infocom only if can purge Infocom if (InfoCom::canApplyOn($this)) { $infocom = new Infocom(); if ($infocom->getFromDBforDevice($this->getType(), $this->fields['id'])) { return $infocom->canPurge(); } } return true; }