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

  • ClassLoader
  • Role
  • Tenant
  • User
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class ClassLoader

Located at Autoload.php
Methods summary
public
# useIncludePath( Boolean $useIncludePath )

Turns on searching the include for class files. Allows easy loading of installed PEAR packages

Turns on searching the include for class files. Allows easy loading of installed PEAR packages

Parameters

$useIncludePath
Boolean
$useIncludePath
public Boolean
# getUseIncludePath( )

Can be used to check if the autoloader uses the include path to check for classes.

Can be used to check if the autoloader uses the include path to check for classes.

Returns

Boolean
public array
# getNamespaces( )

Gets the configured namespaces.

Gets the configured namespaces.

Returns

array
A hash with namespaces as keys and directories as values
public array
# getPrefixes( )

Gets the configured class prefixes.

Gets the configured class prefixes.

Returns

array
A hash with class prefixes as keys and directories as values
public array
# getNamespaceFallbacks( )

Gets the directory(ies) to use as a fallback for namespaces.

Gets the directory(ies) to use as a fallback for namespaces.

Returns

array
An array of directories
public array
# getPrefixFallbacks( )

Gets the directory(ies) to use as a fallback for class prefixes.

Gets the directory(ies) to use as a fallback for class prefixes.

Returns

array
An array of directories
public
# registerNamespaceFallbacks( array $dirs )

Registers the directory to use as a fallback for namespaces.

Registers the directory to use as a fallback for namespaces.

Parameters

$dirs
array
$dirs An array of directories

Api

public
# registerNamespaceFallback( string $dir )

Registers a directory to use as a fallback for namespaces.

Registers a directory to use as a fallback for namespaces.

Parameters

$dir
string
$dir A directory
public
# registerPrefixFallbacks( array $dirs )

Registers directories to use as a fallback for class prefixes.

Registers directories to use as a fallback for class prefixes.

Parameters

$dirs
array
$dirs An array of directories

Api

public
# registerPrefixFallback( string $dir )

Registers a directory to use as a fallback for class prefixes.

Registers a directory to use as a fallback for class prefixes.

Parameters

$dir
string
$dir A directory
public
# registerNamespaces( array $namespaces )

Registers an array of namespaces

Registers an array of namespaces

Parameters

$namespaces
array
$namespaces An array of namespaces (namespaces as keys and locations as values)

Api

public
# registerNamespace( string $namespace, array|string $paths )

Registers a namespace.

Registers a namespace.

Parameters

$namespace
string
$namespace The namespace
$paths
array|string
$paths The location(s) of the namespace

Api

public
# registerPrefixes( array $classes )

Registers an array of classes using the PEAR naming convention.

Registers an array of classes using the PEAR naming convention.

Parameters

$classes
array
$classes An array of classes (prefixes as keys and locations as values)

Api

public
# registerPrefix( string $prefix, array|string $paths )

Registers a set of classes using the PEAR naming convention.

Registers a set of classes using the PEAR naming convention.

Parameters

$prefix
string
$prefix The classes prefix
$paths
array|string
$paths The location(s) of the classes

Api

public
# register( Boolean $prepend = false )

Registers this instance as an autoloader.

Registers this instance as an autoloader.

Parameters

$prepend
Boolean
$prepend Whether to prepend the autoloader or not

Api

public Boolean|null
# loadClass( string $class )

Loads the given class or interface.

Loads the given class or interface.

Parameters

$class
string
$class The name of the class

Returns

Boolean|null
True, if loaded
public string|null
# findFile( string $class )

Finds the path to the file where the class is defined.

Finds the path to the file where the class is defined.

Parameters

$class
string
$class The name of the class

Returns

string|null
The path, if found
PHP OpenCloud API API documentation generated by ApiGen 2.8.0