\App\JobsGenerateKeywords

Summary

Methods
Properties
Constants
__construct()
handle()
No public properties found
No constants found
No protected methods found
$documentVersion
$document
N/A
read_doc()
read_docx()
read_pdf()
read_txt()
read_html()
No private properties found
N/A

Properties

$documentVersion

$documentVersion : 

Type

$document

$document : 

Type

Methods

__construct()

__construct(\App\DocumentVersion  $documentVersion, \App\Document  $document) : void

Create a new job instance.

Parameters

\App\DocumentVersion $documentVersion
\App\Document $document

handle()

handle() : void

Execute the job.

read_doc()

read_doc(  $document_version) : mixed|string

Method for reading contents of a .doc file

Parameters

$document_version

with the extension .doc

Returns

mixed|string —

Content of the file

read_docx()

read_docx(  $document_version) : mixed|string

Method for reading contents of a .docx file

Parameters

$document_version

with the extension .docx

Returns

mixed|string —

Content of the file

read_pdf()

read_pdf(  $document_version) : mixed|string

Method for reading contents of a .pdf file

Parameters

$document_version

with the extension .pdf

Returns

mixed|string —

Content of the file

read_txt()

read_txt(  $document_version) : mixed|string

Method for reading contents of a .txt file

Parameters

$document_version

with the extension .txt

Returns

mixed|string —

Content of the file

read_html()

read_html(  $document_version) : mixed|string

Method for reading contents of a .html file

Parameters

$document_version

with the extension .html

Returns

mixed|string —

Content of the file