Documentation

SeedDMS_Core_Notification
in package

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

protected object $_dms

reference to the dms instance this user belongs to

Tags
access

protected

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


        
On this page

Search results