public function getOntologyData()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_IsAjaxAction(__FUNCTION__);
        }
        $options = $this->getTreeOptionsFromRequest([]);

        //generate the tree from the given parameters
        $tree = $this->getClassService()->toTree($options['class'], $options);

        //retrieve resources permissions
        $user = \common_Session_SessionManager::getSession()->getUser();
        $permissions = $this->getResourceService()->getResourcesPermissions($user, $tree);

        //expose the tree
        $this->returnJson([
            'tree' => $tree,
            'permissions' => $permissions
        ]);
    }
public function getOntologyData()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_IsAjaxAction(__FUNCTION__);
        }
        $options = $this->getTreeOptionsFromRequest([]);

        //generate the tree from the given parameters
        $tree = $this->getClassService()->toTree($options['class'], $options);

        //retrieve resources permissions
        $user = \common_Session_SessionManager::getSession()->getUser();
        $permissions = $this->getResourceService()->getResourcesPermissions($user, $tree);

        //expose the tree
        $this->returnJson([
            'tree' => $tree,
            'permissions' => $permissions
        ]);
    }
public function getOntologyData ( ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { throw new common_exception_IsAjaxAction ( __FUNCTION__ ) ; } $ options = $ this -> getTreeOptionsFromRequest ( [ ] ) ; //generate the tree from the given parameters $ tree = $ this -> getClassService ( ) -> toTree ( $ options [ 'class' ] , $ options ) ; //retrieve resources permissions $ user = \ common_Session_SessionManager :: getSession ( ) -> getUser ( ) ; $ permissions = $ this -> getResourceService ( ) -> getResourcesPermissions ( $ user , $ tree ) ; //expose the tree $ this -> returnJson ( [ 'tree' => $ tree , 'permissions' => $ permissions ] ) ; }
Renders json data from the current ontology root class.

The possible request parameters are the following:

* uniqueNode: A URI indicating the returned hiearchy will be a single class, with a single children corresponding to the URI.
* browse:
* hideInstances:
* chunk:
* offset:
* limit:
* subclasses:
* classUri:

@return void
@requiresRight classUri READ
Renders json data from the current ontology root class .