original_string: 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'];
          }
      }
code: 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'];
          }
      }
code_tokens: 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' ] ; } }
docstring: Load documentation from the API
docstring_tokens: Load documentation from the API