PgsqlExporter

Extends DatabaseExporter

PDO PostgreSQL Database Exporter.

since

1.5.0

package

Joomla Framework

Methods

__construct

Constructor.

__construct() : mixed
inherited

Sets up the default options for the exporter.

since

1.0

Response

mixed

__toString

Magic function to exports the data to a string.

__toString() : string
inherited
since

1.0

Response

string

asXml

Set the output option for the exporter to XML format.

asXml() : $this
inherited
since

1.0

Response

$this

buildXml

Builds the XML data for the tables to export.

buildXml() : string
inherited abstract
since

1.0

throws

\Exceptionif an error occurs.

Response

stringAn XML string

buildXmlData

Builds the XML data to export.

buildXmlData() : array
inherited
since

2.0.0

throws

\Exceptionif an error occurs.

Response

arrayAn array of XML lines (strings).

buildXmlStructure

Builds the XML structure to export.

buildXmlStructure() : array
inherited abstract
since

1.0

throws

\Exceptionif an error occurs.

Response

arrayAn array of XML lines (strings).

check

Checks if all data and options are in order prior to exporting.

check() : $this
inherited abstract
since

1.0

throws

\Exceptionif an error is encountered.

Response

$this

from

Specifies a list of table names to export.

from(string[]|string from) : $this
inherited
since

1.0

throws

\InvalidArgumentException

Arguments

from

string[]|stringThe name of a single table, or an array of the table names to export.

Response

$this

getGenericTableName

Get the generic name of the table, converting the database prefix to the wildcard string.

getGenericTableName(string table) : string
inherited
since

1.0

Arguments

table

stringThe name of the table.

Response

stringThe name of the table with the database prefix replaced with #__.

setDbo

Sets the database connector to use for importing structure and/or data.

setDbo(\Joomla\Database\DatabaseInterface db) : $this
inherited
since

1.0

Arguments

db

\Joomla\Database\DatabaseInterfaceThe database connector.

Response

$this

withData

Sets an internal option to export the data of the input table(s).

withData(bool setting = false) : $this
inherited
since

2.0.0

Arguments

setting

boolTrue to export the data, false to not.

Response

$this

withStructure

Sets an internal option to export the structure of the input table(s).

withStructure(bool setting = true) : $this
inherited
since

1.0

Arguments

setting

boolTrue to export the structure, false to not.

Response

$this

Properties

asFormat

The type of output format.

inherited
since

1.0

Type(s)

string

cache

An array of cached data.

inherited
since

1.0

Type(s)

array

db

The database connector to use for exporting structure and/or data.

inherited
since

1.0

Type(s)

\Joomla\Database\DatabaseInterface

from

An array input sources (table names).

inherited
since

1.0

Type(s)

string[]

options

An array of options for the exporter.

inherited
since

1.0

Type(s)

\stdClass