|
eZ Publish
[4.2]
|
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 | |
| $isQuiet = $script->isQuiet() | |
| $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 30 of file correctxmlalign.php.
| $cli = eZCLI::instance() |
Definition at line 43 of file correctxmlalign.php.
| $customAlignAttribute = 'align' |
Definition at line 73 of file correctxmlalign.php.
| $customAlignTagList = array() |
Definition at line 186 of file correctxmlalign.php.
| $dbHost = $options['db-host'] |
Definition at line 70 of file correctxmlalign.php.
| $dbImpl = $options['db-type'] |
Definition at line 72 of file correctxmlalign.php.
| $dbName = $options['db-database'] |
Definition at line 71 of file correctxmlalign.php.
| $dbPassword = $options['db-password'] |
Definition at line 69 of file correctxmlalign.php.
| $dbUser = $options['db-user'] |
Definition at line 68 of file correctxmlalign.php.
| $extraVerbosOutput = false |
Definition at line 33 of file correctxmlalign.php.
| $isQuiet = $script->isQuiet() |
Definition at line 81 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 55 of file correctxmlalign.php.
| if (!is_array($xmlFieldsArray)) $pass = 0 |
Definition at line 185 of file correctxmlalign.php.
Referenced by eZTextFileUser\loginUser().
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 45 of file correctxmlalign.php.
| $skipCustomAlign = $options['skip-custom-align'] |
Definition at line 76 of file correctxmlalign.php.
| $skipEmbedAlign = $options['skip-embed-align'] |
Definition at line 75 of file correctxmlalign.php.
| $xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) ) |
Definition at line 177 of file correctxmlalign.php.
| $xmlFieldsQuery |
"SELECT id, version, contentobject_id, data_text FROM ezcontentobject_attribute WHERE data_type_string = 'ezxmltext'"
Definition at line 173 of file correctxmlalign.php.
| if(!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts')) |
Definition at line 35 of file correctxmlalign.php.
Referenced by Cpdf\output().