PHP Class Pop\Data\Data

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Instantiate the data object.
public __construct ( string $data ) : Data
$data string
Résultat Data

factory() public static méthode

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

getData() public méthode

Get the data stream
public getData ( ) : string
Résultat string

getFile() public méthode

Get the file stream
public getFile ( ) : string
Résultat string

getIdQuote() public méthode

Get the ID quote
public getIdQuote ( ) : string
Résultat string

getPma() public méthode

Get the PMA flag
public getPma ( ) : boolean
Résultat boolean

getTable() public méthode

Get the table name
public getTable ( ) : string
Résultat string

parseData() public méthode

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

parseFile() public méthode

Parse the data file stream and return a PHP data object.
public parseFile ( ) : mixed
Résultat mixed

setIdQuote() public méthode

Set the identifier quote
public setIdQuote ( string $quote ) : Data
$quote string
Résultat Data

setPma() public méthode

Set the PMA compatible XML flag
public setPma ( boolean $comp ) : Data
$comp boolean
Résultat Data

setTable() public méthode

Set the table name
public setTable ( string $table ) : Data
$table string
Résultat Data

writeData() public méthode

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
Résultat Data

Property Details

$data protected_oe property

Data stream
protected string $data
Résultat string

$file protected_oe property

Data file stream
protected string $file
Résultat string

$idQuote protected_oe property

Data identifier quote
protected string $idQuote
Résultat string

$pma protected_oe property

PMA compatible XML flag
protected bool $pma
Résultat boolean

$table protected_oe property

Data table
protected string $table
Résultat string

$type protected_oe property

Data file type
protected string $type
Résultat string