| |
| scriptlog:lib:dao:privacylogdao [2026/09/26 09:09] – admin admin | scriptlog:lib:dao:privacylogdao [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Dao Class | | | ''@category'' | Dao Class | |
| | ''@author'' | Scriptlog | | | ''@author'' | Scriptlog | |
| | ''@license'' | MIT | | | ''@license'' | MIT | |
| | ''@version'' | 1.0 | | | ''@version'' | 1.0 | |
| | ''@since'' | Since Release 1.0 | | | ''@since'' | Since Release 1.0 | |
| |
| ======= Inheritance ======= | ======= Inheritance ======= |
| |
| ^ Relation ^ Type ^ Meaning ^ | ^ Relation ^ Type ^ Meaning ^ |
| | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface | | | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface | |
| |
| ======= Constants (0) ======= | ======= Constants (0) ======= |
| ======= Methods (10) ======= | ======= Methods (10) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | Constructor | 27 | | | public | ''__construct()'' | Constructor | 27 | |
| | public | ''createLog()'' | Create a privacy log entry | 43 | | | public | ''createLog()'' | Create a privacy log entry | 43 | |
| | public | ''getLogById()'' | Get log by ID | 63 | | | public | ''getLogById()'' | Get log by ID | 63 | |
| | public | ''getLogsByUserId()'' | Get logs by user ID | 76 | | | public | ''getLogsByUserId()'' | Get logs by user ID | 76 | |
| | public | ''getLogsByEmail()'' | Get logs by email | 92 | | | public | ''getLogsByEmail()'' | Get logs by email | 92 | |
| | public | ''getLogsByAction()'' | Get logs by action | 108 | | | public | ''getLogsByAction()'' | Get logs by action | 108 | |
| | public | ''getAllLogs()'' | Get all logs | 127 | | | public | ''getAllLogs()'' | Get all logs | 127 | |
| | public | ''getRecentLogs()'' | Get recent logs | 143 | | | public | ''getRecentLogs()'' | Get recent logs | 143 | |
| | public | ''deleteOldLogs()'' | Delete old logs | 159 | | | public | ''deleteOldLogs()'' | Delete old logs | 159 | |
| | public | ''totalLogRecords()'' | Total log records | 176 | | | public | ''totalLogRecords()'' | Total log records | 176 | |
| |
| |
| Create a privacy log entry | Create a privacy log entry |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$action'' | ''(untyped)'' | //required// | //none// | | | ''$action'' | ''(untyped)'' | //required// | //none// | |
| | ''$type'' | ''(untyped)'' | //required// | //none// | | | ''$type'' | ''(untyped)'' | //required// | //none// | |
| | ''$userId'' | ''(untyped)'' | ''null'' | //none// | | | ''$userId'' | ''(untyped)'' | ''null'' | //none// | |
| | ''$email'' | ''(untyped)'' | ''null'' | //none// | | | ''$email'' | ''(untyped)'' | ''null'' | //none// | |
| | ''$details'' | ''(untyped)'' | ''null'' | //none// | | | ''$details'' | ''(untyped)'' | ''null'' | //none// | |
| | ''$ipAddress'' | ''(untyped)'' | ''null'' | //none// | | | ''$ipAddress'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — int | **Returns:** ''(none declared)'' — int |
| Get log by ID | Get log by ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| Get logs by user ID | Get logs by user ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$userId'' | ''(untyped)'' | //required// | //none// | | | ''$userId'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| Get logs by email | Get logs by email |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$email'' | ''(untyped)'' | //required// | //none// | | | ''$email'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| Get logs by action | Get logs by action |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$action'' | ''(untyped)'' | //required// | //none// | | | ''$action'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| never interpolated into the query. | never interpolated into the query. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| Get recent logs | Get recent logs |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$limit'' | ''(untyped)'' | ''50'' | //none// | | | ''$limit'' | ''(untyped)'' | ''50'' | //none// | |
| |
| **Returns:** ''(none declared)'' — array|bool | **Returns:** ''(none declared)'' — array|bool |
| Delete old logs | Delete old logs |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$days'' | ''(untyped)'' | ''365'' | //none// | | | ''$days'' | ''(untyped)'' | ''365'' | //none// | |
| |
| **Returns:** ''(none declared)'' — bool | **Returns:** ''(none declared)'' — bool |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | | | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | |
| |
| |