public function getComponents()
 {
     $comp = array_merge(parent::getComponents()->getArrayCopy(), $this->getTemplateDefaults()->getArrayCopy(), $this->getVariableMappings()->getArrayCopy(), $this->getWeights()->getArrayCopy());
     return new QtiComponentCollection($comp);
 }
Beispiel #2
0
 /**
  * @see \qtism\data\SectionPart::getComponents()
  */
 public function getComponents()
 {
     $comp = array_merge(parent::getComponents()->getArrayCopy(), $this->getRubricBlocks()->getArrayCopy(), $this->getSectionParts()->getArrayCopy());
     if ($this->getSelection() !== null) {
         $comp[] = $this->getSelection();
     }
     if ($this->getOrdering() !== null) {
         $comp[] = $this->getOrdering();
     }
     return new QtiComponentCollection($comp);
 }