Layer: Core · Source: lib/core/FrontHelper.php:33 (lines 33–224)
class FrontHelper
FrontHelper class will be useful for theme functionality to retrieves particular content needed on theme layout and theme meta.
| Tag | Value |
|---|---|
@category | Core Class |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
@deprecated | 1.0 Use Scriptlog\Service\FrontService instead. This facade is kept for backward compatibility only; every data-access method delegates to the FrontService instance registered by Bootstrap through FrontHelper::setFrontService(). When no service is registered, the methods return null / an empty array rather than falling back to raw SQL (the legacy inline queries were removed because they drifted from FrontService, used string interpolation, and one path was mysqli-only and broke on PDO). |
Deprecated: 1.0 Use Scriptlog\Service\FrontService instead. This facade is kept for backward compatibility only; every data-access method delegates to the FrontService instance registered by Bootstrap through FrontHelper::setFrontService(). When no service is registered, the methods return null / an empty array rather than falling back to raw SQL (the legacy inline queries were removed because they drifted from FrontService, used string interpolation, and one path was mysqli-only and broke on PDO).
No parent, interface or trait. This is a root type.
None.
| Visibility | Type | Name | Default | Line |
|---|---|---|---|---|
private static | static ?FrontService | $frontService | null | 40 |
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | setFrontService() | Set the FrontService instance | 47 |
| public static | grabSimpleFrontPost() | grabSimpleFrontPost | 61 |
| public static | grabSimpleFrontTopic() | grabSimpleFrontTopic | 75 |
| public static | grabSimpleFrontArchive() | grabSimpleFrontArchive | 88 |
| public static | grabSimpleFrontPage() | grabSimpleFrontPage | 102 |
| public static | simpleSearchingTag() | grabFrontTag | 118 |
| public static | grabTagLists() | grabTagLists() | 135 |
| public static | grabPreparedFrontPostById() | grabPreparedFrontPostById | 149 |
| public static | grabPreparedFrontPageBySlug() | frontPageBySlug | 163 |
| public static | grabPreparedFrontTopicBySlug() | grabPreparedFrontTopicBySlug | 177 |
| public static | grabPreparedFrontTopicByID() | grabPreparedFrontTopicByID | 191 |
| public static | grabPreparedFrontArchive() | grabPreparedFrontArchive | 205 |
| public static | grabPreparedFrontGalleries() | frontGalleries | 220 |
public static function setFrontService(?FrontService $service): void
lines 47–50 (4)
Set the FrontService instance
| Parameter | Type | Default | Description |
|---|---|---|---|
$service | ''?FrontService'' | required | none |
Returns: void
public static function grabSimpleFrontPost($id)
lines 61–64 (4)
grabSimpleFrontPost
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabSimpleFrontTopic($id)
lines 75–78 (4)
grabSimpleFrontTopic
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabSimpleFrontArchive()
lines 88–91 (4)
grabSimpleFrontArchive
Takes no parameters.
Returns: (none declared) — array
public static function grabSimpleFrontPage($id)
lines 102–105 (4)
grabSimpleFrontPage
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — array|null
public static function simpleSearchingTag($tag)
lines 118–125 (8)
grabFrontTag
implementing a simple MySQL full-text searching
| Parameter | Type | Default | Description |
|---|---|---|---|
$tag | (untyped) | required | none |
Returns: (none declared) — array
public static function grabTagLists()
lines 135–138 (4)
grabTagLists()
Takes no parameters.
Returns: (none declared) — array
public static function grabPreparedFrontPostById($id)
lines 149–152 (4)
grabPreparedFrontPostById
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabPreparedFrontPageBySlug($slug)
lines 163–166 (4)
frontPageBySlug
| Parameter | Type | Default | Description |
|---|---|---|---|
$slug | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabPreparedFrontTopicBySlug($slug)
lines 177–180 (4)
grabPreparedFrontTopicBySlug
| Parameter | Type | Default | Description |
|---|---|---|---|
$slug | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabPreparedFrontTopicByID($id)
lines 191–194 (4)
grabPreparedFrontTopicByID
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabPreparedFrontArchive($values)
lines 205–208 (4)
grabPreparedFrontArchive
| Parameter | Type | Default | Description |
|---|---|---|---|
$values | (untyped) | required | none |
Returns: (none declared) — array|null
public static function grabPreparedFrontGalleries($start, $limit)
lines 220–223 (4)
frontGalleries
| Parameter | Type | Default | Description |
|---|---|---|---|
$start | (untyped) | required | none |
$limit | (untyped) | required | none |
Returns: (none declared) — array|null
| Alias | Fully-qualified name |
|---|---|
FrontService | ''Scriptlog\Service\FrontService'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.