PHP Class DotsUnited\BundleFu\Bundle

Author: Jan Sorgalla ([email protected])
Datei anzeigen Open project: dotsunited/bundlefu Class Usage Examples

Protected Properties

Property Type Description
$bypass boolean Whether to bypass capturing.
$cssCachePath string Directory in which to write bundled css files.
$cssCacheUrl string Optional. If not set, $this->cssCachePath is used.
$cssFileList FileList CSS file list.
$cssFilter Filter CSS filter.
$cssTemplate string | callable CSS template.
$currentBundleOptions array Options for bundling in process.
$docRoot string Directory in which to look for files.
$force boolean Whether to force bundling.
$jsCachePath string Directory in which to write bundled javascript files.
$jsCacheUrl string Optional. If not set, $this->jsCachePath is used.
$jsFileList FileList Javascript file list.
$jsFilter Filter CSS filter.
$jsTemplate Filter CSS filter.
$name string Bundle name.
$renderAsXhtml boolean Whether to render as XHTML.

Public Methods

Method Description
__construct ( array $options = [] ) Constructor.
__toString ( ) : string Render out all bundles.
addCssFile ( string $file, string $docRoot = null ) : Bundle Add a CSS file.
addJsFile ( string $file, string $docRoot = null ) : Bundle Add a javascript file.
end ( array $options = [] ) : Bundle End capturing and bundling current output.
extractFiles ( string $html, string $docRoot = null ) : Bundle Extract files from HTML.
getBypass ( ) : boolean Get whether to bypass capturing.
getCssBundlePath ( ) : string Get css bundle path.
getCssBundleUrl ( ) : string Get css bundle url.
getCssCachePath ( ) : string Get directory in which to write bundled css files.
getCssCacheUrl ( ) : string Get path the generated css bundles are publicly accessible under.
getCssFileList ( ) : FileList Get css file list.
getCssFilter ( ) : DotsUnited\BundleFu\Filter\FilterInterface Get css filter.
getCssTemplate ( ) : string | callable Get the template used for rendering the css tag (can be a callable).
getDocRoot ( ) : string Get directory in which to look for files.
getForce ( ) : boolean Get whether to force bundling.
getJsBundlePath ( ) : string Get javascript bundle path.
getJsBundleUrl ( ) : string Get javascript bundle url.
getJsCachePath ( ) : string Get directory in which to write bundled javascript files.
getJsCacheUrl ( ) : string Get path the generated javascript bundles are publicly accessible under.
getJsFileList ( ) : FileList Get javascript file list.
getJsFilter ( ) : DotsUnited\BundleFu\Filter\FilterInterface Get javascript filter.
getJsTemplate ( ) : string | callable Get the template used for rendering the js