Пример #1
0
 /**
  * @see \qtism\data\state\VariableDeclaration::getComponents()
  */
 public function getComponents()
 {
     $comp = parent::getComponents()->getArrayCopy();
     if ($this->getAreaMapping() !== null) {
         $comp[] = $this->getAreaMapping();
     }
     if ($this->getMapping() !== null) {
         $comp[] = $this->getMapping();
     }
     if ($this->getCorrectResponse() !== null) {
         $comp[] = $this->getCorrectResponse();
     }
     return new QtiComponentCollection($comp);
 }
Пример #2
0
 /**
  * @see \qtism\data\state\VariableDeclaration::getComponents()
  */
 public function getComponents()
 {
     $comp = parent::getComponents()->getArrayCopy();
     if ($this->getLookupTable() !== null) {
         $comp[] = $this->getLookupTable();
     }
     return new QtiComponentCollection($comp);
 }