MysqliExporter

Extends DatabaseExporter

MySQLi Database Exporter.

since

1.0

package

Joomla Framework

Methods

__construct

Constructor.

__construct() : 
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() : 
inherited
since

1.0

Response

string

asXml

Set the output option for the exporter to XML format.

asXml() : 
inherited
since

1.0

Response

$this

buildXml

Builds the XML data for the tables to export.

buildXml() : 
since

1.0

throws

Exceptionif an error occurs.

Response

stringAn XML string

buildXmlData

Builds the XML data to export.

buildXmlData() : mixed||string|int
inherited
since

2.0.0

throws

Exceptionif an error occurs.

Response

array<string|int, mixed>An array of XML lines (strings).

buildXmlStructure

Builds the XML structure to export.

buildXmlStructure() : mixed||string|int
since

1.0

throws

Exceptionif an error occurs.

Response

array<string|int, mixed>An array of XML lines (strings).

check

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

check() : 
since

1.0

throws

RuntimeException

Response

$this

from

Specifies a list of table names to export.

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

1.0

throws

InvalidArgumentException

Arguments

from

array<string|int, 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( table) : 
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) : 
inherited
since

1.0

Arguments

db

DatabaseInterfaceThe database connector.

Response

$this

withData

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

withData( setting = false) : 
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( setting = true) : 
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<string|int, mixed>

db

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

inherited
since

1.0

Type(s)

DatabaseInterface

from

An array input sources (table names).

inherited
since

1.0

Type(s)

array<string|int, string>

options

An array of options for the exporter.

inherited
since

1.0

Type(s)

stdClass