SproutCMS

This is the code documentation for the SproutCMS project

function xml()

Exports a database query result as an XML file.

Usage

string|bool QueryTo::xml ( PDOStatement|array $result , array $modifiers );

Arguments

  1. PDOStatement|array $result
    Result set. N.B. the cursor on this statement WILL BE CLOSED by this function.
  2. array $modifiers
    ColModifier objects to apply result set before exporting their values,
           as column_name => ColModifier instance

Return value

  • string
    The XML file
  • bool
    False on error