bracket_xml.inc File Reference

Functions

 bracket_xml_export ($node, $opt= 'bracket')
 bracket_xml_import ($path, &$node, $opt= 'bracket')
 bracket_xml_string_import ($xml, &$node, $opt= 'bracket')
 bracket_xml_import_bracket (&$node, $values)
 bracket_xml_import_results (&$node, $values)

Detailed Description

This file contains the xml helper functions for the bracket module

Author:
Jim Bullington <jimb@jrbcs.com>

Function Documentation

bracket_xml_export ( node,
opt = 'bracket' 
)

Format the bracket as an xml document

Parameters:
$node the node object containing the bracket
$opt option - 'bracket' = export entire bracket, 'results' = export results only
Returns:
a string containing an XML document representing the bracket
bracket_xml_import ( path,
&$  node,
opt = 'bracket' 
)

Import a bracket from an xml document

Parameters:
$path the path to the xml document
$node the node object to receive the bracket
$opt option - 'bracket' = import entire bracket, 'results' = import competitors from results export matching seeds
Returns:
TRUE if bracket was imported, FALSE if an error occurred
bracket_xml_import_bracket ( &$  node,
values 
)

Import a complete bracket

Parameters:
$node the node object to receive the bracket
$values the values from xml_parse_into_struct()
bracket_xml_import_results ( &$  node,
values 
)

Import bracket results matching seeds

Parameters:
$node the node object to receive the bracket
$values the values from xml_parse_into_struct()
bracket_xml_string_import ( xml,
&$  node,
opt = 'bracket' 
)

Import a bracket from an xml string

Parameters:
$xml the xml document to import
$node the node object to receive the bracket
$opt option - 'bracket' = import entire bracket, 'results' = import competitors from results export matching seeds
Returns:
TRUE if bracket was imported, FALSE if an error occurred
 All Data Structures Files Functions Variables
Generated on Sat Jul 10 15:07:40 2010 by  doxygen 1.6.3