|
eZ Publish
[trunk]
|
Go to the source code of this file.
Variables | |
| $cli = eZCLI::instance() | |
| $db = eZDB::instance() | |
| if(!$db->IsConnected) | $dbSchema = eZDbSchema::instance( $db ) |
| $dbschemaParameters | |
| $fileNameDba = 'db_data.dba' | |
| $fileNameSql = 'cleandata.sql' | |
| $includeData = true | |
| $includeSchema = false | |
| $options | |
| $script | |
| $stdOutDBA = null | |
| $stdOutSQL = null | |
| if(isset($options['filename-sql'])) if(isset($options['filename-dba'])) if(isset($options['stdout-sql'])!==null) if(isset($options['stdout-dba'])!==null) | $tableType = $db->databaseName() === 'mysql' ? 'InnoDB' : null |
| $cli = eZCLI::instance() |
Definition at line 19 of file ezsqldumpisbndata.php.
| $db = eZDB::instance() |
Definition at line 53 of file ezsqldumpisbndata.php.
| if (!$db->IsConnected) $dbSchema = eZDbSchema::instance( $db ) |
Definition at line 97 of file ezsqldumpisbndata.php.
Referenced by eZDataType\importDBDataFromDBAFile(), eZStepCreateSites\initializePackage(), loadDatabaseSchema(), and loadLintSchema().
| $dbschemaParameters |
array( 'schema' => $includeSchema, 'data' => $includeData, 'format' => 'generic', 'meta_data' => null, 'table_type' => $tableType, 'table_charset' => null, 'compatible_sql' => true, 'allow_multi_insert' => null, 'diff_friendly' => null, 'table_include' => array( 'ezisbn_group', 'ezisbn_group_range', 'ezisbn_registrant_range' ) )
Definition at line 124 of file ezsqldumpisbndata.php.
| $fileNameDba = 'db_data.dba' |
Definition at line 14 of file ezsqldumpisbndata.php.
| $fileNameSql = 'cleandata.sql' |
Definition at line 15 of file ezsqldumpisbndata.php.
| $includeData = true |
Definition at line 122 of file ezsqldumpisbndata.php.
Referenced by eZDBSchemaInterface\insertSchema(), eZDBSchemaInterface\writeArraySchemaFile(), eZDBSchemaInterface\writeSerializedSchemaFile(), and eZDBSchemaInterface\writeSQLSchemaFile().
| $includeSchema = false |
Definition at line 121 of file ezsqldumpisbndata.php.
Referenced by eZDBSchemaInterface\insertSchema(), eZDBSchemaInterface\writeArraySchemaFile(), eZDBSchemaInterface\writeSerializedSchemaFile(), and eZDBSchemaInterface\writeSQLSchemaFile().
| $options |
$script->getOptions( "[stdout-sql][stdout-dba][filename-sql:][filename-dba:][db-host:][db-user:][db-password:][db-database:][db-driver:]", "", array( 'stdout-sql' => "Result of sql output will be printed to standard output instead of to file.", 'stdout-dba' => "Result of dba output will be printed to standard output instead of to file.", 'filename-sql' => "Custom name for the sql file. Will be stored in the directory: \n" . "kernel/classes/datatypes/ezisbn/sql/<database>/", 'filename-dba' => "Custom name for the dba file. Will be stored in the directory: \n" . "kernel/classes/datatypes/ezisbn/share/", 'db-host' => "Database host.", 'db-user' => "Database user.", 'db-password' => "Database password.", 'db-database' => "Database name.", 'db-driver' => "Database driver." ) )
Definition at line 39 of file ezsqldumpisbndata.php.
eZScript::instance( array( 'description' => ( "eZ Publish SQL Isbn data dump\n\n" . "Dump sql data to file or standard output from the tables:\n" . " ezisbn_group\n" . " ezisbn_group_range\n" . " ezisbn_registrant_range\n\n" . "Default is file, wich will be written to:\n" . " kernel/classes/datatypes/ezisbn/sql/<database>/cleandata.sql\n" . " kernel/classes/datatypes/ezisbn/share/db_data.dba\n\n" . "Script can be run as:\n" . "php bin/php/ezsqldumpisbndata.php --stdout-sql\n" . " --stdout-dba\n" . " --filename-sql=customname.sql\n" . " --filename-dba=customname.dba" ), 'use-session' => false, 'use-modules' => true, 'use-extensions' => true ) )
Definition at line 20 of file ezsqldumpisbndata.php.
| $stdOutDBA = null |
Definition at line 17 of file ezsqldumpisbndata.php.
| $stdOutSQL = null |
Definition at line 16 of file ezsqldumpisbndata.php.