Open Journal Systems
3.3.0
SearchHelperParser.inc.php
1
<?php
2
17
import
(
'lib.pkp.classes.search.SearchFileParser'
);
18
19
class
SearchHelperParser
extends
SearchFileParser
{
20
22
var
$type
;
23
24
function
__construct
(
$type
,
$filePath
) {
25
parent::__construct(
$filePath
);
26
$this->type =
$type
;
27
}
28
29
function
open
() {
30
$prog =
Config::getVar
(
'search'
,
'index['
. $this->type .
']'
);
31
32
if
(isset($prog)) {
33
$exec = sprintf($prog, escapeshellarg($this->
getFilePath
()));
34
$this->fp = @popen($exec,
'r'
);
35
return
$this->fp ? true :
false
;
36
}
37
38
return
false
;
39
}
40
41
function
close
() {
42
pclose($this->fp);
43
}
44
}
45
46
SearchHelperParser\close
close()
Definition:
SearchHelperParser.inc.php:44
SearchFileParser
Abstract class to extract search text from a given file.
Definition:
SearchFileParser.inc.php:23
SearchFileParser\getFilePath
getFilePath()
Definition:
SearchFileParser.inc.php:49
Config\getVar
static getVar($section, $key, $default=null)
Definition:
Config.inc.php:35
SearchFileParser\$filePath
$filePath
Definition:
SearchFileParser.inc.php:29
SearchHelperParser\$type
$type
Definition:
SearchHelperParser.inc.php:25
SearchHelperParser\open
open()
Definition:
SearchHelperParser.inc.php:32
SearchHelperParser
Class to extract text from a file using an external helper program.
Definition:
SearchHelperParser.inc.php:19
SearchHelperParser\__construct
__construct($type, $filePath)
Definition:
SearchHelperParser.inc.php:27
lib
pkp
classes
search
SearchHelperParser.inc.php
Generated on Fri Aug 28 2020 14:53:34 for Open Journal Systems by
1.8.17