public function validateCurrentIdentifier($collisionFree = false){

        $returnValue = false;

        if(empty($this->identifier)){
            //empty identifier, nothing to check
            $returnValue = true;
        }else{
            $returnValue = $this->setIdentifier($this->identifier, $collisionFree);
        }

        return $returnValue;
    }
public function validateCurrentIdentifier($collisionFree = false){

        $returnValue = false;

        if(empty($this->identifier)){
            //empty identifier, nothing to check
            $returnValue = true;
        }else{
            $returnValue = $this->setIdentifier($this->identifier, $collisionFree);
        }

        return $returnValue;
    }
public function validateCurrentIdentifier ( $ collisionFree = false ) { $ returnValue = false ; if ( empty ( $ this -> identifier ) ) { //empty identifier, nothing to check $ returnValue = true ; } else { $ returnValue = $ this -> setIdentifier ( $ this -> identifier , $ collisionFree ) ; } return $ returnValue ; }
Validate if the current identifier of the qti element does not collide with another one's
CollisionFree option allows to ensure that no collision subsides after the fonction call.
It indeed ensures that that the identifier becomes unique if it collides with another one's.

@param boolean $collisionFree
@return boolean
Validate if the current identifier of the qti element does not collide with another one s CollisionFree option allows to ensure that no collision subsides after the fonction call . It indeed ensures that that the identifier becomes unique if it collides with another one s .