mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
- added new class for representing a notification
This commit is contained in:
parent
c3030165ae
commit
a2027563b1
78
inc/inc.ClassNotification.php
Normal file
78
inc/inc.ClassNotification.php
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Implementation of a notification object
|
||||||
|
*
|
||||||
|
* @category DMS
|
||||||
|
* @package LetoDMS
|
||||||
|
* @license GPL 2
|
||||||
|
* @version @version@
|
||||||
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||||
|
* @copyright Copyright (C) 2010 Uwe Steinmann
|
||||||
|
* @version Release: @package_version@
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class to represent a notification
|
||||||
|
*
|
||||||
|
* @category DMS
|
||||||
|
* @package LetoDMS
|
||||||
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||||
|
* @copyright Copyright (C) 2010 Uwe Steinmann
|
||||||
|
* @version Release: @package_version@
|
||||||
|
*/
|
||||||
|
class LetoDMS_Notification { /* {{{ */
|
||||||
|
/**
|
||||||
|
* @var integer id of target (document or folder)
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
var $_target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer document or folder
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
var $_targettype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer id of user to notify
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
var $_userid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var integer id of group to notify
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
var $_groupid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var object reference to the dms instance this user belongs to
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
var $_dms;
|
||||||
|
|
||||||
|
function LetoDMS_Notification($target, $targettype, $userid, $groupid) {
|
||||||
|
$this->_target = $target;
|
||||||
|
$this->_targettype = $targettype;
|
||||||
|
$this->_userid = $userid;
|
||||||
|
$this->_groupid = $groupid;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setDMS($dms) {
|
||||||
|
$this->_dms = $dms;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getTarget() { return $this->_target; }
|
||||||
|
|
||||||
|
function getTargetType() { return $this->_targettype; }
|
||||||
|
|
||||||
|
function getUser() { return $this->_dms->getUser($this->_userid); }
|
||||||
|
|
||||||
|
function getGroup() { return $this->_dms->getGroup($this->_groupid); }
|
||||||
|
} /* }}} */
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user