private function extractObject(Element $element){
        if($element instanceof Container){
            foreach($element->getElements('oat\taoQtiItem\model\qti\QtiObject') as $object){
                $this->loadObjectAssets($object);
            }
        }
        if($element instanceof QtiObject){
            $this->loadObjectAssets($element);
        }
    }
private function extractObject(Element $element){
        if($element instanceof Container){
            foreach($element->getElements('oat\taoQtiItem\model\qti\QtiObject') as $object){
                $this->loadObjectAssets($object);
            }
        }
        if($element instanceof QtiObject){
            $this->loadObjectAssets($element);
        }
    }
private function extractObject ( Element $ element ) { if ( $ element instanceof Container ) { foreach ( $ element -> getElements ( 'oat\taoQtiItem\model\qti\QtiObject' ) as $ object ) { $ this -> loadObjectAssets ( $ object ) ; } } if ( $ element instanceof QtiObject ) { $ this -> loadObjectAssets ( $ element ) ; } }
Lookup and extract assets from a QTI Object
@param Element $element the element itself or a container of the target element
Lookup and extract assets from a QTI Object