email filter mark as read

This commit is contained in:
Yuri Kuznetsov
2022-10-24 11:34:26 +03:00
parent 5a29830202
commit acfcc65aee
12 changed files with 67 additions and 14 deletions
+9 -1
View File
@@ -29,13 +29,16 @@
namespace Espo\Entities;
class EmailFilter extends \Espo\Core\ORM\Entity
use Espo\Core\ORM\Entity;
class EmailFilter extends Entity
{
public const ENTITY_TYPE = 'EmailFilter';
public const ACTION_SKIP = 'Skip';
public const ACTION_MOVE_TO_FOLDER = 'Move to Folder';
public const ACTION_MOVE_TO_GROUP_FOLDER = 'Move to Group Folder';
public const ACTION_NONE = 'None';
/**
* @return self::ACTION_*|null
@@ -55,6 +58,11 @@ class EmailFilter extends \Espo\Core\ORM\Entity
return $this->get('groupEmailFolderId');
}
public function markAsRead(): bool
{
return (bool) $this->get('markAsRead');
}
public function isGlobal(): bool
{
return (bool) $this->get('isGlobal');