Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Base
  • Collection
  • Lang
  • Metadata
  • Nova
  • PersistentObject
  • Service
  • ServiceCatalogItem
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: 
 3: namespace OpenCloud\Common;
 4: 
 5: class Lang 
 6: {
 7:     
 8:     public static function translate($word = null) 
 9:     {
10:         return $word;
11:     }
12:     
13:     public static function noslash($str) 
14:     {
15:         while ($str && (substr($str, -1) == '/')) {
16:             $str = substr($str, 0, strlen($str) - 1);
17:         }
18:         return $str;
19:     }
20:     
21: }
22: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0