Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Base
  • Lang
  • Metadata
  • PersistentObject
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: /**
 3:  * PHP OpenCloud library.
 4:  * 
 5:  * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
 6:  * @license   https://www.apache.org/licenses/LICENSE-2.0
 7:  * @author    Glen Campbell <glen.campbell@rackspace.com>
 8:  * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
 9:  */
10: 
11: namespace OpenCloud\Common;
12: 
13: class Lang 
14: {
15:     
16:     public static function translate($word = null) 
17:     {
18:         return $word;
19:     }
20:     
21:     public static function noslash($str) 
22:     {
23:         while ($str && (substr($str, -1) == '/')) {
24:             $str = substr($str, 0, strlen($str) - 1);
25:         }
26:         return $str;
27:     }
28:     
29: }
30: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0