PHP Class Google\Spreadsheet\Util

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

Public Methods

Method 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 method

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

extractEndpoint() public static method

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

getLinkHref() public static method

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
return string