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');
* }
* );
*
* @since 15.0.0
*
*/
abstract class AFilesDocument extends IndexDocument {
/**
* Returns the owner of the document/file.
*
* @since 15.0.0
*
* @return string
*/
abstract public function getOwnerId(): string;
/**
* Returns the current viewer of the document/file.
*
* @since 15.0.0
*
* @return string
*/
abstract public function getViewerId(): string;
/**
* Returns the type of the document/file.
*
* @since 15.0.0
*
* @return string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
*/
abstract public function getType(): string;
/**
* Returns the mimetype of the document/file.
*
* @since 15.0.0
*
* @return string
*/
abstract public function getMimetype(): string;
/**
* Returns the path of the document/file.
*
* @since 15.0.0
*
* @return string
*/
abstract public function getPath(): string;
}
on value='Temp_ComplexScripts'>Temp_ComplexScripts
blob: 1bc599bb0e7755a34ab3d4559a91936bb1b2cde3 (
plain)