[ class tree: flatfile ] [ index: flatfile ] [ all elements ]

Class: TableUtils

Source Location: /flatfile_utils.php

Class Overview

EXPERIMENTAL: Utilities for handling definitions of tables.


Class Details

[line 42]
EXPERIMENTAL: Utilities for handling definitions of tables.

[ Top ]

Class Methods

method createDefines [line 82]

void createDefines( &$tables)

Uses 'define' to create global constants for all the column names



[ Top ]

method createRowSchema [line 101]

void createRowSchema( &$tabledef)

Creates a 'row schema' for a given table definition.

A row schema is just an array of the column types for a table, using the constants defined above.



[ Top ]

method resolveJoins [line 52]

void resolveJoins( tables &$tables)

Finds JoinColumns in an array of tables, and adds 'type' fields by looking up the columns


tables   &$tables   This should be an associative array containing 'tablename' => tabledefinition tabledefinition is itself an associativive array of 'COLUMN_NAME_CONSTANT' => columndefintion COLUMN_NAME_CONSTANT should be a unique constant within the table, and column definition should be a Column object or JoinColumn object

[ Top ]

Documentation generated on Sun, 25 Oct 2009 22:30:47 +0000 by phpDocumentor 1.4.3