Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:fronthelper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:fronthelper [2026/09/26 09:09] – admin adminscriptlog:lib:core:fronthelper [2026/09/26 09:34] (current) – admin admin
Line 14: Line 14:
 ======= 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).
Line 32: Line 32:
 //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 |
  
  
Line 64: Line 65:
 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''
Line 80: Line 81:
 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
Line 96: Line 97:
 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
Line 127: Line 128:
 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
Line 145: Line 146:
 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
Line 176: Line 177:
 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
Line 192: Line 193:
 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
Line 208: Line 209:
 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
Line 224: Line 225:
 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
Line 240: Line 241:
 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
Line 256: Line 257:
 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
Line 264: Line 265:
 ======= 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'']] |
  
  
scriptlog/lib/core/fronthelper.1790413762.txt.gz · Last modified: by admin