|
eZ Publish
[trunk]
|
Go to the source code of this file.
Functions | |
| backupTables ($stage) | |
| calltostring ($func, $args) | |
| if($siteAccess) | changeSiteAccessSetting ($siteAccess) |
| createURLListCondition ($rows, $sqlField= 'id', $fieldKey= 'id') | |
| decodeAction ($destination) | |
| decodeNodeID ($destination) | |
| if($options['no-import']) if($options['import']) if($options['import-nodes']) if($options['import-aliases']) if($options['import-redirections']) if($options['import-wildcards']) if($options['no-update-nodes']) if($options['update-nodes']) | displayProgress ($statusCharacter, $startTime, $currentCount, $totalCount, $currentColumn) |
| fetchHistoricRedirectionChunk ($offset, $fetchLimit) | |
| fetchHistoricRedirectionCount () | |
| fetchHistoricURLChunk ($offset, $fetchLimit) | |
| fetchHistoricURLCount () | |
| fetchHistoricWildcardChunk ($offset, $fetchLimit) | |
| fetchHistoricWildcardCount () | |
| fetchMaskByNodeID ($nodeID) | |
| fetchPathIdentificationString ($nodeID) | |
| fetchPathIdentificationStringChunk ($offset, $fetchLimit) | |
| fetchPathIdentificationStringCount () | |
| formatTime ($totalTime) | |
| isAlwaysAvailable ($nodeID) | |
| logError ($msg) | |
| logStore ($res, $func, $args) | |
| logStoreError ($res, $func, $args) | |
| markAsImported ($rows) | |
| removeURLList ($rows) | |
| resetErrorLog () | |
| resetLogFile ($file) | |
| resetStorageLog () | |
| verifyData (&$result, $url, $id) | |
| verifyDataInternal (&$result, $error) | |
| verifyNodeData (&$result, $node) | |
Variables | |
| if($options['verify-data']) if($options['interactive']) | $backupTables = false |
| $backupTableSuffix = false | |
| $cli = eZCLI::instance() | |
| $columnWidth = 72 | |
| $db = eZDb::instance() | |
| $dbHost = isset( $options['db-host'] ) && $options['db-host'] ? $options['db-host'] : false | |
| $dbImpl = $options['db-driver'] ? $options['db-driver'] : false | |
| $dbName = $options['db-database'] ? $options['db-database'] : false | |
| $dbPassword = $options['db-password'] ? $options['db-password'] : false | |
| $dbUser = $options['db-user'] ? $options['db-user'] : false | |
| $fetchLimit = 200 | |
| $globalStartTime = microtime( true ) | |
| if($options['backup-tables']!==null) | $importNodes = false |
| $importOldAlias = false | |
| $importOldAliasRedirections = false | |
| $importOldAliasWildcard = false | |
| $interactive = false | |
| if($options['column-width']!==null) | $maxColumn = max( $columnWidth - $percentLength - $timeLength, $percentLength + $timeLength + 1 ) |
| $options | |
| if($options['fetch-limit']!==null) | $percentLength = 6 |
| $performVerification = false | |
| $script | |
| $showSQL = $options['sql'] ? true : false | |
| $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false | |
| $timeLength = 12 | |
| $totalChangedNodes = 0 | |
| $totalNodeCount = 0 | |
| $updateNodeAlias = true | |
| $urlCount = 0 | |
| backupTables | ( | $ | stage | ) |
Definition at line 597 of file updateniceurls.php.
| calltostring | ( | $ | func, |
| $ | args | ||
| ) |
Definition at line 531 of file updateniceurls.php.
Referenced by logStore(), and logStoreError().
| if ($siteAccess) changeSiteAccessSetting | ( | $ | siteAccess | ) |
Definition at line 75 of file updateniceurls.php.
| createURLListCondition | ( | $ | rows, |
| $ | sqlField = 'id', |
||
| $ | fieldKey = 'id' |
||
| ) |
Definition at line 455 of file updateniceurls.php.
Referenced by fetchPathIdentificationStringChunk(), markAsImported(), and removeURLList().
| decodeAction | ( | $ | destination | ) |
Definition at line 277 of file updateniceurls.php.
| decodeNodeID | ( | $ | destination | ) |
Definition at line 293 of file updateniceurls.php.
Referenced by eZTemplateCacheFunction\processCached(), and eZTemplateCacheFunction\templateNodeTransformation().
| if ($options['no-import']) if ($options['import']) if ($options['import-nodes']) if ($options['import-aliases']) if ($options['import-redirections']) if ($options['import-wildcards']) if ($options['no-update-nodes']) if ($options['update-nodes']) displayProgress | ( | $ | statusCharacter, |
| $ | startTime, | ||
| $ | currentCount, | ||
| $ | totalCount, | ||
| $ | currentColumn | ||
| ) |
Definition at line 209 of file updateniceurls.php.
| fetchHistoricRedirectionChunk | ( | $ | offset, |
| $ | fetchLimit | ||
| ) |
Definition at line 394 of file updateniceurls.php.
Definition at line 365 of file updateniceurls.php.
| fetchHistoricURLChunk | ( | $ | offset, |
| $ | fetchLimit | ||
| ) |
Definition at line 383 of file updateniceurls.php.
Definition at line 356 of file updateniceurls.php.
| fetchHistoricWildcardChunk | ( | $ | offset, |
| $ | fetchLimit | ||
| ) |
Definition at line 405 of file updateniceurls.php.
Definition at line 374 of file updateniceurls.php.
| fetchMaskByNodeID | ( | $ | nodeID | ) |
Definition at line 255 of file updateniceurls.php.
Referenced by isAlwaysAvailable().
| fetchPathIdentificationString | ( | $ | nodeID | ) |
Definition at line 416 of file updateniceurls.php.
| fetchPathIdentificationStringChunk | ( | $ | offset, |
| $ | fetchLimit | ||
| ) |
Definition at line 438 of file updateniceurls.php.
Definition at line 427 of file updateniceurls.php.
| formatTime | ( | $ | totalTime | ) |
Definition at line 241 of file updateniceurls.php.
Referenced by displayProgress().
| isAlwaysAvailable | ( | $ | nodeID | ) |
Definition at line 269 of file updateniceurls.php.
Referenced by decodeAction().
| logError | ( | $ | msg | ) |
Definition at line 302 of file updateniceurls.php.
Referenced by logStoreError(), and verifyDataInternal().
| logStore | ( | $ | res, |
| $ | func, | ||
| $ | args | ||
| ) |
Definition at line 314 of file updateniceurls.php.
| logStoreError | ( | $ | res, |
| $ | func, | ||
| $ | args | ||
| ) |
Definition at line 545 of file updateniceurls.php.
| markAsImported | ( | $ | rows | ) |
Definition at line 521 of file updateniceurls.php.
| removeURLList | ( | $ | rows | ) |
Definition at line 511 of file updateniceurls.php.
| resetErrorLog | ( | ) |
Definition at line 346 of file updateniceurls.php.
| resetLogFile | ( | $ | file | ) |
Definition at line 330 of file updateniceurls.php.
Referenced by resetErrorLog(), and resetStorageLog().
| resetStorageLog | ( | ) |
Definition at line 351 of file updateniceurls.php.
| verifyData | ( | &$ | result, |
| $ | url, | ||
| $ | id | ||
| ) |
Definition at line 553 of file updateniceurls.php.
| verifyDataInternal | ( | &$ | result, |
| $ | error | ||
| ) |
Definition at line 563 of file updateniceurls.php.
Referenced by verifyData(), and verifyNodeData().
| verifyNodeData | ( | &$ | result, |
| $ | node | ||
| ) |
Definition at line 558 of file updateniceurls.php.
| if ($options['verify-data']) if ($options['interactive']) $backupTables = false |
Definition at line 149 of file updateniceurls.php.
Referenced by backupTables().
| $backupTableSuffix = false |
Definition at line 150 of file updateniceurls.php.
Referenced by backupTables().
| $cli = eZCLI::instance() |
Definition at line 15 of file updateniceurls.php.
| $columnWidth = 72 |
Definition at line 124 of file updateniceurls.php.
| $db = eZDb::instance() |
Definition at line 88 of file updateniceurls.php.
| $dbHost = isset( $options['db-host'] ) && $options['db-host'] ? $options['db-host'] : false |
Definition at line 65 of file updateniceurls.php.
| $dbImpl = $options['db-driver'] ? $options['db-driver'] : false |
Definition at line 67 of file updateniceurls.php.
| $dbName = $options['db-database'] ? $options['db-database'] : false |
Definition at line 66 of file updateniceurls.php.
| $dbPassword = $options['db-password'] ? $options['db-password'] : false |
Definition at line 64 of file updateniceurls.php.
| $dbUser = $options['db-user'] ? $options['db-user'] : false |
Definition at line 63 of file updateniceurls.php.
| $fetchLimit = 200 |
Definition at line 112 of file updateniceurls.php.
Referenced by fetchHistoricRedirectionChunk(), fetchHistoricURLChunk(), fetchHistoricWildcardChunk(), and fetchPathIdentificationStringChunk().
| $globalStartTime = microtime( true ) |
Definition at line 624 of file updateniceurls.php.
Definition at line 157 of file updateniceurls.php.
| $importOldAlias = false |
Definition at line 158 of file updateniceurls.php.
| $importOldAliasRedirections = false |
Definition at line 159 of file updateniceurls.php.
| $importOldAliasWildcard = false |
Definition at line 160 of file updateniceurls.php.
| $interactive = false |
Definition at line 137 of file updateniceurls.php.
Referenced by verifyDataInternal().
| if ($options['column-width']!==null) $maxColumn = max( $columnWidth - $percentLength - $timeLength, $percentLength + $timeLength + 1 ) |
Definition at line 133 of file updateniceurls.php.
Referenced by displayProgress().
| $options |
Definition at line 28 of file updateniceurls.php.
Definition at line 122 of file updateniceurls.php.
| $performVerification = false |
Definition at line 138 of file updateniceurls.php.
Referenced by verifyDataInternal().
eZScript::instance( array( 'description' => ( "eZ Publish url-alias imported and updater.\n\n" . "Will import urls from the older (3.9) system into the new, controlled by the --import* options.\n" . "Will also update the url-alias entries from the content object nodes in the system, controlled by the --update-nodes option.\n" . "The default behaviour is to update urls for content object nodes only\n" . "\n" . "updateniceurls.php" ), 'use-session' => true, 'use-modules' => true, 'use-extensions' => true ) )
Definition at line 16 of file updateniceurls.php.
Definition at line 68 of file updateniceurls.php.
| $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false |
Definition at line 69 of file updateniceurls.php.
| $timeLength = 12 |
Definition at line 123 of file updateniceurls.php.
| $totalChangedNodes = 0 |
Definition at line 134 of file updateniceurls.php.
| $totalNodeCount = 0 |
Definition at line 135 of file updateniceurls.php.
| $updateNodeAlias = true |
Definition at line 161 of file updateniceurls.php.
| $urlCount = 0 |
Definition at line 627 of file updateniceurls.php.