|
eZ Publish
[trunk]
|
Go to the source code of this file.
Enumerations | |
| enum | QUERY_LIMIT |
Variables | |
| $cli = eZCLI::instance() | |
| $customAlignAttribute = 'align' | |
| $customAlignTagList = array() | |
| $dbHost = $options['db-host'] | |
| $dbImpl = $options['db-type'] | |
| $dbName = $options['db-database'] | |
| $dbPassword = $options['db-password'] | |
| $dbUser = $options['db-user'] | |
| $extraVerbosOutput = false | |
| $options | |
| if(!is_array($xmlFieldsArray)) | $pass = 0 |
| $script | |
| $skipCustomAlign = $options['skip-custom-align'] | |
| $skipEmbedAlign = $options['skip-embed-align'] | |
| $xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) ) | |
| $xmlFieldsQuery | |
| if (!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts')) | |
| enum QUERY_LIMIT |
Definition at line 10 of file correctxmlalign.php.
| $cli = eZCLI::instance() |
Definition at line 23 of file correctxmlalign.php.
| $customAlignAttribute = 'align' |
Definition at line 53 of file correctxmlalign.php.
| $customAlignTagList = array() |
Definition at line 164 of file correctxmlalign.php.
| $dbHost = $options['db-host'] |
Definition at line 50 of file correctxmlalign.php.
| $dbImpl = $options['db-type'] |
Definition at line 52 of file correctxmlalign.php.
| $dbName = $options['db-database'] |
Definition at line 51 of file correctxmlalign.php.
| $dbPassword = $options['db-password'] |
Definition at line 49 of file correctxmlalign.php.
| $dbUser = $options['db-user'] |
Definition at line 48 of file correctxmlalign.php.
| $extraVerbosOutput = false |
Definition at line 13 of file correctxmlalign.php.
| $options |
$script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:][skip-embed-align][skip-custom-align][custom-align-attribute]", '', array( 'db-host' => "Database host", 'db-user' => "Database user", 'db-password' => "Database password", 'db-database' => "Database name", 'db-type' => "Database type, e.g. mysql or postgresql", 'skip-embed-align' => "Skip adding align='right' on <embed> and <embed-inline> on tags that don't have these.", 'skip-custom-align' => "Skip converting custom:align attribute to align attribute on supported tags.", 'custom-align-attribute' => "Lets you specify name of custom:align attribute, default is 'align'." ) )
Definition at line 35 of file correctxmlalign.php.
| if (!is_array($xmlFieldsArray)) $pass = 0 |
Definition at line 163 of file correctxmlalign.php.
Referenced by databaseCleanup(), dfsCleanup(), eZTextFileUser\loginUser(), and testPHPIni().
eZScript::instance( array( 'description' => "\nThis script performs tasks needed to upgrade to 4.1:\n" . "\n- Converting custom:align attributes to align attiribute on supported tags" . "\n- Setting missing align attribute on <embed> and <embed-inline> to align=right." . "\nYou can optionally perform only some of these tasks.", 'use-session' => false, 'use-modules' => false, 'use-extensions' => true ) )
Definition at line 25 of file correctxmlalign.php.
| $skipCustomAlign = $options['skip-custom-align'] |
Definition at line 56 of file correctxmlalign.php.
| $skipEmbedAlign = $options['skip-embed-align'] |
Definition at line 55 of file correctxmlalign.php.
| $xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) ) |
Definition at line 155 of file correctxmlalign.php.
| $xmlFieldsQuery |
"SELECT id, version, contentobject_id, data_text FROM ezcontentobject_attribute WHERE data_type_string = 'ezxmltext'"
Definition at line 151 of file correctxmlalign.php.
| if(!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts')) |
Definition at line 15 of file correctxmlalign.php.