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

Class: MDB2_Tools_Manager_Writer

Source Location: /MDB2-2.0.0beta3/MDB2/Tools/Manager/Writer.php

Class Overview




Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]


[ Top ]


Method Detail

dumpDatabase   [line 191]

mixed dumpDatabase( $database_definition, array $arguments, [integer $dump = MDB2_MANAGER_DUMP_ALL])

Dump a previously parsed database structure in the Metabase schema XML based format suitable for the Metabase parser. This function may optionally dump the database definition with initialization commands that specify the data that is currently present in the tables.
  • Return: MDB2_OK on success, or a MDB2 error object
  • Access: public

Parameters:

array   $arguments   —  an associative array that takes pairs of tag names and values that define dump options. array ( 'output_mode' => String 'file' : dump into a file default: dump using a function 'output' => String depending on the 'Output_Mode' name of the file name of the function 'end_of_line' => String end of line delimiter that should be used default: "\n" );
integer   $dump   —  constant that determines what data to dump MDB2_MANAGER_DUMP_ALL : the entire db MDB2_MANAGER_DUMP_STRUCTURE : only the structure of the db MDB2_MANAGER_DUMP_CONTENT : only the content of the db
   $database_definition   — 

[ Top ]

dumpSequence   [line 143]

mixed dumpSequence( $sequence_definition, string $sequence_name, string $eol, [ $dump = MDB2_MANAGER_DUMP_ALL])

dump the structure of a sequence
  • Return: string with xml seqeunce definition on success, or a MDB2 error object
  • Access: public

Parameters:

string   $sequence_name   — 
string   $eol   — 
   $sequence_definition   — 
   $dump   — 

[ Top ]

raiseError   [line 81]

object a &raiseError( [mixed $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null], mixed $nativecode)

This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.
  • Return: PEAR error object
  • See: PEAR_Error
  • Access: public

Parameters:

mixed   $code   —  integer error code, or a PEAR error object (all other parameters are ignored if this parameter is an object
int   $mode   —  error mode, see PEAR_Error docs
mixed   $options   —  If error mode is PEAR_ERROR_TRIGGER, this is the error level (E_USER_NOTICE etc). If error mode is PEAR_ERROR_CALLBACK, this is the callback function, either as a function name, or as an array of an object and method name. For other error modes this parameter is ignored.
string   $userinfo   —  Extra debug information. Defaults to the last query and native error code.
mixed   $nativecode   —  Native error code, integer or string depending the backend.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:28:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.