Export/ExportManager.php
private function buildCenterReachableScopes(array $centers, ExportElementInterface $element) {
        $r = array();
        
        foreach($centers as $center) {
            $r[] = array(
                'center' => $center,
                'circles' => $this->authorizationHelper->getReachableScopes($this->user, 
                        $element->requiredRole(), $center)
            );
        }
        
        return $r;
    }
private function buildCenterReachableScopes(array $centers, ExportElementInterface $element) {
        $r = array();
        
        foreach($centers as $center) {
            $r[] = array(
                'center' => $center,
                'circles' => $this->authorizationHelper->getReachableScopes($this->user, 
                        $element->requiredRole(), $center)
            );
        }
        
        return $r;
    }
private function buildCenterReachableScopes ( array $ centers , ExportElementInterface $ element ) { $ r = array ( ) ; foreach ( $ centers as $ center ) { $ r [ ] = array ( 'center' => $ center , 'circles' => $ this -> authorizationHelper -> getReachableScopes ( $ this -> user , $ element -> requiredRole ( ) , $ center ) ) ; } return $ r ; }
build the array required for defining centers and circles in the initiate
queries of ExportElementsInterfaces

@param \Chill\MainBundle\Entity\Center[] $centers
build the array required for defining centers and circles in the initiate queries of ExportElementsInterfaces