eZPublish  3.8
updaterelatedobjectslinks.php File Reference

Functions

if($siteAccess) changeSiteAccessSetting (&$siteaccess, $optionData)
 
 updateLinks ()
 

Variables

 $added_links_count = 0
 
 $cli =& eZCLI::instance()
 
 $dbHost = $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
 
 $isQuiet = $script->isQuiet()
 
 $links = array()
 
 $links_total = 0
 
 $options
 
 $pass = 1
 
 $query
 
 $result = $db->arrayQuery( $query, array( "limit" => QUERY_LIMIT ) )
 
 $script
 
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
 
if($dbHost or $dbName or
$dbUser or $dbImpl) 
else
 
 if (!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts'))
 
const QUERY_LIMIT 100
 

Function Documentation

if ($siteAccess) changeSiteAccessSetting ( $siteaccess,
  $optionData 
)
updateLinks ( )

Variable Documentation

$added_links_count = 0

Referenced by updateLinks().

$cli =& eZCLI::instance()
$dbHost = $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
$isQuiet = $script->isQuiet()
$links_total = 0
$options
Initial value:
= $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-driver:]",
"",
array( 'db-host' => "Database host",
'db-user' => "Database user",
'db-password' => "Database password",
'db-database' => "Database name",
'db-driver' => "Database driver"
) )
$script
Definition: clusterize.php:132
$pass = 1
while (count($result)) $query
Initial value:
= "SELECT attr.*
FROM ezcontentobject_attribute attr
WHERE attr.data_type_string='ezobjectrelation'"
$result = $db->arrayQuery( $query, array( "limit" => QUERY_LIMIT ) )
$script
Initial value:
=& eZScript::instance( array( 'description' => ( "\nDatabase converter for eZ publish 3.6.\n" .
"Updates 'ezcontentobject_link' table by adding related objects links made with\n" .
"attributes of 'ezobjectrelation' and 'ezobjectrelationlist' types.\n\n" .
"Run this script before using a database created with eZ publish version 3.5.* or lower.\n" .
"Don't forget to update database's structure before running this script." ),
'use-session' => false,
'use-modules' => false,
'use-extensions' => false ) )
& instance($settings=array())
Definition: ezscript.php:1011
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
if ($dbHost or $dbName or $dbUser or $dbImpl) else
Initial value:
{
& instance($databaseImplementation=false, $databaseParameters=false, $forceNewInstance=false)
Definition: ezdb.php:148
$db
Definition: convertprice2multiprice.php:80
if(!$db)
const QUERY_LIMIT 100