[ 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

return: bool
param: string $className

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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