Property | Type | Description | |
---|---|---|---|
$continueOnError | Continue SQL execution if errors occur | ||
$currentElement | Current XML element | ||
$db | ADOdb connection object | ||
$debug | System debug | ||
$dict | ADOdb Data Dictionary | ||
$executeInline | Execute SQL inline as it is generated | ||
$mgq | Original Magic Quotes Runtime value | ||
$objectPrefix | Optional object prefix | ||
$schemaVersion | Current schema version | ||
$sqlArray | Array containing SQL queries to generate all objects | ||
$success | Success of last Schema execution | ||
$upgrade | If set (to 'ALTER' or 'REPLACE'), upgrade an existing database | ||
$versionRegex | Regular expression to find schema version |
Method | Description | |
---|---|---|
ContinueOnError ( boolean $mode = NULL ) : boolean | Enables/disables SQL continue on error. | |
ConvertSchemaFile ( string $filename, string $newVersion = NULL, string $newFile = NULL ) : string | Converts an XML schema file to the specified DTD version. | |
ConvertSchemaString ( string $schema, string $newVersion = NULL, string $newFile = NULL ) : string | Converts an XML schema string to the specified DTD version. | |
Destroy ( ) | Destroys an adoSchema object. | |
ExecuteInline ( boolean $mode = NULL ) : boolean | Enables/disables inline SQL execution. | |
ExecuteSchema ( array $sqlArray = NULL, boolean $continueOnErr = NULL ) | Applies the current XML schema to the database (post execution). | |
ExtractSchema ( boolean $data = FALSE ) : string | Extracts an XML schema from an existing database. | |
ParseSchema ( $filename, boolean $returnSchema = FALSE ) : array | Loads an XML schema from a file and converts it to SQL. | |
ParseSchemaFile ( $filename, boolean $returnSchema = FALSE ) : array | Loads an XML schema from a file and converts it to SQL. | |
ParseSchemaString ( string $xmlstring, boolean $returnSchema = FALSE ) : array | Converts an XML schema string to SQL. | |
PrintSQL ( string $format = 'NONE' ) : array | Returns the current SQL array. | |
RemoveSchema ( $filename, boolean $returnSchema = FALSE ) : array | Loads an XML schema from a file and converts it to uninstallation SQL. | |
RemoveSchemaString ( string $schema, boolean $returnSchema = FALSE ) : array | Converts an XML schema string to uninstallation SQL. | |
SaveSQL ( string $filename = './schema.sql' ) : boolean | Saves the current SQL array to the local filesystem as a list of SQL queries. | |
SchemaFileVersion ( string $filename ) : string | Returns the AXMLS Schema Version of the requested XML schema file. | |
SchemaStringVersion ( string $xmlstring ) : string | Returns the AXMLS Schema Version of the provided XML schema string. | |
SetPrefix ( string $prefix = '', boolean $underscore = TRUE ) : boolean | Sets a prefix for database objects | |
SetUpgradeMethod ( string $method = '' ) | Sets the method to be used for upgrading an existing database | |
TransformSchema ( $schema, $xsl, $schematype = 'string' ) | ||
_file_get_contents ( $path ) | compat for pre-4.3 - jlim | |
_tag_cdata ( &$parser, $cdata ) | XML Callback to process CDATA elements | |
_tag_close ( &$parser, $tag ) | XML Callback to process end elements | |
_tag_open ( &$parser, $tag, $attributes ) | XML Callback to process start elements | |
addSQL ( mixed $sql = NULL ) : boolean | Adds SQL into the SQL array. | |
adoSchema ( object $db ) | Creates an adoSchema object | |
clearSQL ( ) | Clears the array of generated SQL. | |
create_parser ( ) : object | Create an xml parser | |
getSQL ( string $format = NULL, $sqlArray = NULL ) : mixed | Gets the SQL array in the specified format. | |
prefix ( string $name = '' ) : string | Returns an object name with the current prefix prepended. | |
supportedPlatform ( string $platform = NULL ) | Checks if element references a specific platform | |
xslt_error_handler ( object $parser, integer $errno, integer $level, array $fields ) | Processes XSLT transformation errors |
public ContinueOnError ( boolean $mode = NULL ) : boolean | ||
$mode | boolean | execute |
return | boolean | current continueOnError mode |
public ConvertSchemaFile ( string $filename, string $newVersion = NULL, string $newFile = NULL ) : string | ||
$filename | string | Name of XML schema file that will be converted. |
$newVersion | string | DTD version to convert to. |
$newFile | string | File name of (converted) output file. |
return | string | Converted XML schema or FALSE if an error occurs. |
public ConvertSchemaString ( string $schema, string $newVersion = NULL, string $newFile = NULL ) : string | ||
$schema | string | String containing XML schema that will be converted. |
$newVersion | string | DTD version to convert to. |
$newFile | string | File name of (converted) output file. |
return | string | Converted XML schema or FALSE if an error occurs. |
public Destroy ( ) |
public ExecuteInline ( boolean $mode = NULL ) : boolean | ||
$mode | boolean | execute |
return | boolean | current execution mode |
public ExecuteSchema ( array $sqlArray = NULL, boolean $continueOnErr = NULL ) | ||
$sqlArray | array | Array of SQL statements that will be applied rather than the current schema. |
$continueOnErr | boolean | Continue to apply the schema even if an error occurs. |
public ExtractSchema ( boolean $data = FALSE ) : string | ||
$data | boolean | Include data in schema dump |
return | string | Generated XML schema |
public ParseSchema ( $filename, boolean $returnSchema = FALSE ) : array | ||
$returnSchema | boolean | Return schema rather than parsing. |
return | array | Array of SQL queries, ready to execute |
public ParseSchemaFile ( $filename, boolean $returnSchema = FALSE ) : array | ||
$returnSchema | boolean | Return schema rather than parsing. |
return | array | Array of SQL queries, ready to execute. |
public RemoveSchema ( $filename, boolean $returnSchema = FALSE ) : array | ||
$returnSchema | boolean | Return schema rather than parsing. |
return | array | Array of SQL queries, ready to execute |
public SchemaFileVersion ( string $filename ) : string | ||
$filename | string | AXMLS schema file |
return | string | Schema version number or FALSE on error |
public SchemaStringVersion ( string $xmlstring ) : string | ||
$xmlstring | string | XML schema string |
return | string | Schema version number or FALSE on error |
public SetUpgradeMethod ( string $method = '' ) | ||
$method | string | Upgrade method (ALTER|REPLACE|BEST|NONE) |
public _tag_cdata ( &$parser, $cdata ) |
public _tag_close ( &$parser, $tag ) |
public _tag_open ( &$parser, $tag, $attributes ) |
public create_parser ( ) : object | ||
return | object | PHP XML parser object |
public supportedPlatform ( string $platform = NULL ) | ||
$platform | string | Requested platform |
public $upgrade |