| Next revision | Previous revision |
| scriptlog:lib:core:fronthelper [2026/09/26 09:09] – admin admin | scriptlog:lib:core:fronthelper [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Core Class | | | ''@category'' | Core 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 | |
| | ''@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). | |
| |
| **\\ 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). |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (1) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private static'' | ''static ?FrontService'' | ''$frontService'' | ''null'' | 40 | |
| |
| ======= Methods (13) ======= | ======= Methods (13) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public static | ''setFrontService()'' | Set the FrontService instance | 47 | | | public static | ''setFrontService()'' | Set the FrontService instance | 47 | |
| | public static | ''grabSimpleFrontPost()'' | grabSimpleFrontPost | 61 | | | public static | ''grabSimpleFrontPost()'' | grabSimpleFrontPost | 61 | |
| | public static | ''grabSimpleFrontTopic()'' | grabSimpleFrontTopic | 75 | | | public static | ''grabSimpleFrontTopic()'' | grabSimpleFrontTopic | 75 | |
| | public static | ''grabSimpleFrontArchive()'' | grabSimpleFrontArchive | 88 | | | public static | ''grabSimpleFrontArchive()'' | grabSimpleFrontArchive | 88 | |
| | public static | ''grabSimpleFrontPage()'' | grabSimpleFrontPage | 102 | | | public static | ''grabSimpleFrontPage()'' | grabSimpleFrontPage | 102 | |
| | public static | ''simpleSearchingTag()'' | grabFrontTag | 118 | | | public static | ''simpleSearchingTag()'' | grabFrontTag | 118 | |
| | public static | ''grabTagLists()'' | grabTagLists() | 135 | | | public static | ''grabTagLists()'' | grabTagLists() | 135 | |
| | public static | ''grabPreparedFrontPostById()'' | grabPreparedFrontPostById | 149 | | | public static | ''grabPreparedFrontPostById()'' | grabPreparedFrontPostById | 149 | |
| | public static | ''grabPreparedFrontPageBySlug()'' | frontPageBySlug | 163 | | | public static | ''grabPreparedFrontPageBySlug()'' | frontPageBySlug | 163 | |
| | public static | ''grabPreparedFrontTopicBySlug()'' | grabPreparedFrontTopicBySlug | 177 | | | public static | ''grabPreparedFrontTopicBySlug()'' | grabPreparedFrontTopicBySlug | 177 | |
| | public static | ''grabPreparedFrontTopicByID()'' | grabPreparedFrontTopicByID | 191 | | | public static | ''grabPreparedFrontTopicByID()'' | grabPreparedFrontTopicByID | 191 | |
| | public static | ''grabPreparedFrontArchive()'' | grabPreparedFrontArchive | 205 | | | public static | ''grabPreparedFrontArchive()'' | grabPreparedFrontArchive | 205 | |
| | public static | ''grabPreparedFrontGalleries()'' | frontGalleries | 220 | | | public static | ''grabPreparedFrontGalleries()'' | frontGalleries | 220 | |
| |
| |
| Set the FrontService instance | Set the FrontService instance |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$service'' | [[scriptlog:lib:service:frontservice|''?FrontService'']] | //required// | //none// | | | ''$service'' | [[scriptlog:lib:service:frontservice|''?FrontService'']] | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| grabSimpleFrontPost | grabSimpleFrontPost |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| grabSimpleFrontTopic | grabSimpleFrontTopic |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| grabSimpleFrontPage | grabSimpleFrontPage |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| implementing a simple MySQL full-text searching | implementing a simple MySQL full-text searching |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$tag'' | ''(untyped)'' | //required// | //none// | | | ''$tag'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| grabPreparedFrontPostById | grabPreparedFrontPostById |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| frontPageBySlug | frontPageBySlug |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$slug'' | ''(untyped)'' | //required// | //none// | | | ''$slug'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| grabPreparedFrontTopicBySlug | grabPreparedFrontTopicBySlug |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$slug'' | ''(untyped)'' | //required// | //none// | | | ''$slug'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| grabPreparedFrontTopicByID | grabPreparedFrontTopicByID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| grabPreparedFrontArchive | grabPreparedFrontArchive |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$values'' | ''(untyped)'' | //required// | //none// | | | ''$values'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| frontGalleries | frontGalleries |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$start'' | ''(untyped)'' | //required// | //none// | | | ''$start'' | ''(untyped)'' | //required// | //none// | |
| | ''$limit'' | ''(untyped)'' | //required// | //none// | | | ''$limit'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''FrontService'' | [[scriptlog:lib:service:frontservice|''Scriptlog\Service\FrontService'']] | | | ''FrontService'' | [[scriptlog:lib:service:frontservice|''Scriptlog\Service\FrontService'']] | |
| |
| |