mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
- added new parameter to addDocument() for setting categories
This commit is contained in:
parent
a2d719ef28
commit
b526c87934
|
@ -479,7 +479,7 @@ class LetoDMS_Core_Folder {
|
||||||
* containing two elements. The first one is the new document, the
|
* containing two elements. The first one is the new document, the
|
||||||
* second one is the result set returned when inserting the content.
|
* second one is the result set returned when inserting the content.
|
||||||
*/
|
*/
|
||||||
function addDocument($name, $comment, $expires, $owner, $keywords, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion,$version_comment="") { /* {{{ */
|
function addDocument($name, $comment, $expires, $owner, $keywords, $categories, $tmpFile, $orgFileName, $fileType, $mimeType, $sequence, $reviewers=array(), $approvers=array(),$reqversion,$version_comment="") { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
$expires = (!$expires) ? 0 : $expires;
|
$expires = (!$expires) ? 0 : $expires;
|
||||||
|
@ -511,6 +511,9 @@ class LetoDMS_Core_Folder {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($categories) {
|
||||||
|
$document->setCategories($categories);
|
||||||
|
}
|
||||||
return array($document, $res);
|
return array($document, $res);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user