protected function unmarshallChildrenKnown(DOMElement $element, QtiComponentCollection $children)
    {
        if (($numberRepeats = $this->getDOMElementAttributeAs($element, 'numberRepeats')) !== null) {

            if (Format::isInteger($numberRepeats)) {
                $numberRepeats = intval($numberRepeats);
            }

            $object = new Repeat($children, $numberRepeats);

            return $object;
        } else {
            $msg = "The mandatory attribute 'numberRepeats' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown(DOMElement $element, QtiComponentCollection $children)
    {
        if (($numberRepeats = $this->getDOMElementAttributeAs($element, 'numberRepeats')) !== null) {

            if (Format::isInteger($numberRepeats)) {
                $numberRepeats = intval($numberRepeats);
            }

            $object = new Repeat($children, $numberRepeats);

            return $object;
        } else {
            $msg = "The mandatory attribute 'numberRepeats' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown ( DOMElement $ element , QtiComponentCollection $ children ) { if ( ( $ numberRepeats = $ this -> getDOMElementAttributeAs ( $ element , 'numberRepeats' ) ) !== null ) { if ( Format :: isInteger ( $ numberRepeats ) ) { $ numberRepeats = intval ( $ numberRepeats ) ; } $ object = new Repeat ( $ children , $ numberRepeats ) ; return $ object ; } else { $ msg = "The mandatory attribute 'numberRepeats' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a QTI repeat operator element into a Repeat object.

@param \DOMElement $element The repeat element to unmarshall.
@param \qtism\data\QtiComponentCollection $children A collection containing the child Expression objects composing the Operator.
@return \qtism\data\QtiComponent A Repeat object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException
Unmarshall a QTI repeat operator element into a Repeat object .