Layer: Model · Source: lib/model/PageModel.php:19 (lines 19–101)
class PageModel extends BaseModel
| Tag | Value |
|---|---|
@category | Model class |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
| Relation | Type | Meaning |
|---|---|---|
| extends | ''BaseModel'' | parent class/interface |
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | getPageById() | getPageById | 30 |
| public | getPageBySlug() | getPageBySlug | 59 |
| public | getRandomStickyPages() | getRandomStickyPages | 87 |
public function getPageById($id, $sanitize, $fetchMode = null)
lines 30–50 (21)
getPageById
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
$sanitize | (untyped) | required | none |
$fetchMode | (untyped) | null | none |
Returns: (none declared) — mixed
public function getPageBySlug($slug, $sanitize)
lines 59–79 (21)
getPageBySlug
| Parameter | Type | Default | Description |
|---|---|---|---|
$slug | (untyped) | required | none |
$sanitize | (untyped) | required | none |
Returns: (none declared) — boolean|array|object
public function getRandomStickyPages()
lines 87–100 (14)
getRandomStickyPages
Takes no parameters.
Returns: (none declared) — mixed
| Alias | Fully-qualified name |
|---|---|
BaseModel | ''Scriptlog\Core\BaseModel'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.