mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
- added missing method setDocumentStatus()
This commit is contained in:
parent
4ef7dddfda
commit
a47af6ed37
|
@ -459,6 +459,18 @@ class LetoDMS_Core_Workflow_State { /* {{{ */
|
||||||
*/
|
*/
|
||||||
function getDocumentStatus() { return $this->_documentstatus; }
|
function getDocumentStatus() { return $this->_documentstatus; }
|
||||||
|
|
||||||
|
function setDocumentStatus($docstatus) { /* {{{ */
|
||||||
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
|
$queryStr = "UPDATE tblWorkflowStates SET documentstatus = ".intval($docstatus)." WHERE id = " . $this->_id;
|
||||||
|
$res = $db->getResult($queryStr);
|
||||||
|
if (!$res)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
$this->_documentstatus = $docstatus;
|
||||||
|
return true;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if workflow state is currently used by any workflow transition
|
* Check if workflow state is currently used by any workflow transition
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user