PHP 클래스 Pop\Data\Data

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data string Data stream
$file string Data file stream
$idQuote string Data identifier quote
$pma boolean PMA compatible XML flag
$table string Data table
$type string Data file type

공개 메소드들

메소드 설명
__construct ( string $data ) : Data Constructor
factory ( string $data ) : Data Static method to instantiate the data object and return itself to facilitate chaining methods together.
getData ( ) : string Get the data stream
getFile ( ) : string Get the file stream
getIdQuote ( ) : string Get the ID quote
getPma ( ) : boolean Get the PMA flag
getTable ( ) : string Get the table name
parseData ( string $to, array $options = null ) : mixed Parse the data stream and return a file data stream.
parseFile ( ) : mixed Parse the data file stream and return a PHP data object.
setIdQuote ( string $quote ) : Data Set the identifier quote
setPma ( boolean $comp ) : Data Set the PMA compatible XML flag
setTable ( string $table ) : Data Set the table name
writeData ( string $toFile, boolean $output = false, boolean $download = false ) : Data Write the data stream to a file and either save or output it

메소드 상세

__construct() 공개 메소드

Instantiate the data object.
public __construct ( string $data ) : Data
$data string
리턴 Data

factory() 공개 정적인 메소드

Static method to instantiate the data object and return itself to facilitate chaining methods together.
public static factory ( string $data ) : Data
$data string
리턴 Data

getData() 공개 메소드

Get the data stream
public getData ( ) : string
리턴 string

getFile() 공개 메소드

Get the file stream
public getFile ( ) : string
리턴 string

getIdQuote() 공개 메소드

Get the ID quote
public getIdQuote ( ) : string
리턴 string

getPma() 공개 메소드

Get the PMA flag
public getPma ( ) : boolean
리턴 boolean

getTable() 공개 메소드

Get the table name
public getTable ( ) : string
리턴 string

parseData() 공개 메소드

Parse the data stream and return a file data stream.
public parseData ( string $to, array $options = null ) : mixed
$to string
$options array
리턴 mixed

parseFile() 공개 메소드

Parse the data file stream and return a PHP data object.
public parseFile ( ) : mixed
리턴 mixed

setIdQuote() 공개 메소드

Set the identifier quote
public setIdQuote ( string $quote ) : Data
$quote string
리턴 Data

setPma() 공개 메소드

Set the PMA compatible XML flag
public setPma ( boolean $comp ) : Data
$comp boolean
리턴 Data

setTable() 공개 메소드

Set the table name
public setTable ( string $table ) : Data
$table string
리턴 Data

writeData() 공개 메소드

Write the data stream to a file and either save or output it
public writeData ( string $toFile, boolean $output = false, boolean $download = false ) : Data
$toFile string
$output boolean
$download boolean
리턴 Data

프로퍼티 상세

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

Data stream
protected string $data
리턴 string

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

Data file stream
protected string $file
리턴 string

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

Data identifier quote
protected string $idQuote
리턴 string

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

PMA compatible XML flag
protected bool $pma
리턴 boolean

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

Data table
protected string $table
리턴 string

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

Data file type
protected string $type
리턴 string