Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:controller:downloadcontroller

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:controller:downloadcontroller [2026/09/26 09:09] – admin adminscriptlog:lib:controller:downloadcontroller [2026/09/26 09:34] (current) – admin admin
Line 12: Line 12:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Controller Class | +| ''@category'' | Controller Class | 
-  | ''@author'' | M.Noermoehammad | +| ''@author'' | M.Noermoehammad | 
-  | ''@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:baseapp|''BaseApp'']] | parent class/interface |+| extends | [[scriptlog:lib:core:baseapp|''BaseApp'']] | parent class/interface |
  
 ======= Constants (0) ======= ======= Constants (0) =======
Line 28: Line 28:
 //None.// //None.//
  
-======= Properties (0) =======+======= Properties (2) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private'' | ''(untyped)'' | ''$downloadService'' |  | 27 | 
 +| ''private'' | ''(untyped)'' | ''$view'' |  | 30 |
  
 ======= Methods (9) ======= ======= Methods (9) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 32 | +| public | ''__construct()'' | (undocumented) | 32 | 
-  | protected | ''listItems()'' | List items - not used for downloads | 40 | +| protected | ''listItems()'' | List items - not used for downloads | 40 | 
-  | protected | ''insert()'' | Insert - not used for downloads | 48 | +| protected | ''insert()'' | Insert - not used for downloads | 48 | 
-  | protected | ''update()'' | Update - not used for downloads | 56 | +| protected | ''update()'' | Update - not used for downloads | 56 | 
-  | protected | ''remove()'' | Remove - not used for downloads | 64 | +| protected | ''remove()'' | Remove - not used for downloads | 64 | 
-  | public | ''download()'' | Handle download request | 74 | +| public | ''download()'' | Handle download request | 74 | 
-  | public | ''getDownloadPage()'' | Get download info page | 147 | +| public | ''getDownloadPage()'' | Get download info page | 147 | 
-  | private | ''getFilePath()'' | Get file path based on media type | 195 | +| private | ''getFilePath()'' | Get file path based on media type | 195 | 
-  | private | ''getFileSize()'' | Get formatted file size | 219 |+| private | ''getFileSize()'' | Get formatted file size | 219 |
  
  
Line 54: Line 56:
 //lines 32–35 (4)// //lines 32–35 (4)//
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$downloadService'' | [[scriptlog:lib:service:downloadservice|''DownloadService'']] | //required// | //none// |+|  ''$downloadService'' |  [[scriptlog:lib:service:downloadservice|''DownloadService'']] |  //required// |  //none// |
  
  
Line 98: Line 100:
 Update - not used for downloads Update - not used for downloads
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// |+|  ''$id'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 114: Line 116:
 Remove - not used for downloads Remove - not used for downloads
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// |+|  ''$id'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 130: Line 132:
 Handle download request Handle download request
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$identifier'' | ''(untyped)'' | //required// | //none// |+|  ''$identifier'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 146: Line 148:
 Get download info page Get download info page
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$identifier'' | ''(untyped)'' | //required// | //none// |+|  ''$identifier'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 162: Line 164:
 Get file path based on media type Get file path based on media type
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$media'' | ''(untyped)'' | //required// | //none// |+|  ''$media'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 178: Line 180:
 Get formatted file size Get formatted file size
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$media'' | ''(untyped)'' | //required// | //none// |+|  ''$media'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 185: Line 187:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | +| ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | 
-  | ''DownloadService'' | [[scriptlog:lib:service:downloadservice|''Scriptlog\Service\DownloadService'']] |+| ''DownloadService'' | [[scriptlog:lib:service:downloadservice|''Scriptlog\Service\DownloadService'']] |
  
  
scriptlog/lib/controller/downloadcontroller.1790413759.txt.gz · Last modified: by admin