PHP Class Jackalope\Helper

Afficher le fichier Open project: jackalope/jackalope Class Usage Examples

Méthodes publiques

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

Method Details

getBoolAttribute() public static méthode

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
Résultat boolean the value converted to bool