Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($filePath) | |
close () | |
doRead () | |
getFilePath () | |
open () | |
read () | |
setFilePath ($filePath) | |
Static Public Member Functions | |
static | fromFile ($file) |
static | fromFileType ($type, $path) |
Data Fields | |
$filePath | |
$fp | |
Abstract class to extract search text from a given file.
Definition at line 23 of file SearchFileParser.inc.php.
SearchFileParser::__construct | ( | $filePath | ) |
Constructor.
$filePath | string |
Definition at line 41 of file SearchFileParser.inc.php.
References $filePath.
SearchFileParser::close | ( | ) |
Close the file.
Reimplemented in SearchHelperParser.
Definition at line 73 of file SearchFileParser.inc.php.
SearchFileParser::doRead | ( | ) |
Read from the file pointer.
Reimplemented in SearchHTMLParser.
Definition at line 92 of file SearchFileParser.inc.php.
Referenced by read().
|
static |
Create a text parser for a file.
$file | [Article|Paper]File |
Definition at line 106 of file SearchFileParser.inc.php.
References fromFileType().
Referenced by ArticleSearchIndex\submissionFileChanged().
|
static |
Create a text parser for a file.
$type | string |
$path | string |
Definition at line 115 of file SearchFileParser.inc.php.
Referenced by fromFile().
SearchFileParser::getFilePath | ( | ) |
Return the path to the file.
Definition at line 49 of file SearchFileParser.inc.php.
References $filePath.
Referenced by SearchHelperParser\open().
SearchFileParser::open | ( | ) |
Open the file.
Reimplemented in SearchHelperParser.
Definition at line 65 of file SearchFileParser.inc.php.
SearchFileParser::read | ( | ) |
Read and return the next block/line of text.
Definition at line 81 of file SearchFileParser.inc.php.
References doRead().
SearchFileParser::setFilePath | ( | $filePath | ) |
Change the file path.
$filePath | string |
Definition at line 57 of file SearchFileParser.inc.php.
References $filePath.
string SearchFileParser::$filePath |
the complete path to the file
Definition at line 29 of file SearchFileParser.inc.php.
Referenced by SearchHelperParser\__construct(), __construct(), getFilePath(), and setFilePath().
int SearchFileParser::$fp |
file handle
Definition at line 35 of file SearchFileParser.inc.php.