Overview

Packages

  • CodeIgniter
    • Libraries
  • None

Classes

  • Format

Functions

  • _perform_ldap_auth
  • Overview
  • Package
  • Class
  • Tree
  • Todo

Class Format

Format class

Help convert between various formats such as XML, JSON, CSV, etc.

License: http://philsturgeon.co.uk/code/dbad-license
Author: Phil Sturgeon
Located at application/libraries/Format.php
Methods summary
public Factory
# factory( mixed $data, string $from_type = NULL )

Returns an instance of the Format object.

Returns an instance of the Format object.

echo $this->format->factory(array('foo' => 'bar'))->to_xml();

Parameters

$data
date to be converted
$from_type
format the file was provided in

Returns

Factory
public
# __construct( $data = NULL, $from_type = NULL )

Do not use this directly, call factory()

Do not use this directly, call factory()

public
# to_array( $data = NULL )
public
# to_xml( $data = NULL, $structure = NULL, $basenode = 'xml' )
public
# to_html( )
public
# to_csv( )
public
# to_json( )
public
# to_serialized( )
public
# to_php( )
protected
# _from_xml( $string )
protected
# _from_csv( $string )
Properties summary
protected array $_data
# array()
protected $_from_type
# NULL
API documentation generated by ApiGen