AFilesDocument

class OCP\Files_FullTextSearch\Model\AFilesDocument
Abstract Class AFilesDocument
This is mostly used by 3rd party apps that want to complete the IIndexDocument
with more information about a file before its index:

\OC::$server->getEventDispatcher()->addListener(
‘\OCA\Files_FullTextSearch::onFileIndexing’,
function(GenericEvent $e) {
//@var \OCP\Files\Node $file
$file = $e->getArgument(‘file’);

// @var \OCP\Files_FullTextSearch\Model\AFilesDocument $document
$document = $e->getArgument(‘document’);
}
);
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#52
Parent:OC\FullTextSearch\Model\IndexDocument

Methods

public abstract OCP\Files_FullTextSearch\Model\AFilesDocument::getOwnerId()
Returns the owner of the document/file.
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#62
Since:15.0.0
Returns:string
public abstract OCP\Files_FullTextSearch\Model\AFilesDocument::getViewerId()
Returns the current viewer of the document/file.
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#72
Since:15.0.0
Returns:string
public abstract OCP\Files_FullTextSearch\Model\AFilesDocument::getType()
Returns the type of the document/file.
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#82
Since:15.0.0
Returns:string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
public abstract OCP\Files_FullTextSearch\Model\AFilesDocument::getMimetype()
Returns the mimetype of the document/file.
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#92
Since:15.0.0
Returns:string
public abstract OCP\Files_FullTextSearch\Model\AFilesDocument::getPath()
Returns the path of the document/file.
Source:lib/public/Files_FullTextSearch/Model/AFilesDocument.php#101
Since:15.0.0
Returns:string