Campustream 1.0
A social network MQP for WPI
xml Class Reference

Static Public Member Functions

static encode_array ($array, $root, $name)
static encode_rss ($stories)

Detailed Description

Helper class for dealing with XML

Definition at line 7 of file xml.php.


Member Function Documentation

static encode_array ( array,
root,
name 
) [static]

Given an array, encode it as XML

Parameters:
$arrayThe array to encode
$rootThe root element of the XML tree
$nameThe name of each array item in the XML tree

Definition at line 16 of file xml.php.

static encode_rss ( stories) [static]

Encode an array as RSS feed

Definition at line 41 of file xml.php.


The documentation for this class was generated from the following file: