| |
| scriptlog:lib:model:downloadmodel [2026/09/26 09:09] – admin admin | scriptlog:lib:model:downloadmodel [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= 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) ======= |
| ======= 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 | |
| |
| |
| 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 |
| 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 |
| 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 |
| createMediaDownload | createMediaDownload |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| 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)'' |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| ======= 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'']] | |
| |
| |