eZ Publish  [4.2]
updatesearchindex.php File Reference

Go to the source code of this file.

Functions

if($siteAccess) changeSiteAccessSetting ($siteAccess)

Variables

 $cleanupSearch = $options['clean'] ? true : false
 $cli = eZCLI::instance()
 $conds
 $count = eZPersistentObject::count( $def, $conds, 'id' )
 $db = eZDB::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
if($cleanupSearch) $def = eZContentObject::definition()
 $endl = $cli->endlineString()
 $fieldFilters = null
 $length = 50
 $limit = array( 'offset' => 0 , 'length' => $length )
 $options
 $script
 $showSQL = $options['sql'] ? true : false
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false

Function Documentation

if ($siteAccess) changeSiteAccessSetting ( siteAccess)

Definition at line 76 of file updatesearchindex.php.


Variable Documentation

$cleanupSearch = $options['clean'] ? true : false

Definition at line 69 of file updatesearchindex.php.

$cli = eZCLI::instance()

Definition at line 34 of file updatesearchindex.php.

$count = eZPersistentObject::count( $def, $conds, 'id' )

Definition at line 129 of file updatesearchindex.php.

$db = eZDB::instance()

Definition at line 95 of file updatesearchindex.php.

$dbHost = $options['db-host'] ? $options['db-host'] : false

Definition at line 64 of file updatesearchindex.php.

$dbImpl = $options['db-driver'] ? $options['db-driver'] : false

Definition at line 66 of file updatesearchindex.php.

$dbName = $options['db-database'] ? $options['db-database'] : false

Definition at line 65 of file updatesearchindex.php.

$dbPassword = $options['db-password'] ? $options['db-password'] : false

Definition at line 63 of file updatesearchindex.php.

$dbUser = $options['db-user'] ? $options['db-user'] : false

Definition at line 62 of file updatesearchindex.php.

if ($cleanupSearch) $def = eZContentObject::definition()

Definition at line 124 of file updatesearchindex.php.

Referenced by eZDBSchemaInterface\appendSQLComments(), eZPersistentObject\attribute(), eZAuthor\attributes(), eZPersistentObject\attributes(), eZPersistentObject\count(), eZNotificationEventType\create(), eZDataType\create(), eZDbSchemaChecker\diff(), eZDbSchemaChecker\diffTable(), Cezpdf\ezColumnsStart(), eZHTTPPersistence\fetch(), eZInformationCollection\fetchCollectionsList(), eZHTTPPersistence\fetchElement(), eZPersistentObject\fetchObject(), eZPersistentObject\fetchObjectList(), eZWorkflowType\fetchRegisteredTypes(), eZPersistentObject\fill(), eZMysqlSchema\generateAddFieldSql(), eZPgsqlSchema\generateAddFieldSql(), eZMysqlSchema\generateAddIndexSql(), eZPgsqlSchema\generateAddIndexSql(), eZMysqlSchema\generateAlterFieldSql(), eZPgsqlSchema\generateAlterFieldSql(), eZPgsqlSchema\generateDefaultDef(), eZMysqlSchema\generateDropIndexSql(), eZPgsqlSchema\generateDropIndexSql(), eZMysqlSchema\generateFieldDef(), eZPgsqlSchema\generateFieldDef(), eZPgsqlSchema\generateNullDef(), eZPersistentObject\getShortAttributeName(), eZHTTPPersistence\handleChecked(), eZHTTPPersistence\handleCheckedElement(), eZPersistentObject\hasAttribute(), eZPersistentObject\newObjectOrder(), eZTemplateSwitchFunction\process(), eZPersistentObject\remove(), eZPersistentObject\removeObject(), eZPersistentObject\reorderObject(), eZPersistentObject\setAttribute(), eZContentClassName\sqlAppendFilter(), eZContentClassName\sqlFilter(), eZPersistentObject\storeObject(), and eZPersistentObject\updateObjectList().

$endl = $cli->endlineString()

Definition at line 35 of file updatesearchindex.php.

$limit = array( 'offset' => 0 , 'length' => $length )

Definition at line 134 of file updatesearchindex.php.

$options
Initial value:
 $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:|db-driver:][sql][clean]",
                                "",
                                array( 'db-host' => "Database host",
                                       'db-user' => "Database user",
                                       'db-password' => "Database password",
                                       'db-database' => "Database name",
                                       'db-driver' => "Database driver",
                                       'db-type' => "Database driver, alias for --db-driver",
                                       'sql' => "Display sql queries",
                                       'clean' =>  "Remove all search data before beginning indexing"
                                       ) )

Definition at line 47 of file updatesearchindex.php.

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish search index updater.\n\n" .
                                                        "Goes trough all objects and reindexes the meta data to the search engine" .
                                                        "\n" .
                                                        "updatesearchindex.php"),
                                     'use-session' => true,
                                     'use-modules' => true,
                                     'use-extensions' => true ) )

Definition at line 37 of file updatesearchindex.php.

$showSQL = $options['sql'] ? true : false

Definition at line 67 of file updatesearchindex.php.

$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false

Definition at line 68 of file updatesearchindex.php.