PHP Class Jackalope\Helper

Datei anzeigen Open project: jackalope/jackalope Class Usage Examples

Public Methods

Method Description
getBoolAttribute ( DOMElement $node, string $attribute ) : boolean Returns a dom attribute casted to boolean.

Method Details

getBoolAttribute() public static method

The attribute can contain the string 'false' which is interpreted as false, everything else is true.
public static getBoolAttribute ( DOMElement $node, string $attribute ) : boolean
$node DOMElement to fetch from
$attribute string name to fetch
return boolean the value converted to bool