Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:searchfinder

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:searchfinder [2026/09/26 09:09] – admin adminscriptlog:lib:core:searchfinder [2026/09/26 09:34] (current) – admin admin
Line 12: Line 12:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Core Class | +| ''@category'' | Core Class | 
-  | ''@author'' | Maoelana Noermoehammad | +| ''@author'' | Maoelana Noermoehammad | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 | +| ''@version'' | 1.0 | 
-  | ''@since'' | Since Release 1.0 |+| ''@since'' | Since Release 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 27: Line 27:
 //None.// //None.//
  
-======= Properties (0) =======+======= Properties (2) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private'' | ''(untyped)'' | ''$dbc'' |  | 26 | 
 +| ''protected'' | ''(untyped)'' | ''$error'' |  | 33 |
  
 ======= Methods (8) ======= ======= Methods (8) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | Initialize object properties and method | 39 | +| public | ''__construct()'' | Initialize object properties and method | 39 | 
-  | public | ''__destruct()'' | (undocumented) | 46 | +| public | ''__destruct()'' | (undocumented) | 46 | 
-  | public | ''getError()'' | Get error message | 56 | +| public | ''getError()'' | Get error message | 56 | 
-  | public | ''sanitizeKeyword()'' | Sanitize search keyword | 68 | +| public | ''sanitizeKeyword()'' | Sanitize search keyword | 68 | 
-  | private | ''buildBooleanQuery()'' | Build a FULLTEXT boolean mode query string from user keyword. | 101 | +| private | ''buildBooleanQuery()'' | Build a FULLTEXT boolean mode query string from user keyword. | 101 | 
-  | public | ''searchPost()'' | Search posts | 121 | +| public | ''searchPost()'' | Search posts | 121 | 
-  | public | ''searchPage()'' | Search pages | 182 | +| public | ''searchPage()'' | Search pages | 182 | 
-  | public | ''searchAll()'' | Search both posts and pages | 243 |+| public | ''searchAll()'' | Search both posts and pages | 243 |
  
  
Line 99: Line 101:
 Strips FULLTEXT boolean mode operators to prevent operator injection. Strips FULLTEXT boolean mode operators to prevent operator injection.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$keyword'' | ''(untyped)'' | //required// | //none// |+|  ''$keyword'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 117: Line 119:
 Prepends + to each word for AND semantics. Prepends + to each word for AND semantics.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$keyword'' | ''(untyped)'' | //required// | Already-sanitized keyword |+|  ''$keyword'' |  ''(untyped)'' |  //required// |  Already-sanitized keyword |
  
 **Returns:** ''(none declared)'' — string **Returns:** ''(none declared)'' — string
Line 133: Line 135:
 Search posts Search posts
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$keyword'' | ''(untyped)'' | //required// | //none// | +|  ''$keyword'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$page'' | ''(untyped)'' | ''1'' | //none// | +|  ''$page'' |  ''(untyped)'' |  ''1'' |  //none// | 
-  | ''$perPage'' | ''(untyped)'' | ''10'' | //none// |+|  ''$perPage'' |  ''(untyped)'' |  ''10'' |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 151: Line 153:
 Search pages Search pages
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$keyword'' | ''(untyped)'' | //required// | //none// | +|  ''$keyword'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$page'' | ''(untyped)'' | ''1'' | //none// | +|  ''$page'' |  ''(untyped)'' |  ''1'' |  //none// | 
-  | ''$perPage'' | ''(untyped)'' | ''10'' | //none// |+|  ''$perPage'' |  ''(untyped)'' |  ''10'' |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
Line 169: Line 171:
 Search both posts and pages Search both posts and pages
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$keyword'' | ''(untyped)'' | //required// | //none// | +|  ''$keyword'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$page'' | ''(untyped)'' | ''1'' | //none// | +|  ''$page'' |  ''(untyped)'' |  ''1'' |  //none// | 
-  | ''$perPage'' | ''(untyped)'' | ''10'' | //none// |+|  ''$perPage'' |  ''(untyped)'' |  ''10'' |  //none// |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
scriptlog/lib/core/searchfinder.1790413762.txt.gz · Last modified: by admin