protected function getTreeOptionsFromRequest($options = [])
    {
        $options = array_merge([
            'subclasses' => true,
            'instances' => true,
            'highlightUri' => '',
            'chunk' => false,
            'offset' => 0,
            'limit' => 0
        ], $options);

        if ($this->hasRequestParameter('loadNode')) {
            $options['uniqueNode'] = $this->getRequestParameter('loadNode');
        }

        if ($this->hasRequestParameter("selected")) {
            $options['browse'] = array($this->getRequestParameter("selected"));
        }

        if ($this->hasRequestParameter('hideInstances')) {
            if((bool) $this->getRequestParameter('hideInstances')) {
                $options['instances'] = false;
            }
        }
        if ($this->hasRequestParameter('classUri')) {
            $options['class'] = $this->getCurrentClass();
            $options['chunk'] = !$options['class']->equals($this->getRootClass());
        } else {
            $options['class'] = $this->getRootClass();
        }

        if ($this->hasRequestParameter('offset')) {
            $options['offset'] = $this->getRequestParameter('offset');
        }

        if ($this->hasRequestParameter('limit')) {
            $options['limit'] = $this->getRequestParameter('limit');
        }

        if ($this->hasRequestParameter('order')) {
            $options['order'] = tao_helpers_Uri::decode($this->getRequestParameter('order'));
        }

        if ($this->hasRequestParameter('orderdir')) {
            $options['orderdir'] = $this->getRequestParameter('orderdir');
        }
        return $options;
    }
protected function getTreeOptionsFromRequest($options = [])
    {
        $options = array_merge([
            'subclasses' => true,
            'instances' => true,
            'highlightUri' => '',
            'chunk' => false,
            'offset' => 0,
            'limit' => 0
        ], $options);

        if ($this->hasRequestParameter('loadNode')) {
            $options['uniqueNode'] = $this->getRequestParameter('loadNode');
        }

        if ($this->hasRequestParameter("selected")) {
            $options['browse'] = array($this->getRequestParameter("selected"));
        }

        if ($this->hasRequestParameter('hideInstances')) {
            if((bool) $this->getRequestParameter('hideInstances')) {
                $options['instances'] = false;
            }
        }
        if ($this->hasRequestParameter('classUri')) {
            $options['class'] = $this->getCurrentClass();
            $options['chunk'] = !$options['class']->equals($this->getRootClass());
        } else {
            $options['class'] = $this->getRootClass();
        }

        if ($this->hasRequestParameter('offset')) {
            $options['offset'] = $this->getRequestParameter('offset');
        }

        if ($this->hasRequestParameter('limit')) {
            $options['limit'] = $this->getRequestParameter('limit');
        }

        if ($this->hasRequestParameter('order')) {
            $options['order'] = tao_helpers_Uri::decode($this->getRequestParameter('order'));
        }

        if ($this->hasRequestParameter('orderdir')) {
            $options['orderdir'] = $this->getRequestParameter('orderdir');
        }
        return $options;
    }
protected function getTreeOptionsFromRequest ( $ options = [ ] ) { $ options = array_merge ( [ 'subclasses' => true , 'instances' => true , 'highlightUri' => '' , 'chunk' => false , 'offset' => 0 , 'limit' => 0 ] , $ options ) ; if ( $ this -> hasRequestParameter ( 'loadNode' ) ) { $ options [ 'uniqueNode' ] = $ this -> getRequestParameter ( 'loadNode' ) ; } if ( $ this -> hasRequestParameter ( "selected" ) ) { $ options [ 'browse' ] = array ( $ this -> getRequestParameter ( "selected" ) ) ; } if ( $ this -> hasRequestParameter ( 'hideInstances' ) ) { if ( ( bool ) $ this -> getRequestParameter ( 'hideInstances' ) ) { $ options [ 'instances' ] = false ; } } if ( $ this -> hasRequestParameter ( 'classUri' ) ) { $ options [ 'class' ] = $ this -> getCurrentClass ( ) ; $ options [ 'chunk' ] = ! $ options [ 'class' ] -> equals ( $ this -> getRootClass ( ) ) ; } else { $ options [ 'class' ] = $ this -> getRootClass ( ) ; } if ( $ this -> hasRequestParameter ( 'offset' ) ) { $ options [ 'offset' ] = $ this -> getRequestParameter ( 'offset' ) ; } if ( $ this -> hasRequestParameter ( 'limit' ) ) { $ options [ 'limit' ] = $ this -> getRequestParameter ( 'limit' ) ; } if ( $ this -> hasRequestParameter ( 'order' ) ) { $ options [ 'order' ] = tao_helpers_Uri :: decode ( $ this -> getRequestParameter ( 'order' ) ) ; } if ( $ this -> hasRequestParameter ( 'orderdir' ) ) { $ options [ 'orderdir' ] = $ this -> getRequestParameter ( 'orderdir' ) ; } return $ options ; }
Get options to generate tree
@return array
@throws Exception
Get options to generate tree