====== PageController ====== **Layer:** ''Controller'' · **Source:** ''lib/controller/PageController.php:27'' (lines 27–550) ---- final class PageController extends BaseApp ======= Docblock Metadata ======= ^ Tag ^ Value ^ | ''@category'' | Class PageController extends BaseApp | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 | ======= Inheritance ======= ^ Relation ^ Type ^ Meaning ^ | extends | [[scriptlog:lib:core:baseapp|''BaseApp'']] | parent class/interface | ======= Constants (0) ======= //None.// ======= Properties (2) ======= ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ''private'' | ''(untyped)'' | ''$view'' | | 35 | | ''private'' | ''(untyped)'' | ''$pageService'' | | 43 | ======= Methods (8) ======= ^ Visibility ^ Method ^ Summary ^ Line ^ | public | ''__construct()'' | (undocumented) | 45 | | public | ''listItems()'' | listItems() | 56 | | public | ''insert()'' | insert | 101 | | private | ''processPageMediaInsert()'' | processPageMediaInsert() | 231 | | public | ''update()'' | update() | 284 | | private | ''processPageMediaUpdate()'' | processPageMediaUpdate() | 436 | | public | ''remove()'' | remove() | 489 | | protected | ''setView()'' | setView | 546 | ======== __construct() ======== public function __construct(PageService $pageService) //lines 45–48 (4)// ^ Parameter ^ Type ^ Default ^ Description ^ | ''$pageService'' | [[scriptlog:lib:service:pageservice|''PageService'']] | //required// | //none// | ======== listItems() ======== public function listItems() //lines 56–93 (38)// listItems() //Takes no parameters.// **Returns:** ''(none declared)'' — mixed ======== insert() ======== public function insert() //lines 101–218 (118)// insert new page record //Takes no parameters.// **Returns:** ''(none declared)'' ======== processPageMediaInsert() ======== private function processPageMediaInsert($filters, $user_level) //lines 231–274 (44)// processPageMediaInsert() Create the fallback media record when a new page is saved without an explicit featured image. Media writes go through PageService. ^ Parameter ^ Type ^ Default ^ Description ^ | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | **Returns:** ''(none declared)'' — void ======== update() ======== public function update($id) //lines 284–422 (139)// update() update an existing record based on it's ID ^ Parameter ^ Type ^ Default ^ Description ^ | ''$id'' | ''(untyped)'' | //required// | //none// | **Returns:** ''(none declared)'' ======== processPageMediaUpdate() ======== private function processPageMediaUpdate($getPage, $filters, $user_level) //lines 436–479 (44)// processPageMediaUpdate() Create the fallback media record when an existing page is saved without an explicit featured image. Media writes go through PageService. ^ Parameter ^ Type ^ Default ^ Description ^ | ''$getPage'' | ''(untyped)'' | //required// | Current page row | | ''$filters'' | ''(untyped)'' | //required// | Distilled form filters | | ''$user_level'' | ''(untyped)'' | //required// | Media owner level | **Returns:** ''(none declared)'' — void ======== remove() ======== public function remove($id) //lines 489–538 (50)// remove() remove existing record based on it's ID ^ Parameter ^ Type ^ Default ^ Description ^ | ''$id'' | ''(untyped)'' | //required// | //none// | **Returns:** ''(none declared)'' ======== setView() ======== protected function setView($viewName) //lines 546–549 (4)// setView ^ Parameter ^ Type ^ Default ^ Description ^ | ''$viewName'' | ''(untyped)'' | //required// | //none// | **Returns:** ''(none declared)'' ======= Imports ======= ^ Alias ^ Fully-qualified name ^ | ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] | | ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] | | ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | | ''LogError'' | [[scriptlog:lib:core:logerror|''Scriptlog\Core\LogError'']] | | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | | ''View'' | [[scriptlog:lib:core:view|''Scriptlog\Core\View'']] | | ''PageService'' | [[scriptlog:lib:service:pageservice|''Scriptlog\Service\PageService'']] | ---- //This page is generated from source by 'tools/gendoc'. Edits will be overwritten.//