add fold marks

This commit is contained in:
Uwe Steinmann 2023-02-20 16:06:43 +01:00
parent 2ffe130666
commit 44d043ef21

View File

@ -181,14 +181,14 @@ class SeedDMS_FulltextService {
* document if its content is below the configured size.
* @return object indexed Document ready for passing to the indexer
*/
public function IndexedDocument($object, $forceupdate=false) {
public function IndexedDocument($object, $forceupdate=false) { /* {{{ */
if($object->isType('document'))
$nocontent = $object->getLatestContent()->getFileSize() > $this->maxsize && $this->maxsize && !$forceupdate;
else
$nocontent = true;
$convcallback = $this->getConversionWithPreviewCallback();
return new $this->services[0]['IndexedDocument']($object->getDMS(), $object, $convcallback /*$this->conversionmgr ? $this->conversionmgr : $this->converters*/, $nocontent, $this->cmdtimeout);
}
} /* }}} */
/**
* Returns an instance of the indexer
@ -198,7 +198,7 @@ class SeedDMS_FulltextService {
*
* @return object instance of class specified in 'Indexer'
*/
public function Indexer($recreate=false) {
public function Indexer($recreate=false) { /* {{{ */
if($this->index)
return $this->index;
@ -210,9 +210,9 @@ class SeedDMS_FulltextService {
return $this->index;
} else
return null;
}
} /* }}} */
public function Search() {
public function Search() { /* {{{ */
if($this->search)
return $this->search;
if($this->services[0]) {
@ -221,7 +221,7 @@ class SeedDMS_FulltextService {
} else {
return null;
}
}
} /* }}} */
}