public static function isAllowed($type){
        return (!empty($type) && (in_array($type, self::$allowedTypes))) || self::isAssessmentItem($type) || self::isAssessmentTest($type);
    }
public static function isAllowed($type){
        return (!empty($type) && (in_array($type, self::$allowedTypes))) || self::isAssessmentItem($type) || self::isAssessmentTest($type);
    }
public static function isAllowed ( $ type ) { return ( ! empty ( $ type ) && ( in_array ( $ type , self :: $ allowedTypes ) ) ) || self :: isAssessmentItem ( $ type ) || self :: isAssessmentTest ( $ type ) ; }
Check if the given type is allowed as a QTI Resource

@param  string $type
@return boolean
Check if the given type is allowed as a QTI Resource