Skip to content

Commit 96d46cf

Browse files
committed
the rest
1 parent b77e4ca commit 96d46cf

18 files changed

+1187
-2
lines changed

src/Domain/Model/Analytics/LinkTrackUmlClick.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LinkTrackUmlClick implements DomainModel, Identity
2424
#[ORM\Column(name: "messageid", type: "integer")]
2525
private int $messageId;
2626

27-
#[ORM\Column(name: 'messageid', type: "integer")]
27+
#[ORM\Column(name: 'userid', type: "integer")]
2828
private int $userId;
2929

3030
#[ORM\Column(name: "forwardid", type: "integer", nullable: true)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpList\Core\Domain\Model\Analytics;
6+
7+
use DateTime;
8+
use Doctrine\ORM\Mapping as ORM;
9+
use PhpList\Core\Domain\Model\Interfaces\DomainModel;
10+
use PhpList\Core\Domain\Model\Interfaces\Identity;
11+
use PhpList\Core\Domain\Model\Traits\IdentityTrait;
12+
13+
#[ORM\Entity]
14+
#[ORM\Table(name: "phplist_user_message_view")]
15+
#[ORM\Index(name: "msgidx", columns: ["messageid"])]
16+
#[ORM\Index(name: "useridx", columns: ["userid"])]
17+
#[ORM\Index(name: "usermsgidx", columns: ["userid", "messageid"])]
18+
class UserMessageView implements DomainModel, Identity
19+
{
20+
use IdentityTrait;
21+
22+
#[ORM\Column(name: "messageid", type: "integer")]
23+
private int $messageId;
24+
25+
#[ORM\Column(name: "userid", type: "integer")]
26+
private int $userId;
27+
28+
#[ORM\Column(name: "viewed", type: "datetime", nullable: true)]
29+
private ?DateTime $viewed = null;
30+
31+
#[ORM\Column(name: "ip", type: "string", length: 255, nullable: true)]
32+
private ?string $ip = null;
33+
34+
#[ORM\Column(name: "data", type: "text", nullable: true)]
35+
private ?string $data = null;
36+
37+
public function getMessageId(): int
38+
{
39+
return $this->messageId;
40+
}
41+
42+
public function getUserId(): int
43+
{
44+
return $this->userId;
45+
}
46+
47+
public function getViewed(): ?DateTime
48+
{
49+
return $this->viewed;
50+
}
51+
52+
public function getIp(): ?string
53+
{
54+
return $this->ip;
55+
}
56+
57+
public function getData(): ?string
58+
{
59+
return $this->data;
60+
}
61+
62+
public function setMessageId(int $messageId): self
63+
{
64+
$this->messageId = $messageId;
65+
return $this;
66+
}
67+
68+
public function setUserId(int $userId): self
69+
{
70+
$this->userId = $userId;
71+
return $this;
72+
}
73+
74+
public function setViewed(?DateTime $viewed): self
75+
{
76+
$this->viewed = $viewed;
77+
return $this;
78+
}
79+
80+
public function setIp(?string $ip): self
81+
{
82+
$this->ip = $ip;
83+
return $this;
84+
}
85+
86+
public function setData(?string $data): self
87+
{
88+
$this->data = $data;
89+
return $this;
90+
}
91+
}
+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpList\Core\Domain\Model\Analytics;
6+
7+
use Doctrine\ORM\Mapping as ORM;
8+
use PhpList\Core\Domain\Model\Interfaces\DomainModel;
9+
use PhpList\Core\Domain\Model\Interfaces\Identity;
10+
use PhpList\Core\Domain\Model\Traits\IdentityTrait;
11+
12+
#[ORM\Entity]
13+
#[ORM\Table(name: "phplist_userstats")]
14+
#[ORM\UniqueConstraint(name: "entry", columns: ["unixdate", "item", "listid"])]
15+
#[ORM\Index(name: "dateindex", columns: ["unixdate"])]
16+
#[ORM\Index(name: "itemindex", columns: ["item"])]
17+
#[ORM\Index(name: "listdateindex", columns: ["listid", "unixdate"])]
18+
#[ORM\Index(name: "listindex", columns: ["listid"])]
19+
class UserStats implements DomainModel, Identity
20+
{
21+
use IdentityTrait;
22+
23+
#[ORM\Column(name: "unixdate", type: "integer", nullable: true)]
24+
private ?int $unixDate = null;
25+
26+
#[ORM\Column(name: "item", type: "string", length: 255, nullable: true)]
27+
private ?string $item = null;
28+
29+
#[ORM\Column(name: "listid", type: "integer", options: ["default" => 0])]
30+
private int $listId = 0;
31+
32+
#[ORM\Column(name: "value", type: "integer", options: ["default" => 0])]
33+
private int $value = 0;
34+
35+
public function getUnixDate(): ?int
36+
{
37+
return $this->unixDate;
38+
}
39+
40+
public function getItem(): ?string
41+
{
42+
return $this->item;
43+
}
44+
45+
public function getListId(): int
46+
{
47+
return $this->listId;
48+
}
49+
50+
public function getValue(): int
51+
{
52+
return $this->value;
53+
}
54+
55+
public function setUnixDate(?int $unixDate): self
56+
{
57+
$this->unixDate = $unixDate;
58+
return $this;
59+
}
60+
61+
public function setItem(?string $item): self
62+
{
63+
$this->item = $item;
64+
return $this;
65+
}
66+
67+
public function setListId(int $listId): self
68+
{
69+
$this->listId = $listId;
70+
return $this;
71+
}
72+
73+
public function setValue(int $value): self
74+
{
75+
$this->value = $value;
76+
return $this;
77+
}
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpList\Core\Domain\Model\Configuration;
6+
7+
use DateTime;
8+
use Doctrine\ORM\Mapping as ORM;
9+
use PhpList\Core\Domain\Model\Interfaces\DomainModel;
10+
use PhpList\Core\Domain\Model\Interfaces\Identity;
11+
use PhpList\Core\Domain\Model\Traits\IdentityTrait;
12+
13+
#[ORM\Entity]
14+
#[ORM\Table(name: "phplist_urlcache")]
15+
#[ORM\Index(name: "urlindex", columns: ["url"])]
16+
class UrlCache implements DomainModel, Identity
17+
{
18+
use IdentityTrait;
19+
20+
#[ORM\Column(name: "url", type: "string", length: 2083)]
21+
private string $url;
22+
23+
#[ORM\Column(name: "lastmodified", type: "integer", nullable: true)]
24+
private ?int $lastModified = null;
25+
26+
#[ORM\Column(name: "added", type: "datetime", nullable: true)]
27+
private ?DateTime $added = null;
28+
29+
#[ORM\Column(name: "content", type: "blob", nullable: true)]
30+
private ?string $content = null;
31+
32+
public function getUrl(): string
33+
{
34+
return $this->url;
35+
}
36+
37+
public function getLastModified(): ?int
38+
{
39+
return $this->lastModified;
40+
}
41+
42+
public function getAdded(): ?DateTime
43+
{
44+
return $this->added;
45+
}
46+
47+
public function getContent(): ?string
48+
{
49+
return $this->content;
50+
}
51+
52+
public function setUrl(string $url): self
53+
{
54+
$this->url = $url;
55+
return $this;
56+
}
57+
58+
public function setLastModified(?int $lastModified): self
59+
{
60+
$this->lastModified = $lastModified;
61+
return $this;
62+
}
63+
64+
public function setAdded(?DateTime $added): self
65+
{
66+
$this->added = $added;
67+
return $this;
68+
}
69+
70+
public function setContent(?string $content): self
71+
{
72+
$this->content = $content;
73+
return $this;
74+
}
75+
}
+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpList\Core\Domain\Model\Identity;
6+
7+
use Doctrine\ORM\Mapping as ORM;
8+
use PhpList\Core\Domain\Model\Interfaces\DomainModel;
9+
use PhpList\Core\Domain\Model\Interfaces\Identity;
10+
use PhpList\Core\Domain\Model\Traits\IdentityTrait;
11+
12+
#[ORM\Entity]
13+
#[ORM\Table(name: "phplist_user_attribute")]
14+
#[ORM\Index(name: "idnameindex", columns: ["id", "name"])]
15+
#[ORM\Index(name: "nameindex", columns: ["name"])]
16+
class UserAttribute implements DomainModel, Identity
17+
{
18+
use IdentityTrait;
19+
20+
#[ORM\Column(name: "name", type: "string", length: 255)]
21+
private string $name;
22+
23+
#[ORM\Column(name: "type", type: "string", length: 30, nullable: true)]
24+
private ?string $type = null;
25+
26+
#[ORM\Column(name: "listorder", type: "integer", nullable: true)]
27+
private ?int $listOrder = null;
28+
29+
#[ORM\Column(name: "default_value", type: "string", length: 255, nullable: true)]
30+
private ?string $defaultValue = null;
31+
32+
#[ORM\Column(name: "required", type: "boolean", nullable: true)]
33+
private ?bool $required = null;
34+
35+
#[ORM\Column(name: "tablename", type: "string", length: 255, nullable: true)]
36+
private ?string $tableName = null;
37+
38+
public function getName(): string
39+
{
40+
return $this->name;
41+
}
42+
43+
public function getType(): ?string
44+
{
45+
return $this->type;
46+
}
47+
48+
public function getListOrder(): ?int
49+
{
50+
return $this->listOrder;
51+
}
52+
53+
public function getDefaultValue(): ?string
54+
{
55+
return $this->defaultValue;
56+
}
57+
58+
public function isRequired(): ?bool
59+
{
60+
return $this->required;
61+
}
62+
63+
public function getTableName(): ?string
64+
{
65+
return $this->tableName;
66+
}
67+
68+
// Setters
69+
public function setName(string $name): self
70+
{
71+
$this->name = $name;
72+
return $this;
73+
}
74+
75+
public function setType(?string $type): self
76+
{
77+
$this->type = $type;
78+
return $this;
79+
}
80+
81+
public function setListOrder(?int $listOrder): self
82+
{
83+
$this->listOrder = $listOrder;
84+
return $this;
85+
}
86+
87+
public function setDefaultValue(?string $defaultValue): self
88+
{
89+
$this->defaultValue = $defaultValue;
90+
return $this;
91+
}
92+
93+
public function setRequired(?bool $required): self
94+
{
95+
$this->required = $required;
96+
return $this;
97+
}
98+
99+
public function setTableName(?string $tableName): self
100+
{
101+
$this->tableName = $tableName;
102+
return $this;
103+
}
104+
}

0 commit comments

Comments
 (0)