Class Requirements
Requirements tracker, for javascript and css.
Methods summary
public static
|
|
public static
boolean
|
|
public static
|
#
set_combined_files_folder( string $folder )
Set the relative folder e.g. "assets" for where to store combined files |
public static
|
#
set_suffix_requirements( boolean $var )
Set whether we want to suffix requirements with the time / location on to the requirements |
public static
boolean
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
customScript( script $script, uniquenessID $uniquenessID = null )
Add the javascript code to the header of the page |
public static
|
|
public static
|
#
insertHeadTags( string $html, string $uniquenessID = null )
Add the following custom code to the <head> section of the page. See
|
public static
|
#
javascriptTemplate( file $file, vars $vars, mixed $uniquenessID = null )
Load the given javascript template with the page. See |
public static
|
#
css( mixed $file, mixed $media = null )
Register the given stylesheet file as required. See |
public static
|
#
themedCSS( mixed $name, mixed $media = null )
Register the given "themeable stylesheet" as required. See |
public static
|
|
public static
|
#
block( unknown_type $fileOrID )
Blocks inclusion of a specific file See |
public static
|
#
unblock( string $fileOrID )
Removes an item from the blocking-list. See |
public static
|
|
public static
|
#
restore( )
Restore requirements cleared by call to Requirements::clear See |
public static
string
|
#
includeInHTML( string $templateFile, string $content )
Update the given HTML content with the appropriate include tags for the
registered requirements. See |
public static
|
|
public static
|
|
public static
|
#
combine_files( string $combinedFileName, array $files )
Concatenate several css or javascript files into a single dynamically
generated file. See |
public static
array
|
|
public static
|
#
delete_combined_files( string $combinedFileName = null )
Deletes all dynamically generated combined files from the filesystem. See Requirements_Backend::delete_combine_files() |
public static
|
#
clear_combined_files( )
Re-sets the combined files definition. See |
public static
|
|
public static
array
|
|
public static
|
#
set_write_js_to_body( boolean $var )
Set whether you want to write the JS to the body of the page or in the head section |
public static
|