add new methods setCmd() and setContent()

This commit is contained in:
Uwe Steinmann 2021-06-30 12:53:20 +02:00
parent b84bf38842
commit 189f962012

View File

@ -220,8 +220,20 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
return $this->mimetype; return $this->mimetype;
} /* }}} */ } /* }}} */
public function setContent($data) { /* {{{ */
$this->addField(Zend_Search_Lucene_Field::UnStored('content', $data, 'utf-8'));
} /* }}} */
public function getCmd() { /* {{{ */ public function getCmd() { /* {{{ */
return $this->cmd; return $this->cmd;
} /* }}} */ } /* }}} */
/* Use only for setting the command if e.g. an extension takes over the
* conversion to txt (like the office extension which uses the collabora
* conversion service).
*/
public function setCmd($cmd) { /* {{{ */
$this->cmd = $cmd;
} /* }}} */
} }
?> ?>