protected function _clearAcoPaths()
    {
        $this->loadModel('User.Acos');
        $nodes = $this->Acos
            ->find()
            ->where(['plugin' => $this->params['plugin']])
            ->order(['lft' => 'ASC'])
            ->all();

        foreach ($nodes as $node) {
            $this->Acos->removeFromTree($node);
            $this->Acos->delete($node);
        }

        AcoManager::buildAcos(null, true); // clear anything else
    }
protected function _clearAcoPaths()
    {
        $this->loadModel('User.Acos');
        $nodes = $this->Acos
            ->find()
            ->where(['plugin' => $this->params['plugin']])
            ->order(['lft' => 'ASC'])
            ->all();

        foreach ($nodes as $node) {
            $this->Acos->removeFromTree($node);
            $this->Acos->delete($node);
        }

        AcoManager::buildAcos(null, true); // clear anything else
    }
protected function _clearAcoPaths ( ) { $ this -> loadModel ( 'User.Acos' ) ; $ nodes = $ this -> Acos -> find ( ) -> where ( [ 'plugin' => $ this -> params [ 'plugin' ] ] ) -> order ( [ 'lft' => 'ASC' ] ) -> all ( ) ; foreach ( $ nodes as $ node ) { $ this -> Acos -> removeFromTree ( $ node ) ; $ this -> Acos -> delete ( $ node ) ; } AcoManager :: buildAcos ( null , true ) ; // clear anything else }
Removes all ACOs created by the plugin being uninstall.

@return void
Removes all ACOs created by the plugin being uninstall .