diff options
| author | winter | 2024-12-09 21:31:54 +0000 |
|---|---|---|
| committer | winter | 2024-12-09 21:31:54 +0000 |
| commit | 4c7bde1400820f36caf8b2a5374007384c3018f3 (patch) | |
| tree | 83ed26ff368117b8e392f7bc28736482077fc2f4 /Digitigrade/Model/ActorEndpoints.php | |
| parent | 50edbd3907c26a2d4d616421de9bb51a4d083c1b (diff) | |
rename to Digitigrade / PawPub
:3
Diffstat (limited to 'Digitigrade/Model/ActorEndpoints.php')
| -rw-r--r-- | Digitigrade/Model/ActorEndpoints.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Digitigrade/Model/ActorEndpoints.php b/Digitigrade/Model/ActorEndpoints.php new file mode 100644 index 0000000..8821d1c --- /dev/null +++ b/Digitigrade/Model/ActorEndpoints.php @@ -0,0 +1,27 @@ +<?php +namespace Digitigrade\Model; + +use Digitigrade\Model; + +class ActorEndpoints extends Model { + public ?int $actorId; + public string $basicFeed; + public ?string $fullFeed; + public ?string $follow; + public ?string $unfollow; + public ?string $block; + public ?string $unblock; + public ?string $subscribe; + public ?string $unsubscribe; + + protected function setOwnerId(int $id) { + $this->actorId = $id; + } + + protected function getUpdateWhereClause($db): ?string { + if (self::findWhere('actor_id = ?', [$this->actorId]) != null) { + return "actor_id = $this->actorId"; + } + return null; + } +}
\ No newline at end of file |
