add method clearClipboard()

This commit is contained in:
Uwe Steinmann 2013-06-13 23:14:47 +02:00
parent 77ddceff5c
commit 12d2e4778b

View File

@ -307,6 +307,19 @@ class SeedDMS_Session {
return true;
} /* }}} */
/**
* Clear clipboard
*
*/
function clearClipboard() { /* {{{ */
$this->data['clipboard']['docs'] = array();
$this->data['clipboard']['folders'] = array();
$queryStr = "UPDATE tblSessions SET clipboard = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE id = " . $this->db->qstr($this->id);
if (!$this->db->getResult($queryStr))
return false;
return true;
} /* }}} */
/**
* Set splash message of session
*