CommonDBTM::canPurgeItem PHP Method

canPurgeItem() public method

Default is true and check entity if the objet is entity assign
public canPurgeItem ( ) : booleen
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;
    }
CommonDBTM