26 $this->user_id = $a_user_id;
37 if (!self::$instance) {
38 self::$instance =
new self($a_usr_id);
40 return self::$instance;
49 return (
bool) count($this->clipboard);
68 foreach ($this->clipboard as $usr_id) {
69 include_once
'./Services/User/classes/class.ilObjUser.php';
80 public function add($a_usr_ids)
82 $this->clipboard = array_unique(array_merge($this->clipboard, (array) $a_usr_ids));
89 public function delete(array $a_usr_ids)
92 foreach ($this->
get() as $usr_id) {
93 if (!in_array($usr_id, $a_usr_ids)) {
106 $this->clipboard = $a_usr_ids;
111 $this->clipboard = array();
static _lookupLogin($a_user_id)
lookup login
static getInstance($a_usr_id)
Get singelton instance.
add($a_usr_ids)
Add entries to clipboard.
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
save()
Save clipboard content in session.
if($state['core:TerminatedAssocId'] !==null) $remaining
getValidatedContent()
Get validated content of clipboard.
replace(array $a_usr_ids)
Replace clipboard content.
hasContent()
Check if clipboard has content.
__construct($a_user_id)
singleton constructor