eZPublish  4.5
updateniceurls.php File Reference

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
 

Function Documentation

backupTables (   $stage)
calltostring (   $func,
  $args 
)

Referenced by logStore(), and logStoreError().

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)

Referenced by isAlwaysAvailable().

fetchPathIdentificationString (   $nodeID)
fetchPathIdentificationStringChunk (   $offset,
  $fetchLimit 
)
fetchPathIdentificationStringCount ( )
formatTime (   $totalTime)

Referenced by displayProgress().

isAlwaysAvailable (   $nodeID)

Referenced by decodeAction().

logError (   $msg)
logStore (   $res,
  $func,
  $args 
)
logStoreError (   $res,
  $func,
  $args 
)
markAsImported (   $rows)
removeURLList (   $rows)
resetErrorLog ( )
resetLogFile (   $file)

Referenced by resetErrorLog(), and resetStorageLog().

resetStorageLog ( )
verifyData ( $result,
  $url,
  $id 
)
verifyDataInternal ( $result,
  $error 
)

Referenced by verifyData(), and verifyNodeData().

verifyNodeData ( $result,
  $node 
)

Variable Documentation

if ($options['verify-data']) if ($options['interactive']) $backupTables = false

Referenced by backupTables().

$backupTableSuffix = false

Referenced by backupTables().

$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
$globalStartTime = microtime( true )
if ($options['backup-tables']!==null) $importNodes = false
$importOldAlias = false
$importOldAliasRedirections = false
$importOldAliasWildcard = false
$interactive = false

Referenced by verifyDataInternal().

if ($options['column-width']!==null) $maxColumn = max( $columnWidth - $percentLength - $timeLength, $percentLength + $timeLength + 1 )

Referenced by displayProgress().

$options
if ($options['fetch-limit']!==null) $percentLength = 6
$performVerification = false

Referenced by verifyDataInternal().

$script
Initial value:
= 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 ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1056
$showSQL = $options['sql'] ? true : false
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
$timeLength = 12
$totalChangedNodes = 0
$totalNodeCount = 0
$updateNodeAlias = true
$urlCount = 0