private function loadDocumentation()
    {
        $this->metrics_documentation = array();

        $idSite = Common::getRequestVar('idSite', 0, 'int');

        if ($idSite < 1) {
            return;
        }

        $apiParameters = array();
        $entityNames = StaticContainer::get('entities.idNames');
        foreach ($entityNames as $entityName) {
            $idEntity = Common::getRequestVar($entityName, 0, 'int');
            if ($idEntity > 0) {
                $apiParameters[$entityName] = $idEntity;
            }
        }

        $report = API::getInstance()->getMetadata($idSite, $this->controllerName, $this->controllerAction, $apiParameters);

        if (empty($report)) {
            return;
        }

        $report = $report[0];

        if (isset($report['metricsDocumentation'])) {
            $this->metrics_documentation = $report['metricsDocumentation'];
        }

        if (isset($report['documentation'])) {
            $this->documentation = $report['documentation'];
        }
    }
private function loadDocumentation()
    {
        $this->metrics_documentation = array();

        $idSite = Common::getRequestVar('idSite', 0, 'int');

        if ($idSite < 1) {
            return;
        }

        $apiParameters = array();
        $entityNames = StaticContainer::get('entities.idNames');
        foreach ($entityNames as $entityName) {
            $idEntity = Common::getRequestVar($entityName, 0, 'int');
            if ($idEntity > 0) {
                $apiParameters[$entityName] = $idEntity;
            }
        }

        $report = API::getInstance()->getMetadata($idSite, $this->controllerName, $this->controllerAction, $apiParameters);

        if (empty($report)) {
            return;
        }

        $report = $report[0];

        if (isset($report['metricsDocumentation'])) {
            $this->metrics_documentation = $report['metricsDocumentation'];
        }

        if (isset($report['documentation'])) {
            $this->documentation = $report['documentation'];
        }
    }
private function loadDocumentation ( ) { $ this -> metrics_documentation = array ( ) ; $ idSite = Common :: getRequestVar ( 'idSite' , 0 , 'int' ) ; if ( $ idSite < 1 ) { return ; } $ apiParameters = array ( ) ; $ entityNames = StaticContainer :: get ( 'entities.idNames' ) ; foreach ( $ entityNames as $ entityName ) { $ idEntity = Common :: getRequestVar ( $ entityName , 0 , 'int' ) ; if ( $ idEntity > 0 ) { $ apiParameters [ $ entityName ] = $ idEntity ; } } $ report = API :: getInstance ( ) -> getMetadata ( $ idSite , $ this -> controllerName , $ this -> controllerAction , $ apiParameters ) ; if ( empty ( $ report ) ) { return ; } $ report = $ report [ 0 ] ; if ( isset ( $ report [ 'metricsDocumentation' ] ) ) { $ this -> metrics_documentation = $ report [ 'metricsDocumentation' ] ; } if ( isset ( $ report [ 'documentation' ] ) ) { $ this -> documentation = $ report [ 'documentation' ] ; } }
Load documentation from the API
Load documentation from the API