PHP Class Google\Spreadsheet\Util

Author: Asim Liaquat ([email protected])
Afficher le fichier Open project: asimlqt/php-google-spreadsheet-client Class Usage Examples

Méthodes publiques

Méthode Description
extractAttributeFromXml ( SimpleXMLElement $xml, $namespacePrefix, $attribute ) : string Get a specific attribute in a namespaced tag
extractEndpoint ( string $url ) : string Extracts the endpoint from a full google spreadsheet url.
getLinkHref ( SimpleXMLElement $xml, string $rel ) : string Extracts the href for a specific rel from an xml object.

Method Details

extractAttributeFromXml() public static méthode

Get a specific attribute in a namespaced tag
public static extractAttributeFromXml ( SimpleXMLElement $xml, $namespacePrefix, $attribute ) : string
$xml SimpleXMLElement
Résultat string

extractEndpoint() public static méthode

Extracts the endpoint from a full google spreadsheet url.
public static extractEndpoint ( string $url ) : string
$url string
Résultat string

getLinkHref() public static méthode

Extracts the href for a specific rel from an xml object.
public static getLinkHref ( SimpleXMLElement $xml, string $rel ) : string
$xml SimpleXMLElement
$rel string the value of the rel attribute whose href you want
Résultat string