/** * @see \qtism\data\AssessmentItemRef::getComponents() */ public function getComponents() { $components = array_merge(parent::getComponents()->getArrayCopy(), $this->getResponseDeclarations()->getArrayCopy(), $this->getOutcomeDeclarations()->getArrayCopy(), $this->getTemplateDeclarations()->getArrayCopy()); if ($this->hasTemplateProcessing() === true) { $components[] = $this->getResponseProcessing(); } if ($this->hasResponseProcessing() === true) { $components[] = $this->getResponseProcessing(); } $components = array_merge($components, $this->getModalFeedbackRules()->getArrayCopy()); return new QtiComponentCollection($components); }
public function getComponents() { $components = array_merge(parent::getComponents()->getArrayCopy(), $this->getResponseDeclarations()->getArrayCopy(), $this->getOutcomeDeclarations()->getArrayCopy()); if ($this->hasResponseProcessing() === true) { $components[] = $this->getResponseProcessing(); } return new QtiComponentCollection($components); }