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

Class: MDB2_Schema_Parser2

Source Location: /MDB2_Schema-0.8.6/MDB2/Schema/Parser2.php

Class Overview

XML_Unserializer
   |
   --MDB2_Schema_Parser2

Parses an XML schema file


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
Parses an XML schema file


[ Top ]


Class Variables

$constraint = array()

[line 91]


Type:   mixed


[ Top ]

$constraint_name =  ''

[line 93]


Type:   mixed


[ Top ]

$database_definition = array()

[line 65]


Type:   mixed


[ Top ]

$database_loaded = array()

[line 67]


Type:   mixed


[ Top ]

$error =

[line 71]


Type:   mixed


[ Top ]

$field = array()

[line 83]


Type:   mixed


[ Top ]

$field_name =  ''

[line 85]


Type:   mixed


[ Top ]

$index = array()

[line 87]


Type:   mixed


[ Top ]

$index_name =  ''

[line 89]


Type:   mixed


[ Top ]

$init = array()

[line 99]


Type:   mixed


[ Top ]

$options = array()

[line 77]


Type:   mixed


[ Top ]

$sequence = array()

[line 95]


Type:   mixed


[ Top ]

$sequence_name =  ''

[line 97]


Type:   mixed


[ Top ]

$structure =  false

[line 73]


Type:   mixed


[ Top ]

$table = array()

[line 79]


Type:   mixed


[ Top ]

$table_name =  ''

[line 81]


Type:   mixed


[ Top ]

$val =

[line 75]


Type:   mixed


[ Top ]

$variables = array()

[line 69]


Type:   mixed


[ Top ]



Method Detail

MDB2_Schema_Parser2 (Constructor)   [line 166]

void MDB2_Schema_Parser2( array $variables, [bool $fail_on_invalid_names = true], [array $structure = false], [array $valid_types = array()], [bool $force_defaults = true], [int $max_identifiers_length = null])

PHP 4 compatible constructor
  • Access: public

Parameters:

array   $variables   —  mixed array with user defined schema variables
bool   $fail_on_invalid_names   —  array with reserved words per RDBMS
array   $structure   —  multi dimensional array with database schema and data
array   $valid_types   —  information of all valid fields types
bool   $force_defaults   —  if true sets a default value to field when not explicit
int   $max_identifiers_length   —  maximum allowed size for entities name

[ Top ]

__construct (Constructor)   [line 121]

void __construct( array $variables, [bool $fail_on_invalid_names = true], [array $structure = false], [array $valid_types = array()], [bool $force_defaults = true], [int $max_identifiers_length = null])

PHP 5 constructor
  • Access: public

Parameters:

array   $variables   —  mixed array with user defined schema variables
bool   $fail_on_invalid_names   —  array with reserved words per RDBMS
array   $structure   —  multi dimensional array with database schema and data
array   $valid_types   —  information of all valid fields types
bool   $force_defaults   —  if true sets a default value to field when not explicit
int   $max_identifiers_length   —  maximum allowed size for entities name

[ Top ]

parse   [line 180]

bool|error parse( )

Main method. Parses XML Schema File.
  • Return: object
  • Access: public

[ Top ]

setInputFile   [line 201]

boolean setInputFile( string $filename)

Do the necessary stuff to set the input XML schema file
  • Return: MDB2_OK on success
  • Access: public

Parameters:

string   $filename   —  full path to schema file

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:04:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.