EasyBlogScripts
extends EasyBlog
in package
Table of Contents
Properties
- $app : mixed
- $attached : mixed
- $baseurl : mixed
- $config : mixed
- $db : mixed
- $dependencies : mixed
- $doc : mixed
- $environment : mixed
- $input : mixed
- $jconfig : mixed
- $lang : mixed
- $my : mixed
- $scripts : mixed
- $string : mixed
- $async : mixed
- $defer : mixed
- $location : mixed
Methods
- __construct() : mixed
- add() : mixed
- Adds script into the queue
- addScript() : mixed
- Allows caller to attach an external script
- attach() : mixed
- Attaches the necessary script libraries on the page
- createScriptTag() : mixed
- Generates script tags that should be added on the page
- getDependencies() : mixed
- Retrieves the main dependencies from vendors
- getError() : mixed
- getErrors() : mixed
- getFileName() : mixed
- Generates the file name
- getFileUri() : mixed
- Generates the file path
- getJavascriptConfiguration() : mixed
- Generates a configuration string for EasySocial's javascript library
- getScripts() : mixed
- Retrieves the list of scripts from the queue
- hasError() : mixed
- hasErrors() : mixed
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- loadLanguage() : mixed
- Helper method to load language
- renderMigrateScript() : mixed
- Determines if we should render the jquery migrate script
- setError() : mixed
Properties
$app
public
mixed
$app
= \null
$attached
public
static mixed
$attached
= \false
$baseurl
public
mixed
$baseurl
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$dependencies
public
mixed
$dependencies
= []
$doc
public
mixed
$doc
= \null
$environment
public
mixed
$environment
= ''
$input
public
mixed
$input
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$my
public
mixed
$my
= \null
$scripts
public
static mixed
$scripts
= []
$string
public
mixed
$string
= \null
$async
private
mixed
$async
= \false
$defer
private
mixed
$defer
= \false
$location
private
mixed
$location
= ''
Methods
__construct()
public
__construct([mixed $location = 'site' ]) : mixed
Parameters
- $location : mixed = 'site'
add()
Adds script into the queue
public
add(mixed $script) : mixed
Parameters
- $script : mixed
Tags
addScript()
Allows caller to attach an external script
public
addScript(mixed $url[, mixed $forceDefer = false ][, mixed $forceAsync = false ]) : mixed
Parameters
- $url : mixed
- $forceDefer : mixed = false
- $forceAsync : mixed = false
Tags
attach()
Attaches the necessary script libraries on the page
public
attach() : mixed
Tags
createScriptTag()
Generates script tags that should be added on the page
public
createScriptTag(mixed $path[, mixed $forceDefer = false ][, mixed $forceAsync = false ]) : mixed
Parameters
- $path : mixed
- $forceDefer : mixed = false
- $forceAsync : mixed = false
Tags
getDependencies()
Retrieves the main dependencies from vendors
public
getDependencies([mixed $absolutePath = false ][, mixed $jquery = true ]) : mixed
Parameters
- $absolutePath : mixed = false
- $jquery : mixed = true
Tags
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getFileName()
Generates the file name
public
getFileName(mixed $section[, mixed $jquery = true ]) : mixed
Parameters
- $section : mixed
- $jquery : mixed = true
Tags
getFileUri()
Generates the file path
public
getFileUri(mixed $section[, mixed $minified = true ][, mixed $jquery = true ]) : mixed
Parameters
- $section : mixed
- $minified : mixed = true
- $jquery : mixed = true
Tags
getJavascriptConfiguration()
Generates a configuration string for EasySocial's javascript library
public
getJavascriptConfiguration() : mixed
Tags
getScripts()
Retrieves the list of scripts from the queue
public
getScripts() : mixed
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
renderMigrateScript()
Determines if we should render the jquery migrate script
public
renderMigrateScript() : mixed
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed