TextIndexer.php 520 Bytes
<?php

require_once(KT_DIR . '/plugins/ktstandard/contents/BaseIndexer.php');


class KTTextIndexerTrigger extends KTBaseIndexerTrigger {
    var $mimetypes = array(
       'text/plain' => true,
       'text/csv' => true,
    );
    
    // don't need any of this:
    
    //var $command = 'catppt';          
    //var $args = array();
    //var $use_pipes = true;
    
    function extract_contents($sFilename, $sTempFilename) {
        $contents = file_get_contents($sFilename);
        return $contents;
    }
}

?>