mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
add new methods setCmd() and setContent()
This commit is contained in:
parent
b84bf38842
commit
189f962012
|
@ -220,8 +220,20 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
|
|||
return $this->mimetype;
|
||||
} /* }}} */
|
||||
|
||||
public function setContent($data) { /* {{{ */
|
||||
$this->addField(Zend_Search_Lucene_Field::UnStored('content', $data, 'utf-8'));
|
||||
} /* }}} */
|
||||
|
||||
public function getCmd() { /* {{{ */
|
||||
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;
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user