original_string: public function getList()
      {
          $modules = &gplcart_static('module.list');
  
          if (isset($modules)) {
              return $modules;
          }
  
          $installed = $this->getInstalled();
  
          $modules = array();
  
          foreach ($this->scan() as $module_id => $info) {
              $modules[$module_id] = $this->prepareInfo($module_id, $info, $installed);
          }
  
          gplcart_array_sort($modules);
  
          return $modules;
      }
code: public function getList()
      {
          $modules = &gplcart_static('module.list');
  
          if (isset($modules)) {
              return $modules;
          }
  
          $installed = $this->getInstalled();
  
          $modules = array();
  
          foreach ($this->scan() as $module_id => $info) {
              $modules[$module_id] = $this->prepareInfo($module_id, $info, $installed);
          }
  
          gplcart_array_sort($modules);
  
          return $modules;
      }
code_tokens: public function getList ( ) { $ modules = & gplcart_static ( 'module.list' ) ; if ( isset ( $ modules ) ) { return $ modules ; } $ installed = $ this -> getInstalled ( ) ; $ modules = array ( ) ; foreach ( $ this -> scan ( ) as $ module_id => $ info ) { $ modules [ $ module_id ] = $ this -> prepareInfo ( $ module_id , $ info , $ installed ) ; } gplcart_array_sort ( $ modules ) ; return $ modules ; }
docstring: Returns an array of all available modules
  @return array
docstring_tokens: Returns an array of all available modules