function IndexStub($pages) { parent::Fulltext_Index('ASCII'); foreach ($pages as $page => $lexemes) { foreach ($lexemes as $lexeme) { if (!isset($this->lexemes[$lexeme])) { $this->lexemes[$lexeme] = array(); } $this->lexemes[$lexeme][] = $page; } } }
function Book_Fulltext_Index($book_id) { global $internal_encoding; parent::Fulltext_Index($internal_encoding); $this->book_id = $book_id; }