Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Library
      • Tracking
    • Exceptions
    • Services
    • Util
    • WebHooks

Classes

  • ConstantContact
  • SplClassLoader
  • Overview
  • Namespace
  • Class

Class SplClassLoader

SplClassLoader implementation that implements the technical interoperability standards for PHP 5.3 namespaces and class names.

http://groups.google.com/group/php-standards/web/final-proposal // Example which loads classes for the Doctrine Common package in the // Doctrine\Common namespace. $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine'); $classLoader->register();

Namespace: Ctct
Author: Jonathan H. Wage jonwage@gmail.com
Author: Roman S. Borschel roman@code-factory.org
Author: Matthew Weier O'Phinney matthew@zend.com
Author: Kris Wallsmith kris.wallsmith@gmail.com
Author: Fabien Potencier fabien.potencier@symfony-project.org
Located at SplClassLoader.php
Methods summary
public
# __construct( string $ns = null, string $includePath = null )

Creates a new SplClassLoader that loads classes of the specified namespace.

Creates a new SplClassLoader that loads classes of the specified namespace.

Parameters

$ns
The namespace to use.
$includePath
The include path to use.
public
# setNamespaceSeparator( string $sep )

Sets the namespace separator used by classes in the namespace of this class loader.

Sets the namespace separator used by classes in the namespace of this class loader.

Parameters

$sep
The separator to use.
public string
# getNamespaceSeparator( )

Gets the namespace separator used by classes in the namespace of this class loader.

Gets the namespace separator used by classes in the namespace of this class loader.

Returns

string
$namespaceSeparator
public
# setIncludePath( string $includePath )

Sets the base include path for all class files in the namespace of this class loader.

Sets the base include path for all class files in the namespace of this class loader.

Parameters

$includePath
public string
# getIncludePath( )

Gets the base include path for all class files in the namespace of this class loader.

Gets the base include path for all class files in the namespace of this class loader.

Returns

string
$includePath
public
# setFileExtension( string $fileExtension )

Sets the file extension of class files in the namespace of this class loader.

Sets the file extension of class files in the namespace of this class loader.

Parameters

$fileExtension
public string
# getFileExtension( )

Gets the file extension of class files in the namespace of this class loader.

Gets the file extension of class files in the namespace of this class loader.

Returns

string
$fileExtension
public
# register( )

Installs this class loader on the SPL autoload stack.

Installs this class loader on the SPL autoload stack.

public
# unregister( )

Uninstalls this class loader from the SPL autoloader stack.

Uninstalls this class loader from the SPL autoloader stack.

public
# loadClass( string $className )

Loads the given class or interface.

Loads the given class or interface.

Parameters

$className
The name of the class to load.
API documentation generated by ApiGen