class Helper

Helper class for WebSyndication library

Properties

static $specifications
static $protocolsCorrespondance

Methods

static 
setOptions(array $options)

No description

static 
setOption($name, $value)

No description

static 
getOption($name, $default = null)

No description

static 
getTemplate($name)

No description

static 
getClass($name)

No description

static 
getSpecifications($protocol, $version)

No description

static 
readProtocol(SimpleXMLElement $xml)

No description

static 
readVersion(SimpleXMLElement $xml)

No description

static 
readNamespaces(SimpleXMLElement $xml, $recursive = true)

No description

static 
findTagByCommonName($xml, $tag_name)

No description

static 
getContent($xml_item)

No description

static 
getAttribute($xml_item, $attribute_name)

No description

static 
getAttributesAsArray($xml_item)

No description

static 
getFilename($filepath)

No description

static 
encodeStringToId($str)

No description

static 
getSecuredString($str, $in_charset = null, $out_charset = 'UTF-8//TRANSLIT')

No description

static 
renderView($view_file, array $options = array())

No description

static 
isImage($mime)

No description

static 
getImageSize($url)

No description

static 
imageResize($width, $height, $max_width = 32, $max_height = 32)

No description

Details

at line 91
static setOptions(array $options)

Parameters

array $options

at line 98
static setOption($name, $value)

Parameters

$name
$value

at line 103
static getOption($name, $default = null)

Parameters

$name
$default

at line 108
static getTemplate($name)

Parameters

$name

at line 124
static getClass($name)

Parameters

$name

at line 136
static getSpecifications($protocol, $version)

Parameters

$protocol
$version

at line 165
static readProtocol(SimpleXMLElement $xml)

Parameters

SimpleXMLElement $xml

at line 170
static readVersion(SimpleXMLElement $xml)

Parameters

SimpleXMLElement $xml

at line 178
static readNamespaces(SimpleXMLElement $xml, $recursive = true)

Parameters

SimpleXMLElement $xml
$recursive

at line 195
static findTagByCommonName($xml, $tag_name)

Parameters

$xml
$tag_name

at line 215
static getContent($xml_item)

Parameters

$xml_item

at line 226
static getAttribute($xml_item, $attribute_name)

Parameters

$xml_item
$attribute_name

at line 234
static getAttributesAsArray($xml_item)

Parameters

$xml_item

at line 247
static getFilename($filepath)

Parameters

$filepath

at line 257
static encodeStringToId($str)

Parameters

$str

at line 262
static getSecuredString($str, $in_charset = null, $out_charset = 'UTF-8//TRANSLIT')

Parameters

$str
$in_charset
$out_charset

at line 272
static renderView($view_file, array $options = array())

Parameters

$view_file
array $options

at line 301
static isImage($mime)

Parameters

$mime

at line 306
static getImageSize($url)

Parameters

$url

at line 315
static imageResize($width, $height, $max_width = 32, $max_height = 32)

Parameters

$width
$height
$max_width
$max_height