SeedDMS_Core_Notification
in package
Class to represent a notification
Tags
Table of Contents
Properties
- $_dms : object
- $_groupid : int
- $_target : int
- $_targettype : int
- $_userid : int
Methods
- __construct() : mixed
- Constructor
- getGroup() : int
- Get group for this notification
- getTarget() : int
- Get id of target (document/object) this notification is attachted to
- getTargetType() : int
- Get type of target
- getUser() : int
- Get user for this notification
- setDMS() : mixed
- Set instance of dms this object belongs to
Properties
$_dms
protected
object
$_dms
reference to the dms instance this user belongs to
Tags
$_groupid
protected
int
$_groupid
id of group to notify
Tags
$_target
protected
int
$_target
id of target (document or folder)
Tags
$_targettype
protected
int
$_targettype
document or folder
Tags
$_userid
protected
int
$_userid
id of user to notify
Tags
Methods
__construct()
Constructor
public
__construct(int $target, int $targettype, int $userid, int $groupid) : mixed
Parameters
- $target : int
-
id of document/folder this notification is attached to.
- $targettype : int
-
1 = target is document, 2 = target is a folder
- $userid : int
-
id of user. The id is -1 if the notification is for a group.
- $groupid : int
-
id of group. The id is -1 if the notification is for a user.
getGroup()
Get group for this notification
public
getGroup() : int
Return values
int —id of group or -1 if this notification does not belong to a group
getTarget()
Get id of target (document/object) this notification is attachted to
public
getTarget() : int
Return values
int —id of target
getTargetType()
Get type of target
public
getTargetType() : int
Return values
int —type of target (1=document/2=object)
getUser()
Get user for this notification
public
getUser() : int
Return values
int —id of user or -1 if this notification does not belong to a user
setDMS()
Set instance of dms this object belongs to
public
setDMS(object $dms) : mixed
Parameters
- $dms : object
-
instance of dms