protected function fillScopes(){

        if($this->scopes !== null){
            return;
        }

        $this->scopes = [];

        foreach($this->treeModel->rootNodes() as $rootNode){

            $this->addToScopes($this->node2Scope($rootNode));


        }

        foreach ($this->manualScopes as $scope) {
            $this->addToScopes($scope);
        }

    }
protected function fillScopes(){

        if($this->scopes !== null){
            return;
        }

        $this->scopes = [];

        foreach($this->treeModel->rootNodes() as $rootNode){

            $this->addToScopes($this->node2Scope($rootNode));


        }

        foreach ($this->manualScopes as $scope) {
            $this->addToScopes($scope);
        }

    }
protected function fillScopes ( ) { if ( $ this -> scopes !== null ) { return ; } $ this -> scopes = [ ] ; foreach ( $ this -> treeModel -> rootNodes ( ) as $ rootNode ) { $ this -> addToScopes ( $ this -> node2Scope ( $ rootNode ) ) ; } foreach ( $ this -> manualScopes as $ scope ) { $ this -> addToScopes ( $ scope ) ; } }
Fills the scope array for fast lookups

@return void
Fills the scope array for fast lookups