/
kev
/
Nextcloud_File-Changes-Tracker
Обзор
Документация
Войти
/
kev
/
Nextcloud_File-Changes-Tracker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
lib/Db/FolderConfig.php
58 строк
2 KB
Evgeny Konovalov
first_commit
16 фев 2026, 17:45
16 фев 2026, 17:45
476f06c
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace OCA\FileChangesTracker\Db; use JsonSerializable; use OCP\AppFramework\Db\Entity; /** * Сущность для конфигурации отслеживаемых папок * * @method string getFolderPath() * @method void setFolderPath(string $folderPath) * @method int|null getFolderId() * @method void setFolderId(?int $folderId) * @method string getResponsibleType() * @method void setResponsibleType(string $responsibleType) * @method string getResponsibleId() * @method void setResponsibleId(string $responsibleId) * @method bool getNotificationsEnabled() * @method void setNotificationsEnabled(bool $notificationsEnabled) * @method string getCreatedAt() * @method void setCreatedAt(string $createdAt) * @method string getUpdatedAt() * @method void setUpdatedAt(string $updatedAt) * @method string getCreatedBy() * @method void setCreatedBy(string $createdBy) */ class FolderConfig extends Entity implements JsonSerializable { protected $folderPath = ''; protected $folderId; protected $responsibleType = ''; protected $responsibleId = ''; protected $notificationsEnabled = true; protected $createdAt = ''; protected $updatedAt = ''; protected $createdBy = ''; public function __construct() { $this->addType('folderId', 'integer'); $this->addType('notificationsEnabled', 'boolean'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'folderPath' => $this->folderPath, 'folderId' => $this->folderId, 'responsibleType' => $this->responsibleType, 'responsibleId' => $this->responsibleId, 'notificationsEnabled' => $this->notificationsEnabled, 'createdAt' => $this->createdAt, 'updatedAt' => $this->updatedAt, 'createdBy' => $this->createdBy, ]; } }