mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
add method clearClipboard()
This commit is contained in:
parent
77ddceff5c
commit
12d2e4778b
|
@ -307,6 +307,19 @@ class SeedDMS_Session {
|
||||||
return true;
|
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
|
* Set splash message of session
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user