19 require_once(BASE.
"wcmf/application/controller/class.BatchController.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
21 require_once(BASE.
"wcmf/lib/util/class.SearchUtil.php");
53 if ($tpl->isIndexInSearch()) {
54 array_push($types, $type);
58 return array(
'name' =>
Message::get(
'Collect objects'),
'size' => 1,
'oids' => $types,
'callback' =>
'collect');
77 foreach ($types as $type)
79 $oids = $persistenceFacade->getOIDs($type);
80 if (
sizeof($oids) == 0) {
94 foreach($oids as $oid)
static commitIndex($optimize=true)
get($message, $parameters=null, $domain='', $lang='')
SearchIndexController creates a Lucene index from the complete datastore.
addWorkPackage($name, $size, $oids, $callback, $args=null)
static indexInSearch(&$obj)
BatchController allows to define work packages that will be processed in a sequence. It simplifies the usage of LongTaskController functionality for splitting different bigger tasks into many smaller (similar) tasks where the whole number of tasks isn't known at designtime.