\phpWTL\ToolsPEPR

P.E.P.R. - [P]phWTL [E]xternal [P]lunder [R]aider Tool for automatic logging of static assets included in a page, in proper (webserver like) sequence (Needs the data retrieval policy "DRP_CONTENT_LENGTH_RETRIEVAL" set to "DRP_CLR_BUFFER" (enabled PHP output buffering) to work)

Summary

Methods
Properties
Constants
__construct()
logAssets()
finalize()
getLogbuffer()
No public properties found
TAG_RESOURCE_MAPPINGS_DEFAULT_INI
No protected methods found
$_logbuffer
$_resTypes
$_manualfinalize
N/A
No private methods found
No private properties found
N/A

Constants

TAG_RESOURCE_MAPPINGS_DEFAULT_INI

TAG_RESOURCE_MAPPINGS_DEFAULT_INI

default name for tag resource mappings ini file.

Properties

$_logbuffer

$_logbuffer : 

LogBuffer

Type

$_resTypes

$_resTypes : 

Resource types description

Type

$_manualfinalize

$_manualfinalize : 

manual finalization

Type

Methods

__construct()

__construct(object  $logger, object  $writer, array  $restypes, boolean  $manual_finalize = false, array  $buffercallbacks = null, array  $bufferparams = null) 

Parameters

object $logger

Provide the logger to use.

object $writer

Provide the log writer to use.

array $restypes

Description of different resource tags and their attribute(s) referencing the resource.

boolean $manual_finalize

If set to "true" automatic finalization is disabled (enabled by default).

array $buffercallbacks

Provide array of callback functions for the internal LogBuffer.

array $bufferparams

Provide parameters for LogBuffer.

logAssets()

logAssets(string  $html) 

Parse $html and log all assets found to the buffer

Parameters

string $html

HTML to parse.

finalize()

finalize() 

Flush logbuffer to writer

getLogbuffer()

getLogbuffer() : object

Returns

object —

Get the logbuffer object.