mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add method clearClipboard()
This commit is contained in:
parent
77ddceff5c
commit
12d2e4778b
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user