original_string: public function getAvailableMeasurableTypes()
      {
          Piwik::checkUserHasSomeViewAccess();
  
          $typeManager = new TypeManager();
          $types = $typeManager->getAllTypes();
  
          $available = array();
          foreach ($types as $type) {
              $measurableSettings = $this->settingsProvider->getAllMeasurableSettings($idSite = 0, $type->getId());
  
              $settingsMetadata = new SettingsMetadata();
  
              $available[] = array(
                  'id' => $type->getId(),
                  'name' => Piwik::translate($type->getName()),
                  'description' => Piwik::translate($type->getDescription()),
                  'howToSetupUrl' => $type->getHowToSetupUrl(),
                  'settings' => $settingsMetadata->formatSettings($measurableSettings)
              );
          }
  
          return $available;
      }
code: public function getAvailableMeasurableTypes()
      {
          Piwik::checkUserHasSomeViewAccess();
  
          $typeManager = new TypeManager();
          $types = $typeManager->getAllTypes();
  
          $available = array();
          foreach ($types as $type) {
              $measurableSettings = $this->settingsProvider->getAllMeasurableSettings($idSite = 0, $type->getId());
  
              $settingsMetadata = new SettingsMetadata();
  
              $available[] = array(
                  'id' => $type->getId(),
                  'name' => Piwik::translate($type->getName()),
                  'description' => Piwik::translate($type->getDescription()),
                  'howToSetupUrl' => $type->getHowToSetupUrl(),
                  'settings' => $settingsMetadata->formatSettings($measurableSettings)
              );
          }
  
          return $available;
      }
code_tokens: public function getAvailableMeasurableTypes ( ) { Piwik :: checkUserHasSomeViewAccess ( ) ; $ typeManager = new TypeManager ( ) ; $ types = $ typeManager -> getAllTypes ( ) ; $ available = array ( ) ; foreach ( $ types as $ type ) { $ measurableSettings = $ this -> settingsProvider -> getAllMeasurableSettings ( $ idSite = 0 , $ type -> getId ( ) ) ; $ settingsMetadata = new SettingsMetadata ( ) ; $ available [ ] = array ( 'id' => $ type -> getId ( ) , 'name' => Piwik :: translate ( $ type -> getName ( ) ) , 'description' => Piwik :: translate ( $ type -> getDescription ( ) ) , 'howToSetupUrl' => $ type -> getHowToSetupUrl ( ) , 'settings' => $ settingsMetadata -> formatSettings ( $ measurableSettings ) ) ; } return $ available ; }
docstring: Returns all available measurable types.
  Marked as deprecated so it won't appear in API page. It won't be a public API for now.
  @deprecated
  @return array
docstring_tokens: Returns all available measurable types . Marked as deprecated so it won t appear in API page . It won t be a public API for now .