class Doctrine_Parser_Json extends Doctrine_Parser (View source)

Doctrine_Parser_Json

Methods

void
loadData(string $path)

loadData

void
dumpData(string $array, string $path = null, string $charset = null)

dumpData

static void
getParser(string $type)

getParser

static void
load(string $path, string $type = 'xml')

load

static void
dump($array, $type = 'xml', $path = null, $charset = null)

dump

void
doLoad(string $path)

doLoad

void
doDump(string $data, string $path = null)

doDump

Details

void loadData(string $path)

loadData

Load and unserialize data from a file or from passed data

Parameters

string $path Path to dump data to

Return Value

void

void dumpData(string $array, string $path = null, string $charset = null)

dumpData

Dump an array of data to a specified path or return

Parameters

string $array
string $path
string $charset The charset of the data being dumped

Return Value

void

static void getParser(string $type)

getParser

Get instance of the specified parser

Parameters

string $type

Return Value

void

static void load(string $path, string $type = 'xml')

load

Interface for loading and parsing data from a file

Parameters

string $path
string $type

Return Value

void

static void dump($array, $type = 'xml', $path = null, $charset = null)

dump

Interface for pulling and dumping data to a file

Parameters

$array
$type
$path
$charset

Return Value

void

void doLoad(string $path)

doLoad

Get contents whether it is the path to a file file or a string of txt. Either should allow php code in it.

Parameters

string $path

Return Value

void

void doDump(string $data, string $path = null)

doDump

Parameters

string $data
string $path

Return Value

void