Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:model:downloadmodel

This is an old revision of the document!


DownloadModel

Layer: Model · Source: lib/model/DownloadModel.php:19 (lines 19–269)


class DownloadModel extends BaseModel

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Model class |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
| ''@version'' | 1.0 |

Inheritance

^ Relation ^ Type ^ Meaning ^
| extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface |

Constants (0)

None.

Properties (0)

None declared.

Methods (12)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''getAllMediaDownload()'' | getAllMediaDownload | 28 |
| public | ''getMediaDownload()'' | getMediaDownload | 57 |
| public | ''getMediaDownloadURL()'' | getMediaDownloadURL | 89 |
| public | ''createMediaDownload()'' | createMediaDownload | 116 |
| public | ''updateMediaDownload()'' | updateMediaDownload | 136 |
| public | ''deleteMediaDownload()'' | deleteMediaDownload | 173 |
| public | ''getDownloadCountByMedia()'' | getDownloadCountByMedia | 185 |
| public | ''getDownloadHistoryByMedia()'' | getDownloadHistoryByMedia | 199 |
| public | ''getDownloadHistory()'' | getDownloadHistory | 212 |
| public | ''getFileTypeDistribution()'' | getFileTypeDistribution | 227 |
| public | ''getRecentDownloads()'' | getRecentDownloads | 243 |
| public | ''createDownloadLog()'' | createDownloadLog | 259 |

getAllMediaDownload()

public function getAllMediaDownload($_orderBy = 'ID')

lines 28–47 (20)

getAllMediaDownload

^ Parameter ^ Type ^ Default ^ Description ^
| ''$_orderBy'' | ''(untyped)'' | '''ID''' | //none// |

Returns: (none declared) — mixed

getMediaDownload()

public function getMediaDownload($mediaId, $sanitize)

lines 57–79 (23)

getMediaDownload

^ Parameter ^ Type ^ Default ^ Description ^
| ''$mediaId'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — mixed

getMediaDownloadURL()

public function getMediaDownloadURL($identifier, $_sanitize)

lines 89–108 (20)

getMediaDownloadURL

^ Parameter ^ Type ^ Default ^ Description ^
| ''$identifier'' | ''(untyped)'' | //required// | //none// |
| ''$_sanitize'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — mixed

createMediaDownload()

public function createMediaDownload($bind)

lines 116–126 (11)

createMediaDownload

^ Parameter ^ Type ^ Default ^ Description ^
| ''$bind'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

updateMediaDownload()

public function updateMediaDownload($sanitize, $bind, $mediaId)

lines 136–164 (29)

updateMediaDownload

^ Parameter ^ Type ^ Default ^ Description ^
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
| ''$bind'' | ''(untyped)'' | //required// | //none// |
| ''$mediaId'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

deleteMediaDownload()

public function deleteMediaDownload($identifier, $sanitize)

lines 173–177 (5)

deleteMediaDownload

^ Parameter ^ Type ^ Default ^ Description ^
| ''$identifier'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — bool

getDownloadCountByMedia()

public function getDownloadCountByMedia($mediaId)

lines 185–191 (7)

getDownloadCountByMedia

^ Parameter ^ Type ^ Default ^ Description ^
| ''$mediaId'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — int

getDownloadHistoryByMedia()

public function getDownloadHistoryByMedia($mediaId)

lines 199–204 (6)

getDownloadHistoryByMedia

^ Parameter ^ Type ^ Default ^ Description ^
| ''$mediaId'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — array

getDownloadHistory()

public function getDownloadHistory($limit = 50)

lines 212–220 (9)

getDownloadHistory

^ Parameter ^ Type ^ Default ^ Description ^
| ''$limit'' | ''(untyped)'' | ''50'' | //none// |

Returns: (none declared) — array

getFileTypeDistribution()

public function getFileTypeDistribution()

lines 227–235 (9)

getFileTypeDistribution

Takes no parameters.

Returns: (none declared) — array

getRecentDownloads()

public function getRecentDownloads($limit = 10)

lines 243–251 (9)

getRecentDownloads

^ Parameter ^ Type ^ Default ^ Description ^
| ''$limit'' | ''(untyped)'' | ''10'' | //none// |

Returns: (none declared) — array

createDownloadLog()

public function createDownloadLog($bind)

lines 259–268 (10)

createDownloadLog

^ Parameter ^ Type ^ Default ^ Description ^
| ''$bind'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — bool

Imports

^ Alias ^ Fully-qualified name ^
| ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] |

This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/model/downloadmodel.1790413761.txt.gz · Last modified: by admin