PHP Класс Pop\Data\Data

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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