Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:model:downloadmodel

Differences

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

Link to this comparison view

scriptlog:lib:model:downloadmodel [2026/09/26 09:09] – admin adminscriptlog:lib:model:downloadmodel [2026/09/26 09:16] (current) – admin admin
Line 10: Line 10:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Model class | +| ''@category'' | Model class | 
-  | ''@author'' | M.Noermoehammad | +| ''@author'' | M.Noermoehammad | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 |+| ''@version'' | 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
  
-  ^ Relation ^ Type ^ Meaning ^ +^ Relation ^ Type ^ Meaning ^ 
-  | extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface |+| extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface |
  
 ======= Constants (0) ======= ======= Constants (0) =======
Line 31: Line 31:
 ======= Methods (12) ======= ======= Methods (12) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''getAllMediaDownload()'' | getAllMediaDownload | 28 | +| public | ''getAllMediaDownload()'' | getAllMediaDownload | 28 | 
-  | public | ''getMediaDownload()'' | getMediaDownload | 57 | +| public | ''getMediaDownload()'' | getMediaDownload | 57 | 
-  | public | ''getMediaDownloadURL()'' | getMediaDownloadURL | 89 | +| public | ''getMediaDownloadURL()'' | getMediaDownloadURL | 89 | 
-  | public | ''createMediaDownload()'' | createMediaDownload | 116 | +| public | ''createMediaDownload()'' | createMediaDownload | 116 | 
-  | public | ''updateMediaDownload()'' | updateMediaDownload | 136 | +| public | ''updateMediaDownload()'' | updateMediaDownload | 136 | 
-  | public | ''deleteMediaDownload()'' | deleteMediaDownload | 173 | +| public | ''deleteMediaDownload()'' | deleteMediaDownload | 173 | 
-  | public | ''getDownloadCountByMedia()'' | getDownloadCountByMedia | 185 | +| public | ''getDownloadCountByMedia()'' | getDownloadCountByMedia | 185 | 
-  | public | ''getDownloadHistoryByMedia()'' | getDownloadHistoryByMedia | 199 | +| public | ''getDownloadHistoryByMedia()'' | getDownloadHistoryByMedia | 199 | 
-  | public | ''getDownloadHistory()'' | getDownloadHistory | 212 | +| public | ''getDownloadHistory()'' | getDownloadHistory | 212 | 
-  | public | ''getFileTypeDistribution()'' | getFileTypeDistribution | 227 | +| public | ''getFileTypeDistribution()'' | getFileTypeDistribution | 227 | 
-  | public | ''getRecentDownloads()'' | getRecentDownloads | 243 | +| public | ''getRecentDownloads()'' | getRecentDownloads | 243 | 
-  | public | ''createDownloadLog()'' | createDownloadLog | 259 |+| public | ''createDownloadLog()'' | createDownloadLog | 259 |
  
  
Line 56: Line 56:
 getAllMediaDownload getAllMediaDownload
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$_orderBy'' | ''(untyped)'' | '''ID''' | //none// |+|  ''$_orderBy'' |  ''(untyped)'' |  '''ID''' |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 72: Line 72:
 getMediaDownload getMediaDownload
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$mediaId'' | ''(untyped)'' | //required// | //none// | +|  ''$mediaId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 89: Line 89:
 getMediaDownloadURL getMediaDownloadURL
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$identifier'' | ''(untyped)'' | //required// | //none// | +|  ''$identifier'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$_sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$_sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 106: Line 106:
 createMediaDownload createMediaDownload
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// |+|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 122: Line 122:
 updateMediaDownload updateMediaDownload
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// | +|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// | +|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$mediaId'' | ''(untyped)'' | //required// | //none// |+|  ''$mediaId'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 140: Line 140:
 deleteMediaDownload deleteMediaDownload
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$identifier'' | ''(untyped)'' | //required// | //none// | +|  ''$identifier'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — bool **Returns:** ''(none declared)'' — bool
Line 157: Line 157:
 getDownloadCountByMedia getDownloadCountByMedia
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$mediaId'' | ''(untyped)'' | //required// | //none// |+|  ''$mediaId'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — int **Returns:** ''(none declared)'' — int
Line 173: Line 173:
 getDownloadHistoryByMedia getDownloadHistoryByMedia
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$mediaId'' | ''(untyped)'' | //required// | //none// |+|  ''$mediaId'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 189: Line 189:
 getDownloadHistory getDownloadHistory
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$limit'' | ''(untyped)'' | ''50'' | //none// |+|  ''$limit'' |  ''(untyped)'' |  ''50'' |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 220: Line 220:
 getRecentDownloads getRecentDownloads
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$limit'' | ''(untyped)'' | ''10'' | //none// |+|  ''$limit'' |  ''(untyped)'' |  ''10'' |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 236: Line 236:
 createDownloadLog createDownloadLog
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// |+|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — bool **Returns:** ''(none declared)'' — bool
Line 243: Line 243:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] |+| ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] |
  
  
scriptlog/lib/model/downloadmodel.1790413761.txt.gz · Last modified: by admin