__construct()
__construct(mixed||string|int settings = array()) :
Constructs a new compressor instance.
Parameters
mixed||string|int | settings | Name/value array with non-default settings for the compressor instance. |
This class combines and compresses the TinyMCE core, plugins, themes and language packs into one disk cached gzipped request. It improves the loading speed of TinyMCE dramatically but still provides dynamic initialization.
Example of direct usage: require_once("../jscripts/tiny_mce/tiny_mce_gzip.php");
// Renders script tag with compressed scripts TinyMCE_Compressor::renderTag(array( "url" => "../jscripts/tiny_mce/tiny_mce_gzip.php", "plugins" => "pagebreak,style", "themes" => "advanced", "languages" => "en" ));
renderTag(mixed||string|int tagSettings, return = false) :
Renders a script tag that loads the TinyMCE script.
mixed||string|int | tagSettings | Name/value array with settings for the script tag. |
return | The script tag is return instead of being output if true |
The tag is returned if $return is true