Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:dao:privacylogdao

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scriptlog:lib:dao:privacylogdao [2026/09/26 09:09] – admin adminscriptlog:lib:dao:privacylogdao [2026/09/26 09:16] (current) – admin admin
Line 14: Line 14:
 ======= 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) =======
Line 36: Line 36:
 ======= 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 |
  
  
Line 72: Line 72:
 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
Line 93: Line 93:
 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
Line 109: Line 109:
 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
Line 125: Line 125:
 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
Line 141: Line 141:
 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
Line 160: Line 160:
 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
Line 176: Line 176:
 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
Line 192: Line 192:
 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
Line 214: Line 214:
 ======= 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'']] |
  
  
scriptlog/lib/dao/privacylogdao.txt · Last modified: by admin