public static function createFromAssessmentItemRef(AssessmentItemRef $assessmentItemRef)
    {
        $identifier = $assessmentItemRef->getIdentifier();
        $href = $assessmentItemRef->getHref();
        $compactRef = new static($identifier, $href);
        $compactRef->setBranchRules($assessmentItemRef->getBranchRules());
        $compactRef->setCategories($assessmentItemRef->getCategories());
        $compactRef->setFixed($assessmentItemRef->isFixed());
        $compactRef->setItemSessionControl($assessmentItemRef->getItemSessionControl());
        $compactRef->setTimeLimits($assessmentItemRef->getTimeLimits());
        $compactRef->setPreConditions($assessmentItemRef->getPreConditions());
        $compactRef->setRequired($assessmentItemRef->isRequired());
        $compactRef->setTemplateDefaults($assessmentItemRef->getTemplateDefaults());
        $compactRef->setWeights($assessmentItemRef->getWeights());

        return $compactRef;
    }
public static function createFromAssessmentItemRef(AssessmentItemRef $assessmentItemRef)
    {
        $identifier = $assessmentItemRef->getIdentifier();
        $href = $assessmentItemRef->getHref();
        $compactRef = new static($identifier, $href);
        $compactRef->setBranchRules($assessmentItemRef->getBranchRules());
        $compactRef->setCategories($assessmentItemRef->getCategories());
        $compactRef->setFixed($assessmentItemRef->isFixed());
        $compactRef->setItemSessionControl($assessmentItemRef->getItemSessionControl());
        $compactRef->setTimeLimits($assessmentItemRef->getTimeLimits());
        $compactRef->setPreConditions($assessmentItemRef->getPreConditions());
        $compactRef->setRequired($assessmentItemRef->isRequired());
        $compactRef->setTemplateDefaults($assessmentItemRef->getTemplateDefaults());
        $compactRef->setWeights($assessmentItemRef->getWeights());

        return $compactRef;
    }
public static function createFromAssessmentItemRef ( AssessmentItemRef $ assessmentItemRef ) { $ identifier = $ assessmentItemRef -> getIdentifier ( ) ; $ href = $ assessmentItemRef -> getHref ( ) ; $ compactRef = new static ( $ identifier , $ href ) ; $ compactRef -> setBranchRules ( $ assessmentItemRef -> getBranchRules ( ) ) ; $ compactRef -> setCategories ( $ assessmentItemRef -> getCategories ( ) ) ; $ compactRef -> setFixed ( $ assessmentItemRef -> isFixed ( ) ) ; $ compactRef -> setItemSessionControl ( $ assessmentItemRef -> getItemSessionControl ( ) ) ; $ compactRef -> setTimeLimits ( $ assessmentItemRef -> getTimeLimits ( ) ) ; $ compactRef -> setPreConditions ( $ assessmentItemRef -> getPreConditions ( ) ) ; $ compactRef -> setRequired ( $ assessmentItemRef -> isRequired ( ) ) ; $ compactRef -> setTemplateDefaults ( $ assessmentItemRef -> getTemplateDefaults ( ) ) ; $ compactRef -> setWeights ( $ assessmentItemRef -> getWeights ( ) ) ; return $ compactRef ; }
Create a new ExtendedAssessmentItemRef object from an AssessmentItemRef object.

@param \qtism\data\AssessmentItemRef $assessmentItemRef An AssessmentItemRef object.
@return \qtism\data\ExtendedAssessmentItemRef An ExtendedAssessmentItemRef object.
Create a new ExtendedAssessmentItemRef object from an AssessmentItemRef object .