chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files - Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026' - Added 123 new files from EspoCRM core updates - Removed 4 deprecated files - Total changes: 61,637 insertions, 54,283 deletions This is a routine maintenance update for the new year 2026.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM – Open Source CRM application.
|
||||
* Copyright (C) 2014-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2014-2026 EspoCRM, Inc.
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
namespace Espo\Entities;
|
||||
|
||||
use Espo\Core\Field\Link;
|
||||
use Espo\Core\Field\LinkParent;
|
||||
|
||||
use Espo\Core\ORM\Entity;
|
||||
@@ -40,6 +41,7 @@ class Notification extends Entity
|
||||
|
||||
public const TYPE_ENTITY_REMOVED = 'EntityRemoved';
|
||||
public const TYPE_ASSIGN = 'Assign';
|
||||
public const TYPE_COLLABORATING = 'Collaborating';
|
||||
public const TYPE_EMAIL_RECEIVED = 'EmailReceived';
|
||||
public const TYPE_NOTE = 'Note';
|
||||
public const TYPE_MENTION_IN_POST = 'MentionInPost';
|
||||
@@ -98,12 +100,21 @@ class Notification extends Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCreatedBy(): ?Link
|
||||
{
|
||||
/** @var ?Link */
|
||||
return $this->getValueObject('createdBy');
|
||||
}
|
||||
|
||||
public function getRelated(): ?LinkParent
|
||||
{
|
||||
/** @var ?LinkParent */
|
||||
return $this->getValueObject('related');
|
||||
}
|
||||
|
||||
/**
|
||||
* Note: 'relatedName' is not loaded for a performance reason. Pass 'relatedName' in 'data'.
|
||||
*/
|
||||
public function setRelated(LinkParent|Entity|null $related): self
|
||||
{
|
||||
if ($related instanceof LinkParent) {
|
||||
@@ -173,4 +184,9 @@ class Notification extends Entity
|
||||
{
|
||||
return $this->get('actionId');
|
||||
}
|
||||
|
||||
public function setGroupedCount(?int $groupedCount): self
|
||||
{
|
||||
return $this->set('groupedCount', $groupedCount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user