PHP 클래스 Google\Spreadsheet\Spreadsheet

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

보호된 프로퍼티들

프로퍼티 타입 설명
$xml SimpleXMLElement The spreadsheet xml object

공개 메소드들

메소드 설명
__construct ( SimpleXMLElement $xml ) Initializes the spreadsheet object
addWorksheet ( string $title, integer $rowCount = 100, integer $colCount = 10 ) : Worksheet Add a new worksheet to this spreadsheet
getId ( ) : string Get the spreadsheet id
getTitle ( ) : string Returns the title (name) of the spreadsheet
getUpdated ( ) : DateTime Get the updated date
getWorksheetByTitle ( $title ) : Worksheet Get a single worksheet by it's title. If there is more than one worksheet with the same title then the first one matched will be returned.
getWorksheetFeed ( ) : WorksheetFeed Get all the worksheets which belong to this spreadsheet
getWorksheetsFeedUrl ( ) : string Returns the feed url of the spreadsheet
getXml ( ) : integer Get the raw XML

메소드 상세

__construct() 공개 메소드

Initializes the spreadsheet object
public __construct ( SimpleXMLElement $xml )
$xml SimpleXMLElement

addWorksheet() 공개 메소드

Add a new worksheet to this spreadsheet
public addWorksheet ( string $title, integer $rowCount = 100, integer $colCount = 10 ) : Worksheet
$title string
$rowCount integer default is 100
$colCount integer default is 10
리턴 Worksheet

getId() 공개 메소드

Get the spreadsheet id
public getId ( ) : string
리턴 string

getTitle() 공개 메소드

Returns the title (name) of the spreadsheet
public getTitle ( ) : string
리턴 string

getUpdated() 공개 메소드

Get the updated date
public getUpdated ( ) : DateTime
리턴 DateTime

getWorksheetByTitle() 공개 메소드

Get a single worksheet by it's title. If there is more than one worksheet with the same title then the first one matched will be returned.
public getWorksheetByTitle ( $title ) : Worksheet
리턴 Worksheet

getWorksheetFeed() 공개 메소드

Get all the worksheets which belong to this spreadsheet
public getWorksheetFeed ( ) : WorksheetFeed
리턴 WorksheetFeed

getWorksheetsFeedUrl() 공개 메소드

Returns the feed url of the spreadsheet
public getWorksheetsFeedUrl ( ) : string
리턴 string

getXml() 공개 메소드

Get the raw XML
public getXml ( ) : integer
리턴 integer

프로퍼티 상세

$xml 보호되어 있는 프로퍼티

The spreadsheet xml object
protected SimpleXMLElement $xml
리턴 SimpleXMLElement