| |
| scriptlog:lib:dao:pagedao [2026/09/26 09:09] – admin admin | scriptlog:lib:dao:pagedao [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Dao Class | | | ''@category'' | Dao 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:dao|''Dao'']] | parent class/interface | | | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface | |
| |
| ======= Constants (0) ======= | ======= Constants (0) ======= |
| ======= Methods (11) ======= | ======= Methods (11) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 23 | | | public | ''__construct()'' | (undocumented) | 23 | |
| | public | ''findPages()'' | Find pages | 35 | | | public | ''findPages()'' | Find pages | 35 | |
| | public | ''findPageById()'' | Find page by id | 99 | | | public | ''findPageById()'' | Find page by id | 99 | |
| | public | ''createPage()'' | createPage() | 135 | | | public | ''createPage()'' | createPage() | 135 | |
| | public | ''updatePage()'' | UpdatePage | 173 | | | public | ''updatePage()'' | UpdatePage | 173 | |
| | public | ''deletePage()'' | deletePage | 211 | | | public | ''deletePage()'' | deletePage | 211 | |
| | public | ''checkPageId()'' | Check page id | 228 | | | public | ''checkPageId()'' | Check page id | 228 | |
| | public | ''dropDownPostStatus()'' | Set post status | 243 | | | public | ''dropDownPostStatus()'' | Set post status | 243 | |
| | public | ''dropDownCommentStatus()'' | Set comment status | 257 | | | public | ''dropDownCommentStatus()'' | Set comment status | 257 | |
| | public | ''totalPageRecords()'' | Total page records | 271 | | | public | ''totalPageRecords()'' | Total page records | 271 | |
| | public | ''dropDownLocale()'' | Drop down locale | 287 | | | public | ''dropDownLocale()'' | Drop down locale | 287 | |
| |
| |
| Find pages | Find pages |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$type'' | ''(untyped)'' | //required// | //none// | | | ''$type'' | ''(untyped)'' | //required// | //none// | |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| | ''$author'' | ''(untyped)'' | ''null'' | //none// | | | ''$author'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean|array|object | **Returns:** ''(none declared)'' — boolean|array|object |
| Find page by id | Find page by id |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$ID'' | ''(untyped)'' | //required// | //none// | | | ''$ID'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean|array|object | **Returns:** ''(none declared)'' — boolean|array|object |
| Insert new page record | Insert new page record |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| Updating an existing page record | Updating an existing page record |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| | ''$ID'' | ''(untyped)'' | //required// | //none// | | | ''$ID'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| Deleting an existing record based on it's ID | Deleting an existing record based on it's ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$ID'' | ''(untyped)'' | //required// | //none// | | | ''$ID'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| | ''$type'' | ''(untyped)'' | //required// | //none// | | | ''$type'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| Check page id | Check page id |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitizing'' | ''(untyped)'' | //required// | //none// | | | ''$sanitizing'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — numeric | **Returns:** ''(none declared)'' — numeric |
| Set post status | Set post status |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | ''""'' | //none// | | | ''$selected'' | ''(untyped)'' | ''""'' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Set comment status | Set comment status |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | '''''' | //none// | | | ''$selected'' | ''(untyped)'' | '''''' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Total page records | Total page records |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$data'' | ''array'' | ''[]'' | //none// | | | ''$data'' | ''array'' | ''[]'' | //none// | |
| |
| **Returns:** ''?int'' — numeric | **Returns:** ''?int'' — numeric |
| Drop down locale | Drop down locale |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | ''""'' | //none// | | | ''$selected'' | ''(untyped)'' | ''""'' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | | | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | |
| |
| |