[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> load.php (summary)

Load all internal libraries and setup class autoloader

Author: Andreas Gohr
File Size: 283 lines (9 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 1 file
 vendor/autoload.php

Defines 11 functions

  __construct()
  loadCommonLibs()
  autoload()
  autoloadFixedClass()
  autoloadTestMockClass()
  autoloadTestClass()
  autoloadPluginClass()
  autoloadTemplateClass()
  autoloadCoreClass()
  autoloadNamedPluginClass()
  prefixStrip()

Functions
Functions that are not part of a class:

__construct()   X-Ref
Load common libs and register autoloader


loadCommonLibs()   X-Ref
require all the common libraries

return: true

autoload($className)   X-Ref
spl_autoload_register callback

param: string $className
return: bool

autoloadFixedClass($className)   X-Ref
Check if the class is one of the fixed names

param: string $className
return: bool true if the class was loaded, false otherwise

autoloadTestMockClass($classPath)   X-Ref
Check if the class is a test mock class

param: string $classPath The class name using forward slashes as namespace separators
return: bool true if the class was loaded, false otherwise

autoloadTestClass($classPath)   X-Ref
Check if the class is a test mock class

param: string $classPath The class name using forward slashes as namespace separators
return: bool true if the class was loaded, false otherwise

autoloadPluginClass($classPath)   X-Ref
Check if the class is a namespaced plugin class

param: string $classPath The class name using forward slashes as namespace separators
return: bool true if the class was loaded, false otherwise

autoloadTemplateClass($classPath)   X-Ref
Check if the class is a namespaced template class

param: string $classPath The class name using forward slashes as namespace separators
return: bool true if the class was loaded, false otherwise

autoloadCoreClass($classPath)   X-Ref
Check if the class is a namespaced DokuWiki core class

param: string $classPath The class name using forward slashes as namespace separators
return: bool true if the class was loaded, false otherwise

autoloadNamedPluginClass($className)   X-Ref
Check if the class is a un-namespaced plugin class following our naming scheme

param: string $className
return: bool true if the class was loaded, false otherwise

prefixStrip(&$string, $prefix)   X-Ref
Check if the given string starts with the given prefix and strip it

param: string $string
param: string $prefix
return: bool true if the prefix was found and stripped, false otherwise