mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
some more documentation, use appropriate variable name
This commit is contained in:
parent
9bacd79374
commit
4bc32501b8
|
@ -65,12 +65,22 @@ class SeedDMS_FulltextService {
|
|||
$this->cmdtimeout = $timeout;
|
||||
}
|
||||
|
||||
public function IndexedDocument($document, $forceupdate=false) {
|
||||
if($document->isType('document'))
|
||||
$nocontent = ($document->getLatestContent()->getFileSize() > $this->maxsize) && !$forceupdate;
|
||||
/**
|
||||
* Return an indexable document from the given document or folder
|
||||
*
|
||||
* @param SeedDMS_Core_Document|SeedDMS_Core_Folder $object document or folder
|
||||
* to be indexed
|
||||
* @param boolean $forceupdate set to true if the document shall be updated no
|
||||
* matter how large the content is. Setting this to false will only update the
|
||||
* 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) {
|
||||
if($object->isType('document'))
|
||||
$nocontent = ($object->getLatestContent()->getFileSize() > $this->maxsize) && !$forceupdate;
|
||||
else
|
||||
$nocontent = true;
|
||||
return new $this->services[0]['IndexedDocument']($document->getDMS(), $document, $this->converters, $nocontent, $this->cmdtimeout);
|
||||
return new $this->services[0]['IndexedDocument']($object->getDMS(), $object, $this->converters, $nocontent, $this->cmdtimeout);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user