getData('userId'); } /** * set user id associated with this notification * @param $userId int */ function setUserId($userId) { $this->setData('userId', $userId); } /** * Get the level (NOTIFICATION_LEVEL_...) for this notification * @return int */ function getLevel() { return $this->getData('level'); } /** * Set the level (NOTIFICATION_LEVEL_...) for this notification * @param $level int */ function setLevel($level) { $this->setData('level', $level); } /** * get date notification was created * @return date (YYYY-MM-DD HH:MM:SS) */ function getDateCreated() { return $this->getData('dateCreated'); } /** * set date notification was created * @param $dateCreated date (YYYY-MM-DD HH:MM:SS) */ function setDateCreated($dateCreated) { $this->setData('dateCreated', $dateCreated); } /** * get date notification is read by user * @return date (YYYY-MM-DD HH:MM:SS) */ function getDateRead() { return $this->getData('dateRead'); } /** * set date notification is read by user * @param $dateRead date (YYYY-MM-DD HH:MM:SS) */ function setDateRead($dateRead) { $this->setData('dateRead', $dateRead); } /** * get notification type * @return int */ function getType() { return $this->getData('type'); } /** * set notification type * @param $type int */ function setType($type) { $this->setData('type', $type); } /** * get notification type * @return int */ function getAssocType() { return $this->getData('assocType'); } /** * set notification type * @param $assocType int */ function setAssocType($assocType) { $this->setData('assocType', $assocType); } /** * get notification assoc id * @return int */ function getAssocId() { return $this->getData('assocId'); } /** * set notification assoc id * @param $assocId int */ function setAssocId($assocId) { $this->setData('assocId', $assocId); } /** * get context id * @return int */ function getContextId() { return $this->getData('context_id'); } /** * set context id * @param $context int */ function setContextId($contextId) { $this->setData('context_id', $contextId); } } ?>