PHP 클래스 Google\Spreadsheet\Util

저자: Asim Liaquat ([email protected])
파일 보기 프로젝트 열기: asimlqt/php-google-spreadsheet-client 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

extractAttributeFromXml() 공개 정적인 메소드

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

extractEndpoint() 공개 정적인 메소드

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

getLinkHref() 공개 정적인 메소드

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
리턴 string