/sources/xml_storage.php

Description
Classes
Class Description
ocp_simple_xml_reader
Functions
export_to_xml (line 45)

Export ocPortal database tables to an equivalent XML format, automatically.

  • return: Exported data in XML format
string export_to_xml ([?array $tables = NULL], [boolean $comcode_xml = true])
  • ?array $tables: List of tables to export (NULL: all tables except those skippable)
  • boolean $comcode_xml: Whether to export Comcode as Comcode XML
find_all_xml_tables (line 26)

Find a list of all the tables that can be imported/exported as XML.

  • return: List of tables
array find_all_xml_tables ()
import_from_xml (line 209)

Import to ocPortal database table from the equivalent XML format.

  • return: List of operations performed
array import_from_xml (string $xml_data, [boolean $delete_missing_rows = false])
  • string $xml_data: Data in XML format
  • boolean $delete_missing_rows: Synchronise deletes as well as inserts/updates
make_map_nice (line 185)

Take a PHP map array, and make it look nice.

  • return: Pretty version
string make_map_nice (array $map)
  • array $map: Map array
_export_table_to_xml (line 89)

Export an ocPortal database table to an equivalent XML format.

  • return: Exported data in XML format
string _export_table_to_xml (ID_TEXT $table, boolean $comcode_xml)
  • ID_TEXT $table: Table to export
  • boolean $comcode_xml: Whether to export Comcode as Comcode XML
_tab (line 77)

Add one layer of tabbing to some XML.

  • return: XML out
string _tab (string $in)
  • string $in: XML in

Documentation generated on Sun, 02 Jan 2011 23:29:36 +0000 by phpDocumentor 1.4.3