Class ManifestBuilder
The ManifestBuilder class generates the manifest file and keeps it fresh.
The manifest file is a PHP include that contains global variables that
represent the collected contents of the application: - all classes (__autoload()) - all templates (SSViewer) - all _config.php files
Traversing the filesystem to collect this information on everypage. This information is cached so that it need not be regenerated on every pageview.
See: main.php,
__autoload(), SSViewer, Requirements::themedCSS()Used by:
ClassInfo::classes_for_file() Located at sapphire/core/ManifestBuilder.php
Methods summary
public static
|
|
public static
|
#
load_test_manifest( )
Load a copy of the manifest with tests/ folders included. Only loads the ClassInfo and __autoload() globals; this assumes that _config.php files are already included. |
public static
|
|
public static
|
|
public static
|
#
generate_php_file( mixed $manifestInfo )
Turn an array produced by get_manifest_info() into the content of the manifest PHP include |
public static
|
#
process_manifest( mixed $manifestInfo )
Parse the $manifestInfo array, updating the appropriate globals and loading the appropriate _config files. |
public static
array
|
#
get_themes( string $baseDir = null, boolean $includeSubThemes = false )
Get themes from a particular directory. |
public static
|
#
get_manifest_info( mixed $baseDir, mixed $excludedFolders = array() )
Return an array containing information for the manifest |
public static
|
#
getClassDefParser( )
Returns a |
public static
|
#
getInterfaceDefParser( )
Returns a |
public static
|
|
public static
|
Magic methods summary
Properties summary
public static
array
|
$restrict_to_modules | |
public static
array
|
$extendsArray | |
public static
array
|
$classArray | |
public static
array
|
$implementsArray | |
public static
array
|
$ignore_files |
#
$ignore_files Full filenames (without directory-path) which should be ignored by the manifest. |
public static
array
|
$ignore_folders |
#
$ignore_folders Foldernames (without path) which should be ignored by the manifest. |