PHP Class HTTPWatch, etc

Show file Open project: stoyan/etc Class Usage Examples

Public Properties

Property Type Description
$api The values explained: + 1 means scalar e.g. URL of an entry + 2 means value will become unix timestamp + string means an object of class named after the string e.g. The Response member of the Entry object is an object of class Response + array means a list of values where each value is of class named after the single array value e.g. array('Warning') means the member is a list of Warning objects
$apipath
$controller The HTTPWatch COM controller
$entries
$hasRestrictedURLs
$paidproperties
$skipStreams Whether the raw request/response body should be returned in data methods such as getEntries() Default is TRUE, meaning skip these raw streams
$summary
$watch HTTPWatch plugin object

Public Methods

Method Description
__construct ( $brow = 'ie', $config = ['empty_cache' => true] )
done ( )
getEntries ( )
getStream ( $val )
getSummary ( )
go ( $url )
hasRestrictions ( )
populate ( $o, $classname, $islist = false ) : array Helper. Recursively goes through the properties of a VARIANT object $o of class $classname.
toHAR ( $filename = false ) If no filename is passed returns the HAR JSON

Method Details

__construct() public method

public __construct ( $brow = 'ie', $config = ['empty_cache' => true] )

done() public method

public done ( )

getEntries() public method

public getEntries ( )

getStream() public method

public getStream ( $val )

getSummary() public method

public getSummary ( )

go() public method

public go ( $url )

hasRestrictions() public method

public hasRestrictions ( )

populate() public method

$islist should be TRUE if $o is a collection/list and provides Count and Item()
public populate ( $o, $classname, $islist = false ) : array
return array of properties

toHAR() public method

If no filename is passed returns the HAR JSON
public toHAR ( $filename = false )

Property Details

$api public property

The values explained: + 1 means scalar e.g. URL of an entry + 2 means value will become unix timestamp + string means an object of class named after the string e.g. The Response member of the Entry object is an object of class Response + array means a list of values where each value is of class named after the single array value e.g. array('Warning') means the member is a list of Warning objects
public $api

$apipath static public property

static public $apipath

$controller public property

The HTTPWatch COM controller
public $controller

$entries public property

public $entries

$hasRestrictedURLs public property

public $hasRestrictedURLs

$paidproperties public property

public $paidproperties

$skipStreams public property

Whether the raw request/response body should be returned in data methods such as getEntries() Default is TRUE, meaning skip these raw streams
public $skipStreams

$summary public property

public $summary

$watch public property

HTTPWatch plugin object
public $watch