EasyBlogCompiler
in package
Table of Contents
Properties
- $cli : mixed
- $excluded : mixed
- $excludedMinify : mixed
- $excludePatterns : mixed
- $instance : mixed
- $minifiedExcludedFiles : mixed
- $version : mixed
Methods
- compile() : mixed
- Allows caller to compile a script file on the site, given the section
- compileBootloader() : mixed
- Retrieves contents from the bootloader file
- compileCoreFiles() : mixed
- Compiles core files used in EasyBlog
- compileLibraries() : mixed
- Compiles all libraries
- compileScripts() : mixed
- Compiles script files
- debug() : mixed
- For debugging purposes only.
- getClosure() : mixed
- Retrieves the closure compiler
- getContents() : mixed
- Retrieves the contents of a particular file
- getCoreFiles() : mixed
- Retrieves a list of core files used on the site
- getExcludedFilesToMinify() : mixed
- Retrieves a list of excluded script files that needs to be minified
- getFiles() : mixed
- Retrieves a list of files for specific sections
- getLibraryFiles() : mixed
- Retrieves a list of library files used on the site
- getScriptFiles() : mixed
- Retrieves list of scripts that is only used in the particular section
- getSharedFiles() : mixed
- Retrieves list of shared files that is used across all sections
- isAceFile() : mixed
- Determines if the file pattern is a moment language file
- isDependencyFile() : mixed
- Determines if the file pattern is a dependency file
- isExcludedFromMinify() : mixed
- Determine files that should be excluded from being minified
- isMomentLanguageFile() : mixed
- Determines if the file pattern is a moment language file
- reduceFiles() : mixed
- Given a list of files, remove exclusions
- write() : mixed
- Saves the contents into a file
Properties
$cli
public
mixed
$cli
= \false
$excluded
public
mixed
$excluded
= []
$excludedMinify
public
mixed
$excludedMinify
= []
$excludePatterns
public
mixed
$excludePatterns
= [
"moment",
"plupload2",
//jquery.ui
"vendors/ui/autocomplete.js",
"vendors/ui/core.js",
"vendors/ui/draggable.js",
"vendors/ui/droppable.js",
"vendors/ui/menu.js",
"vendors/ui/mouse.js",
"vendors/ui/position.js",
"vendors/ui/resizable.js",
"vendors/ui/sortable.js",
"vendors/ui/widget.js",
// Vendors
"vendors/ace",
"vendors/accordion.js",
"vendors/audiojs.js",
"vendors/datetimepicker.js",
"vendors/videojs",
"vendors/videojs.js",
"vendors/imgareaselect.js",
"vendors/masonry.js",
"vendors/imagesloaded.js",
"vendors/swiper.js",
"vendors/leaflet.js",
// Maps
"vendors/textboxlist.js",
"vendors/scrollTo.js",
"vendors/jquery.js",
// Already included in the core files
"vendors/daterangepicker.js",
// Not sure where this is used
// Composer files
"composer/vendors/redactor10.js",
// Shared libraries
"shared/comparison.js",
"shared/datetime.js",
"shared/mobile.js",
"shared/usertags.js",
"shared/nearest.js",
// Admin scripts
"admin/vendors/flot.js",
"admin/vendors/select2.js",
'admin/vendors/resize.js',
'admin/vendors/mousewheel.js',
'admin/vendors/event/drag.js',
// Site scripts
"site/mmenu.js",
"site/markerclusterer.js",
"site/location.js",
"site/teamblogs.js",
"site/polls.js",
"site/comments.js",
"site/search/filters.js",
"site/vendors/markitup.js",
"site/vendors/ticker.js",
"site/vendors/webcam.js",
// Used in photos quickpost
"site/dashboard/filters.js",
"site/dashboard/table.js",
"site/dashboard/teamblogs.js",
"site/dashboard/quickpost",
"site/author/suggest.js",
]
$instance
public
static mixed
$instance
= \null
$minifiedExcludedFiles
public
static mixed
$minifiedExcludedFiles
= []
$version
public
mixed
$version
Methods
compile()
Allows caller to compile a script file on the site, given the section
public
compile([mixed $section = 'admin' ][, mixed $minify = true ][, mixed $jquery = true ]) : mixed
Parameters
- $section : mixed = 'admin'
- $minify : mixed = true
- $jquery : mixed = true
Tags
compileBootloader()
Retrieves contents from the bootloader file
public
compileBootloader() : mixed
Tags
compileCoreFiles()
Compiles core files used in EasyBlog
public
compileCoreFiles(mixed $files) : mixed
Parameters
- $files : mixed
Tags
compileLibraries()
Compiles all libraries
public
compileLibraries(mixed $files) : mixed
Parameters
- $files : mixed
Tags
compileScripts()
Compiles script files
public
compileScripts(mixed $files) : mixed
Parameters
- $files : mixed
Tags
debug()
For debugging purposes only.
public
debug(mixed $items) : mixed
@dump does not display everything
Parameters
- $items : mixed
Tags
getClosure()
Retrieves the closure compiler
public
getClosure() : mixed
Tags
getContents()
Retrieves the contents of a particular file
public
getContents(mixed $file) : mixed
Parameters
- $file : mixed
Tags
getCoreFiles()
Retrieves a list of core files used on the site
public
getCoreFiles([mixed $jquery = true ]) : mixed
Parameters
- $jquery : mixed = true
Tags
getExcludedFilesToMinify()
Retrieves a list of excluded script files that needs to be minified
public
getExcludedFilesToMinify() : mixed
Tags
getFiles()
Retrieves a list of files for specific sections
public
getFiles(mixed $section[, mixed $jquery = true ]) : mixed
Parameters
- $section : mixed
- $jquery : mixed = true
Tags
getLibraryFiles()
Retrieves a list of library files used on the site
public
getLibraryFiles() : mixed
Tags
getScriptFiles()
Retrieves list of scripts that is only used in the particular section
public
getScriptFiles(mixed $section) : mixed
Parameters
- $section : mixed
Tags
getSharedFiles()
Retrieves list of shared files that is used across all sections
public
getSharedFiles() : mixed
Tags
isAceFile()
Determines if the file pattern is a moment language file
public
isAceFile(mixed $file) : mixed
Parameters
- $file : mixed
Tags
isDependencyFile()
Determines if the file pattern is a dependency file
public
isDependencyFile(mixed $file) : mixed
Parameters
- $file : mixed
Tags
isExcludedFromMinify()
Determine files that should be excluded from being minified
public
isExcludedFromMinify(mixed $file) : mixed
Parameters
- $file : mixed
Tags
isMomentLanguageFile()
Determines if the file pattern is a moment language file
public
isMomentLanguageFile(mixed $file) : mixed
Parameters
- $file : mixed
Tags
reduceFiles()
Given a list of files, remove exclusions
public
reduceFiles(mixed $files, mixed $exclusions[, mixed $minifyExcludedFiles = true ][, mixed $section = '' ][, mixed $debug = false ]) : mixed
Parameters
- $files : mixed
- $exclusions : mixed
- $minifyExcludedFiles : mixed = true
- $section : mixed = ''
- $debug : mixed = false
Tags
write()
Saves the contents into a file
public
write(mixed $path, mixed $contents) : mixed
Parameters
- $path : mixed
- $contents : mixed