[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/database/src/ -> DatabaseExporter.php (summary)

Part of the Joomla Framework Database Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 321 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  __construct()
  __toString()
  asXml()
  from()
  getGenericTableName()
  setDbo()
  withStructure()
  withData()
  buildXmlData()

Functions
Functions that are not part of a class:

__construct()   X-Ref
Constructor.

Sets up the default options for the exporter.


__toString()   X-Ref
Magic function to exports the data to a string.

return: string

asXml()   X-Ref
Set the output option for the exporter to XML format.

return: $this

from($from)   X-Ref
Specifies a list of table names to export.

param: string[]|string  $from  The name of a single table, or an array of the table names to export.
return: $this

getGenericTableName($table)   X-Ref
Get the generic name of the table, converting the database prefix to the wildcard string.

param: string  $table  The name of the table.
return: string  The name of the table with the database prefix replaced with #__.

setDbo(DatabaseInterface $db)   X-Ref
Sets the database connector to use for importing structure and/or data.

param: DatabaseInterface  $db  The database connector.
return: $this

withStructure($setting = true)   X-Ref
Sets an internal option to export the structure of the input table(s).

param: boolean  $setting  True to export the structure, false to not.
return: $this

withData($setting = false)   X-Ref
Sets an internal option to export the data of the input table(s).

param: boolean  $setting  True to export the data, false to not.
return: $this

buildXmlData()   X-Ref
Builds the XML data to export.

return: array  An array of XML lines (strings).



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer