models/classes/cat/CatService.php
public function getAssessmentItemRefsByPlaceholder(\tao_models_classes_service_StorageDirectory $privateCompilationDirectory, AssessmentItemRef $placeholder)
    {
        $urlinfo = parse_url($placeholder->getHref());
        $adaptiveSectionId = ltrim($urlinfo['path'], '/');
        
        $compilationDataService = $this->getServiceLocator()->get(CompilationDataService::SERVICE_ID);
        $filename = "adaptive-assessment-section-${adaptiveSectionId}";
        
        $component = $compilationDataService->readPhpCompilationData(
            $privateCompilationDirectory,
            "${filename}.php",
            $filename
        );

        return $component->getComponentsByClassName('assessmentItemRef')->getArrayCopy();
    }
public function getAssessmentItemRefsByPlaceholder(\tao_models_classes_service_StorageDirectory $privateCompilationDirectory, AssessmentItemRef $placeholder)
    {
        $urlinfo = parse_url($placeholder->getHref());
        $adaptiveSectionId = ltrim($urlinfo['path'], '/');
        
        $compilationDataService = $this->getServiceLocator()->get(CompilationDataService::SERVICE_ID);
        $filename = "adaptive-assessment-section-${adaptiveSectionId}";
        
        $component = $compilationDataService->readPhpCompilationData(
            $privateCompilationDirectory,
            "${filename}.php",
            $filename
        );

        return $component->getComponentsByClassName('assessmentItemRef')->getArrayCopy();
    }
public function getAssessmentItemRefsByPlaceholder ( \ tao_models_classes_service_StorageDirectory $ privateCompilationDirectory , AssessmentItemRef $ placeholder ) { $ urlinfo = parse_url ( $ placeholder -> getHref ( ) ) ; $ adaptiveSectionId = ltrim ( $ urlinfo [ 'path' ] , '/' ) ; $ compilationDataService = $ this -> getServiceLocator ( ) -> get ( CompilationDataService :: SERVICE_ID ) ; $ filename = "adaptive-assessment-section-${adaptiveSectionId}" ; $ component = $ compilationDataService -> readPhpCompilationData ( $ privateCompilationDirectory , "${filename}.php" , $ filename ) ; return $ component -> getComponentsByClassName ( 'assessmentItemRef' ) -> getArrayCopy ( ) ; }
Get AssessmentItemRefs corresponding to a given Adaptive Placeholder.

This method will return an array of AssessmentItemRef objects corresponding to an Adaptive Placeholder.

@return array
Get AssessmentItemRefs corresponding to a given Adaptive Placeholder .