Solutions Open Source

Référence de la classe tx_indexed_search_extparse

Liste de tous les membres

Fonctions membres publiques

 initParser ($extension)
 softInit ($extension)
 searchTypeMediaTitle ($extension)
 isMultiplePageExtension ($extension)
 readFileContent ($ext, $absFile, $cPKey)
 fileContentParts ($ext, $absFile)
 splitPdfInfo ($pdfInfoArray)
 removeEndJunk ($string)
 getIcon ($extension)

Attributs publics

 $pdf_mode = -20
 $app = array()
 $ext2itemtype_map = array()
 $supportedExtensions = array()
 $pObj


Documentation des fonctions membres

tx_indexed_search_extparse::initParser ( extension  ) 

Initialize external parser for parsing content.

Paramètres:
string File extension
Renvoie:
boolean Returns true if extension is supported/enabled, otherwise false.

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

Paramètres:
string File extension to initialize for.
Renvoie:
boolean Returns true if the extension is supported and enabled, otherwise false.

tx_indexed_search_extparse::searchTypeMediaTitle ( extension  ) 

Return title of entry in media type selector box.

Paramètres:
string File extension
Renvoie:
string String with label value of entry in media type search selector box (frontend plugin).

tx_indexed_search_extparse::isMultiplePageExtension ( extension  ) 

Returns true if the input extension (item_type) is a potentially a multi-page extension

Paramètres:
string Extension / item_type string
Renvoie:
boolean Return true if multi-page

tx_indexed_search_extparse::readFileContent ( ext,
absFile,
cPKey 
)

Reads the content of an external file being indexed.

Paramètres:
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.)
Renvoie:
array Standard content array (title, description, keywords, body keys)

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.

Paramètres:
string File extension
string Absolute filename (must exist and be validated OK before calling function)
Renvoie:
array Array of pointers to sections that the document should be divided into

tx_indexed_search_extparse::splitPdfInfo ( pdfInfoArray  ) 

Analysing PDF info into a useable format.

Paramètres:
array Array of PDF content, coming from the pdfinfo tool
Renvoie:
array Result array private
Voir également:
fileContentParts()

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.

Paramètres:
string String to clean up
Renvoie:
string String

tx_indexed_search_extparse::getIcon ( extension  ) 

Return icon for file extension

Paramètres:
string File extension, lowercase.
Renvoie:
string Relative file reference, resolvable by t3lib_div::getFileAbsFileName()


Documentation des données membres

tx_indexed_search_extparse::$pdf_mode = -20

tx_indexed_search_extparse::$app = array()

tx_indexed_search_extparse::$ext2itemtype_map = array()

tx_indexed_search_extparse::$supportedExtensions = array()

tx_indexed_search_extparse::$pObj


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:43:47 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3