wcmf logo wemove logo

DataConverter Class Reference
[Converter]

DataConverter is the base class for all converter classes. It defines the interface for converting data between storage and application. More...

Inheritance diagram for DataConverter:

Inheritance graph
[legend]

Public Member Functions

 convertStorageToApplication ($data, $type, $name)
 convertApplicationToStorage ($data, $type, $name)

Detailed Description

DataConverter is the base class for all converter classes. It defines the interface for converting data between storage and application.

wCMF - wemove Content Management Framework Copyright (C) 2005-2009 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id
class.DataConverter.php 929 2009-02-22 23:20:49Z iherwig

Author:
ingo herwig <ingo@wemove.com>

Definition at line 29 of file class.DataConverter.php.


Member Function Documentation

convertStorageToApplication ( data,
type,
name 
)

Convert data after reading from storage. This method is called by PersistenceMapper classes after reading the data from the storage.

Parameters:
data The data from storage.
type The type of data.
name The name of the data item.
Returns:
The converted data.

Reimplemented in DefaultDataConverter, HTMLDataConverter, LinkConverter, MySQLDateConverter, and XMLDataConverter.

Definition at line 39 of file class.DataConverter.php.

convertApplicationToStorage ( data,
type,
name 
)

Convert data before writing to storage. This method is called by PersistenceMapper classes before storing the data to the storage.

Parameters:
data The data from application.
type The type of data.
name The name of the data item.
Returns:
The converted data.

Reimplemented in DefaultDataConverter, HTMLDataConverter, LinkConverter, MySQLDateConverter, and XMLDataConverter.

Definition at line 51 of file class.DataConverter.php.


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

This page generated via doxygen 1.5.8 Mon Mar 30 01:58:43 2009.
Copyright © 2009 wemove digital solutions GmbH.
sourceforge logo