Menu

## SeedDMS_Core_Notification
in package

inc.ClassNotification.php : 25

Class to represent a notification

##### Tags

category

  DMS

author

  Uwe Steinmann uwe@steinmann.cx

copyright

  Copyright (C) 2010-2024 Uwe Steinmann

version

  Release: @package_version@

### 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

inc.ClassNotification.php : 59
`protected object $_dms`

reference to the dms instance this user belongs to

##### Tags

access

  protected

#### $_groupid

inc.ClassNotification.php : 52
`protected int $_groupid`

id of group to notify

##### Tags

access

  protected

#### $_target

inc.ClassNotification.php : 31
`protected int $_target`

id of target (document or folder)

##### Tags

access

  protected

#### $_targettype

inc.ClassNotification.php : 38
`protected int $_targettype`

document or folder

##### Tags

access

  protected

#### $_userid

inc.ClassNotification.php : 45
`protected int $_userid`

id of user to notify

##### Tags

access

  protected

### Methods

#### __construct()

inc.ClassNotification.php : 72

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()

inc.ClassNotification.php : 116

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()

inc.ClassNotification.php : 93

Get id of target (document/object) this notification is attachted to

`public getTarget() : int`

##### Return values

int —

id of target

#### getTargetType()

inc.ClassNotification.php : 100

Get type of target

`public getTargetType() : int`

##### Return values

int —

type of target (1=document/2=object)

#### getUser()

inc.ClassNotification.php : 108

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()

inc.ClassNotification.php : 84

Set instance of dms this object belongs to

`public setDMS(object $dms) : mixed`

##### Parameters

$dms : object

  instance of dms

## Search results