public static function getRubricBlocks(tao_models_classes_service_StorageDirectory $directory, $view) {
        
        $returnValue = array();
        
        $elements = self::getContentVariableElements($directory);
        
        foreach ($elements as $serial => $data) {
        
            if (isset($data['qtiClass']) && $data['qtiClass'] == 'rubricBlock') {
        
                if (!empty($data['attributes']) && is_array($data['attributes']['view']) && in_array($view, $data['attributes']['view'])) {
                        $returnValue[$serial] = $data;
                }
            }
        }
        
        return $returnValue;
    }
public static function getRubricBlocks(tao_models_classes_service_StorageDirectory $directory, $view) {
        
        $returnValue = array();
        
        $elements = self::getContentVariableElements($directory);
        
        foreach ($elements as $serial => $data) {
        
            if (isset($data['qtiClass']) && $data['qtiClass'] == 'rubricBlock') {
        
                if (!empty($data['attributes']) && is_array($data['attributes']['view']) && in_array($view, $data['attributes']['view'])) {
                        $returnValue[$serial] = $data;
                }
            }
        }
        
        return $returnValue;
    }
public static function getRubricBlocks ( tao_models_classes_service_StorageDirectory $ directory , $ view ) { $ returnValue = array ( ) ; $ elements = self :: getContentVariableElements ( $ directory ) ; foreach ( $ elements as $ serial => $ data ) { if ( isset ( $ data [ 'qtiClass' ] ) && $ data [ 'qtiClass' ] == 'rubricBlock' ) { if ( ! empty ( $ data [ 'attributes' ] ) && is_array ( $ data [ 'attributes' ] [ 'view' ] ) && in_array ( $ view , $ data [ 'attributes' ] [ 'view' ] ) ) { $ returnValue [ $ serial ] = $ data ; } } } return $ returnValue ; }
Get rubric block visible by the given "view"

@param tao_models_classes_service_StorageDirectory $directory
@param type $view
@return array
Get rubric block visible by the given view