Gumbo_Interface_Converter



Converter Interface, convert data from one type to another

A Converter is responsible for changing data from form to another. The Library provides a Blank Converter. This will simply return the data as it's passed.

A single Converter will be responsible for performing multiple conversion tasks. The Interface defines a way to convert 'data' to a particular format (as 'to' argument). The details are defined by the class implementation.

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Interface Methods

public mixed convert ( mixed $data, [string $to] ) [line 48]

Converts one variable type to another

Parameter(s):

  • (mixed) $data
  • (string) $to

[ Top ]