class SSHTMLBBCodeParser_Filter_Images extends SSHTMLBBCodeParser_Filter (View source)

Methods

public
none
__construct($options = array())

Constructor, initialises the options and filters

public static 
getStaticProperty($class, $var)

No description

public
setOption($name, $value)

Option setter

public
addFilter($filter)

Add a new filter

public
removeFilter(string $filter)

Remove an existing filter

public
bool
addFilters($filters)

Add new filters

public
none
setText($str)

Sets text in the object to be parsed

public
string
getText()

Gets the unparsed text from the object

public
string
getPreparsed()

Gets the preparsed text from the object

public
string
getParsed()

Gets the parsed text from the object

public
none
parse()

Parses the text set in the object

public
none
qparse($str)

Quick method to do setText(), parse() and getParsed at once

public
none
staticQparse($str)

Quick static method to do setText(), parse() and getParsed at once

Details

none __construct($options = array())

Constructor, initialises the options and filters

Sets the private variable _options with base options defined with &PEAR::getStaticProperty(), overwriting them with (if present) the argument to this method. Then it sets the extra options to properly escape the tag characters in preg_replace() etc. The set options are then stored back with &PEAR::getStaticProperty(), so that the filter classes can use them. All the filters in the options are initialised and their defined tags are copied into the private variable _definedTags.

Parameters

$options

Return Value

none

static getStaticProperty($class, $var)

No description

Parameters

$class
$var

setOption($name, $value)

Option setter

Parameters

$name
$value

addFilter($filter)

Add a new filter

Parameters

$filter

removeFilter(string $filter)

Remove an existing filter

Parameters

string $filter

bool addFilters($filters)

Add new filters

Parameters

$filters

Return Value

bool

true if all ok, false if not.

none setText($str)

Sets text in the object to be parsed

Parameters

$str

Return Value

none

See also

getText()
$_text

string getText()

Gets the unparsed text from the object

Return Value

string

the text set in the object

See also

setText()
$_text

string getPreparsed()

Gets the preparsed text from the object

Return Value

string

the text set in the object

See also

_preparse()
$_preparsed

string getParsed()

Gets the parsed text from the object

Return Value

string

the parsed text set in the object

See also

parse()
$_parsed

none parse()

Parses the text set in the object

Return Value

none

See also

_preparse()
_buildTagArray()
_validateTagArray()
_buildParsedString()

none qparse($str)

Quick method to do setText(), parse() and getParsed at once

Parameters

$str

Return Value

none

See also

parse()
$_text

none staticQparse($str)

Quick static method to do setText(), parse() and getParsed at once

Parameters

$str

Return Value

none

See also

parse()
$_text