wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
SearchIndexController Class Reference
+ Inheritance diagram for SearchIndexController:

Public Member Functions

 getWorkPackage ($number)
 
 collect ($types)
 
 index ($oids)
 
 optimize ($oids)
 
- Public Member Functions inherited from BatchController
 initialize (&$request, &$response)
 
 addWorkPackage ($name, $size, $oids, $callback, $args=null)
 
 getWorkPackage ($number)
 
 getNumberOfSteps ()
 
 getDisplayText ($step)
 
 getSummaryText ()
 
 processPart ()
 
- Public Member Functions inherited from LongTaskController
 initialize (&$request, &$response)
 
 hasView ()
 
 executeKernel ()
 
 getStepNumber ()
 
 getNumberOfSteps ()
 
 getDisplayText ($step)
 
 getSummaryText ()
 
 initializeTask ()
 
 processPart ()
 
- Public Member Functions inherited from Controller
 Controller (&$delegate)
 
 initialize (&$request, &$response)
 
 validate ()
 
 hasView ()
 
 execute ()
 
 executeKernel ()
 
 getErrorMsg ()
 
 setErrorMsg ($msg)
 
 appendErrorMsg ($msg)
 
getRequest ()
 
getResponse ()
 
getView ()
 
getDelegate ()
 
 getViewTemplate ($controller, $context, $action)
 
 getCacheId ()
 
 assignViewDefaults (&$view)
 
 isLocalizedRequest ()
 

Additional Inherited Members

- Public Attributes inherited from BatchController
 $WORK_PACKAGES_VARNAME = 'BatchController.workPackages'
 
 $NUM_STEPS_VARNAME = 'BatchController.numSteps'
 
 $_workPackages = array()
 
- Public Attributes inherited from LongTaskController
 $STEP_SESSION_VARNAME = 'LongTaskController.curStep'
 
 $ONE_CALL_SESSION_VARNAME = 'LongTaskController.oneCall'
 
 $_curStep = 1
 
- Public Attributes inherited from Controller
 $_request = null
 
 $_response = null
 
 $_errorMsg = ''
 
 $_view = null
 
 $_delegate = null
 

Detailed Description

SearchIndexController creates a Lucene index from the complete datastore.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.SearchIndexController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

  • unspecified: Create the index

Output actions:

  • none
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 36 of file class.SearchIndexController.php.

Member Function Documentation

SearchIndexController::getWorkPackage (   $number)
SearchIndexController::collect (   $types)

Collect all oids of the given types

Parameters
typesThe types to process
Note
This is a callback method called on a matching work package
See Also
BatchController::addWorkPackage()

Definition at line 74 of file class.SearchIndexController.php.

References BatchController\addWorkPackage(), Message\get(), and PersistenceFacade\getInstance().

+ Here is the call graph for this function:

SearchIndexController::index (   $oids)

Create the lucene index from the given objects

Parameters
oidsThe oids to process
Note
This is a callback method called on a matching work package
See Also
BatchController::addWorkPackage()

Definition at line 91 of file class.SearchIndexController.php.

References BatchController\addWorkPackage(), BUILDDEPTH_SINGLE, SearchUtil\commitIndex(), Message\get(), PersistenceFacade\getInstance(), BatchController\getNumberOfSteps(), LongTaskController\getStepNumber(), SearchUtil\indexInSearch(), and PersistenceFacade\isValidOID().

+ Here is the call graph for this function:

SearchIndexController::optimize (   $oids)

Definition at line 109 of file class.SearchIndexController.php.

References SearchUtil\optimizeIndex().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: