PHP Class Redaxscript\Head\Script

Since: 3.0.0
Author: Henry Ruhs
Inheritance: extends HeadAbstract
Datei anzeigen Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_inline string inline script
$_optionArray string options of the script

Public Methods

Method Description
appendFile ( string $source = null ) : Script append script file
appendInline ( string $inline = null ) : Script append inline script
clear ( ) : Script clear the script
concat ( array $optionArray = [] ) : Script concat the script
prependFile ( string $source = null ) : Script prepend script file
prependInline ( string $inline = null ) : Script prepend inline script
removeFile ( string $source = null ) : Script remove script file
render ( ) : string render the script
transportVar ( string $key = null, mixed $value = null ) : Script transport javascript variables

Method Details

appendFile() public method

append script file
Since: 3.0.0
public appendFile ( string $source = null ) : Script
$source string
return Script

appendInline() public method

append inline script
Since: 3.0.0
public appendInline ( string $inline = null ) : Script
$inline string
return Script

clear() public method

clear the script
Since: 3.0.0
public clear ( ) : Script
return Script

concat() public method

concat the script
Since: 3.0.0
public concat ( array $optionArray = [] ) : Script
$optionArray array
return Script

prependFile() public method

prepend script file
Since: 3.0.0
public prependFile ( string $source = null ) : Script
$source string
return Script

prependInline() public method

prepend inline script
Since: 3.0.0
public prependInline ( string $inline = null ) : Script
$inline string
return Script

removeFile() public method

remove script file
Since: 3.0.0
public removeFile ( string $source = null ) : Script
$source string
return Script

render() public method

render the script
Since: 3.0.0
public render ( ) : string
return string

transportVar() public method

transport javascript variables
Since: 3.0.0
public transportVar ( string $key = null, mixed $value = null ) : Script
$key string
$value mixed
return Script

Property Details

$_inline protected_oe static_oe property

inline script
protected static string $_inline
return string

$_optionArray protected_oe static_oe property

options of the script
protected static string $_optionArray
return string