$_logbuffer
$_logbuffer :
LogBuffer
S.A.L.T. - [S]tatic [A]sset [L]ogging [T]ool Allows for proper (webserver like) logging sequence of static assets included in a page
__construct(object $logger, object $writer, array $buffercallbacks = null, array $bufferparams = null)
object | $logger | Provide the logger to use. |
object | $writer | Provide the log writer to use. |
array | $buffercallbacks | Provide array of callback functions for LogBuffer. |
array | $bufferparams | Provide parameters for the internal LogBuffer. |
logAssetType(integer $type, string $src, array $attr = null)
Log asset of preset type to buffer and write corr. tag
integer | $type | Type of resource to log (see SALTHelper for constant def.). |
string | $src | Path and filename of resource. |
array | $attr | Assoc. array of key-value-pairs of attributes for a tag (optional, * = set $src as value). |
logAssetCustom(string $name, string $src, array $attr = null)
Log asset of custom type to buffer and write corr. tag
string | $name | Name of tag to create. |
string | $src | Path and filename of resource. |
array | $attr | Assoc. array of key-value-pairs of attributes for a tag (optional, * = set $src as value). |
buildTag(string $name, string $src = null, array $attr = null) : String
Construct an arbitrary HTML tag
string | $name | Name of tag to create. |
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of attributes for the tag (optional, * = set $src as value). |
containing tag created
includeImg(string $src, array $attr = null) : String
Wrapper to create img tag.
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of additional attributes for a tag (optional, * = set $src as value). |
containing tag created
includeCss(string $src, array $attr = null) : String
Wrapper to inlude CSS stylesheet.
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of additional attributes for a tag (optional, * = set $src as value). |
containing tag created
includeJs(string $src, array $attr = null) : String
Wrapper to inlude JS script file.
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of additional attributes for a tag (optional, * = set $src as value). |
containing tag created
includeIframe(string $src, array $attr = null) : String
Wrapper to inlude iFrame.
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of additional attributes for a tag (optional, * = set $src as value). |
containing tag created
includeEmbed(string $src, array $attr = null) : String
Wrapper to inlude embed tag.
string | $src | Path and filename of resource (optional). |
array | $attr | Assoc. array of key-value-pairs of additional attributes for a tag (optional, * = set $src as value). |
containing tag created