1 | <?php |
||
8 | class TikaTextExtractor extends FileTextExtractor |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * Text extraction mode. Defaults to -t (plain text) |
||
12 | * |
||
13 | * @var string |
||
14 | * @config |
||
15 | */ |
||
16 | private static $output_mode = '-t'; |
||
17 | |||
18 | /** |
||
19 | * Get the version of tika installed, or 0 if not installed |
||
20 | * |
||
21 | * @return float version of tika |
||
22 | */ |
||
23 | public function getVersion() |
||
34 | |||
35 | /** |
||
36 | * Runs an arbitrary and safely escaped shell command |
||
37 | * |
||
38 | * @param string $command Full command including arguments |
||
39 | * @param string &$stdout Standand output |
||
40 | * @param string &$stderr Standard error |
||
41 | * @param string $input Content to pass via standard input |
||
42 | * @return int Exit code. 0 is success |
||
43 | */ |
||
44 | protected function runShell($command, &$stdout = '', &$stderr = '', $input = '') |
||
71 | |||
72 | public function getContent($path) |
||
81 | |||
82 | public function isAvailable() |
||
86 | |||
87 | public function supportsExtension($extension) |
||
92 | |||
93 | public function supportsMime($mime) |
||
105 | } |
||
106 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.