Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

  • ConstantContact
  • SplClassLoader
  • Overview
  • Namespace
  • Class
  • Tree

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 Ctct/SplClassLoader.php
Methods summary
public
# __construct( string $ns = null, mixed $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
string
$ns The namespace to use.
$includePath
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
string
$sep The separator to use.
public
# getNamespaceSeparator( )

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

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

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
string
$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
string
$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
string
$className The name of the class to load.
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0