Documentation TYPO3 par Ameos |
Public Member Functions | |
| initParser ($extension) | |
| softInit ($extension) | |
| searchTypeMediaTitle ($extension) | |
| isMultiplePageExtension ($extension) | |
| readFileContent ($ext, $absFile, $cPKey) | |
| fileContentParts ($ext, $absFile) | |
| splitPdfInfo ($pdfInfoArray) | |
| removeEndJunk ($string) | |
| getIcon ($extension) | |
Public Attributes | |
| $pdf_mode = -20 | |
| $app = array() | |
| $ext2itemtype_map = array() | |
| $supportedExtensions = array() | |
| $pObj | |
Definition at line 75 of file class.external_parser.php.
| tx_indexed_search_extparse::initParser | ( | $ | extension | ) |
Initialize external parser for parsing content.
| string | File extension |
Definition at line 94 of file class.external_parser.php.
References t3lib_div::intInRange(), and t3lib_div::trimExplode().
| tx_indexed_search_extparse::softInit | ( | $ | extension | ) |
Initialize external parser for backend modules Doesn't evaluate if parser is configured right - more like returning POSSIBLE supported extensions (for showing icons etc) in backend and frontend plugin
| string | File extension to initialize for. |
Definition at line 214 of file class.external_parser.php.
| tx_indexed_search_extparse::searchTypeMediaTitle | ( | $ | extension | ) |
Return title of entry in media type selector box.
| string | File extension |
Definition at line 247 of file class.external_parser.php.
References t3lib_div::trimExplode().
| tx_indexed_search_extparse::isMultiplePageExtension | ( | $ | extension | ) |
Returns true if the input extension (item_type) is a potentially a multi-page extension
| string | Extension / item_type string |
Definition at line 323 of file class.external_parser.php.
| tx_indexed_search_extparse::readFileContent | ( | $ | ext, | |
| $ | absFile, | |||
| $ | cPKey | |||
| ) |
Reads the content of an external file being indexed.
| string | File extension, eg. "pdf", "doc" etc. | |
| string | Absolute filename of file (must exist and be validated OK before calling function) | |
| string | Pointer to section (zero for all other than PDF which will have an indication of pages into which the document should be splitted.) |
Definition at line 354 of file class.external_parser.php.
References removeEndJunk(), splitPdfInfo(), t3lib_div::tempnam(), and t3lib_div::xml2tree().
| tx_indexed_search_extparse::fileContentParts | ( | $ | ext, | |
| $ | absFile | |||
| ) |
Creates an array with pointers to divisions of document. ONLY for PDF files at this point. All other types will have an array with a single element with the value "0" (zero) coming back.
| string | File extension | |
| string | Absolute filename (must exist and be validated OK before calling function) |
Definition at line 528 of file class.external_parser.php.
References t3lib_div::intInRange(), and splitPdfInfo().
| tx_indexed_search_extparse::splitPdfInfo | ( | $ | pdfInfoArray | ) |
Analysing PDF info into a useable format.
| array | Array of PDF content, coming from the pdfinfo tool |
Definition at line 568 of file class.external_parser.php.
Referenced by fileContentParts(), and readFileContent().
| tx_indexed_search_extparse::removeEndJunk | ( | $ | string | ) |
Removes some strange char(12) characters and line breaks that then to occur in the end of the string from external files.
| string | String to clean up |
Definition at line 587 of file class.external_parser.php.
Referenced by readFileContent().
| tx_indexed_search_extparse::getIcon | ( | $ | extension | ) |
Return icon for file extension
| string | File extension, lowercase. |
Definition at line 614 of file class.external_parser.php.
1.4.6