Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_Autoloader
  • icms_Event
  • icms_Utils
  • Overview
  • Package
  • Class

Class icms_Autoloader

ImpressCMS Autoloader

Category: ICMS
Copyright: http://www.impresscms.org/ The ImpressCMS Project
License: GNU General Public License (GPL)
Author: Marc-André Lanciault (aka marcan) mal@inboxintl.com
Version: $Id: Autoloader.php 11448 2011-11-21 16:37:13Z fiammy $
Since: 1.3
Located at Autoloader.php
Methods summary
public static
# setup( )

Initialize the autoloader, and register its autoload method

Initialize the autoloader, and register its autoload method

public static array
# split( string $class )

Split a fully qualified class name into Namespace and Local class name

Split a fully qualified class name into Namespace and Local class name

Supports both PHP 5.3 proj\sub\Class and 5.2 proj_sub_Class naming convention.

Parameters

$class

Returns

array
public static
# register( string $path, string $namespace = "" )

Register/unregister a class repository

Register/unregister a class repository

The autoload system will look for classes in all registered repositories one after the other.

Parameters

$path
Repository physical path
$namespace
If specified, all classes of the repository belong to this namespace
public static boolean
# import( string $namespace, boolean $required = TRUE )

Import a namespace global elements (constants and functions)

Import a namespace global elements (constants and functions)

If a namespace has functions or constants, they must be put in a file called "namespace.php" that will be read by this function.

Parameters

$namespace
$required
Whether to throw an exception or not if the namespace file is not found

Returns

boolean
public static boolean
# autoload( string $class )

Locate and load the appropriate file, based on a class name

Locate and load the appropriate file, based on a class name

Parameters

$class

Returns

boolean
public static
# classPath( string $class, boolean $useIncludePath = FALSE, $ext = ".php" )

Attempt to find a class path by scanning registered repositories

Attempt to find a class path by scanning registered repositories

Parameters

$class
Name of the class to find
$useIncludePath
If to search include paths too
$ext
public static
# registerLegacy( $class )

This function maps the legacy classes that were included in common.php and xoopsformloader.php Rather than including all the legacy files, this defines where PHP should look to use these classes It's ugly, but so was the code we're getting rid of

This function maps the legacy classes that were included in common.php and xoopsformloader.php Rather than including all the legacy files, this defines where PHP should look to use these classes It's ugly, but so was the code we're getting rid of

Properties summary
protected static array $globalRepositories

Paths of known global repositories

Paths of known global repositories

# array()
protected static array $localRepositories

Paths of known namespace repositories

Paths of known namespace repositories

# array()
protected static array $imported

Imported namespaces

Imported namespaces

# array()
protected static boolean $initialized

Whether setup has already been called or not

Whether setup has already been called or not

# FALSE
API documentation generated by ApiGen