public function getBaseType() { $returnValue = parent::getBaseType(); $response = $this->getResponse(); if (!is_null($response)) { $authorizedBaseType = array('string', 'integer', 'float'); $baseType = strtolower($response->getAttributeValue('baseType')); if (in_array($baseType, $authorizedBaseType)) { $returnValue = $baseType; } } return $returnValue; }
protected function getUsedAttributes() { return array_merge(parent::getUsedAttributes(), array('oat\\taoQtiItem\\model\\qti\\attribute\\Shuffle', 'oat\\taoQtiItem\\model\\qti\\attribute\\Required')); }