| Next revision | Previous revision |
| scriptlog:lib:controller:pagecontroller [2026/09/26 09:09] – admin admin | scriptlog:lib:controller:pagecontroller [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Class PageController extends BaseApp | | | ''@category'' | Class PageController extends BaseApp | |
| | ''@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) ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (2) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$view'' | | 35 | |
| | | ''private'' | ''(untyped)'' | ''$pageService'' | | 43 | |
| |
| ======= Methods (8) ======= | ======= Methods (8) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 45 | | | public | ''__construct()'' | (undocumented) | 45 | |
| | public | ''listItems()'' | listItems() | 56 | | | public | ''listItems()'' | listItems() | 56 | |
| | public | ''insert()'' | insert | 101 | | | public | ''insert()'' | insert | 101 | |
| | private | ''processPageMediaInsert()'' | processPageMediaInsert() | 231 | | | private | ''processPageMediaInsert()'' | processPageMediaInsert() | 231 | |
| | public | ''update()'' | update() | 284 | | | public | ''update()'' | update() | 284 | |
| | private | ''processPageMediaUpdate()'' | processPageMediaUpdate() | 436 | | | private | ''processPageMediaUpdate()'' | processPageMediaUpdate() | 436 | |
| | public | ''remove()'' | remove() | 489 | | | public | ''remove()'' | remove() | 489 | |
| | protected | ''setView()'' | setView | 546 | | | protected | ''setView()'' | setView | 546 | |
| |
| |
| //lines 45–48 (4)// | //lines 45–48 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$pageService'' | [[scriptlog:lib:service:pageservice|''PageService'']] | //required// | //none// | | | ''$pageService'' | [[scriptlog:lib:service:pageservice|''PageService'']] | //required// | //none// | |
| |
| |
| an explicit featured image. Media writes go through PageService. | an explicit featured image. Media writes go through PageService. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | | | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | |
| | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | | | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | |
| |
| **Returns:** ''(none declared)'' — void | **Returns:** ''(none declared)'' — void |
| update an existing record based on it's ID | update an existing record based on it's ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| an explicit featured image. Media writes go through PageService. | an explicit featured image. Media writes go through PageService. |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$getPage'' | ''(untyped)'' | //required// | Current page row | | | ''$getPage'' | ''(untyped)'' | //required// | Current page row | |
| | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | | | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | |
| | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | | | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | |
| |
| **Returns:** ''(none declared)'' — void | **Returns:** ''(none declared)'' — void |
| remove existing record based on it's ID | remove existing record based on it's ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| setView | setView |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$viewName'' | ''(untyped)'' | //required// | //none// | | | ''$viewName'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] | | | ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] | |
| | ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] | | | ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] | |
| | ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | | | ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | |
| | ''LogError'' | [[scriptlog:lib:core:logerror|''Scriptlog\Core\LogError'']] | | | ''LogError'' | [[scriptlog:lib:core:logerror|''Scriptlog\Core\LogError'']] | |
| | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | | | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | |
| | ''View'' | [[scriptlog:lib:core:view|''Scriptlog\Core\View'']] | | | ''View'' | [[scriptlog:lib:core:view|''Scriptlog\Core\View'']] | |
| | ''PageService'' | [[scriptlog:lib:service:pageservice|''Scriptlog\Service\PageService'']] | | | ''PageService'' | [[scriptlog:lib:service:pageservice|''Scriptlog\Service\PageService'']] | |
| |
| |