Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:fronthelper

This is an old revision of the document!


FrontHelper

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.

Docblock Metadata

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).

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (0)

None declared.

Methods (13)

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

setFrontService()

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

grabSimpleFrontPost()

public static function grabSimpleFrontPost($id)

lines 61–64 (4)

grabSimpleFrontPost

Parameter Type Default Description
$id (untyped) required none

Returns: (none declared) — array|null

grabSimpleFrontTopic()

public static function grabSimpleFrontTopic($id)

lines 75–78 (4)

grabSimpleFrontTopic

Parameter Type Default Description
$id (untyped) required none

Returns: (none declared) — array|null

grabSimpleFrontArchive()

public static function grabSimpleFrontArchive()

lines 88–91 (4)

grabSimpleFrontArchive

Takes no parameters.

Returns: (none declared) — array

grabSimpleFrontPage()

public static function grabSimpleFrontPage($id)

lines 102–105 (4)

grabSimpleFrontPage

Parameter Type Default Description
$id (untyped) required none

Returns: (none declared) — array|null

simpleSearchingTag()

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

grabTagLists()

public static function grabTagLists()

lines 135–138 (4)

grabTagLists()

Takes no parameters.

Returns: (none declared) — array

grabPreparedFrontPostById()

public static function grabPreparedFrontPostById($id)

lines 149–152 (4)

grabPreparedFrontPostById

Parameter Type Default Description
$id (untyped) required none

Returns: (none declared) — array|null

grabPreparedFrontPageBySlug()

public static function grabPreparedFrontPageBySlug($slug)

lines 163–166 (4)

frontPageBySlug

Parameter Type Default Description
$slug (untyped) required none

Returns: (none declared) — array|null

grabPreparedFrontTopicBySlug()

public static function grabPreparedFrontTopicBySlug($slug)

lines 177–180 (4)

grabPreparedFrontTopicBySlug

Parameter Type Default Description
$slug (untyped) required none

Returns: (none declared) — array|null

grabPreparedFrontTopicByID()

public static function grabPreparedFrontTopicByID($id)

lines 191–194 (4)

grabPreparedFrontTopicByID

Parameter Type Default Description
$id (untyped) required none

Returns: (none declared) — array|null

grabPreparedFrontArchive()

public static function grabPreparedFrontArchive($values)

lines 205–208 (4)

grabPreparedFrontArchive

Parameter Type Default Description
$values (untyped) required none

Returns: (none declared) — array|null

grabPreparedFrontGalleries()

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

Imports

Alias Fully-qualified name
FrontService ''Scriptlog\Service\FrontService''

This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/core/fronthelper.1790414217.txt.gz · Last modified: by admin