Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:dao:themedao

Differences

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

Link to this comparison view

scriptlog:lib:dao:themedao [2026/09/26 09:09] – admin adminscriptlog:lib:dao:themedao [2026/09/26 09:16] (current) – admin admin
Line 12: Line 12:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Dao Class | +| ''@category'' | Dao 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 |
  
 ======= Inheritance ======= ======= Inheritance =======
  
-  ^ Relation ^ Type ^ Meaning ^ +^ Relation ^ Type ^ Meaning ^ 
-  | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface |+| extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface |
  
 ======= Constants (0) ======= ======= Constants (0) =======
Line 34: Line 34:
 ======= Methods (22) ======= ======= Methods (22) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 24 | +| public | ''__construct()'' | (undocumented) | 24 | 
-  | public | ''findThemes()'' | findThemes function | 39 | +| public | ''findThemes()'' | findThemes function | 39 | 
-  | public | ''findTheme()'' | findTheme function | 63 | +| public | ''findTheme()'' | findTheme function | 63 | 
-  | public | ''insertTheme()'' | addTheme function | 88 | +| public | ''insertTheme()'' | addTheme function | 88 | 
-  | public | ''updateTheme()'' | updateTheme function | 108 | +| public | ''updateTheme()'' | updateTheme function | 108 | 
-  | public | ''deleteTheme()'' | deleteTheme function | 129 | +| public | ''deleteTheme()'' | deleteTheme function | 129 | 
-  | public | ''checkThemeId()'' | Check theme function | 145 | +| public | ''checkThemeId()'' | Check theme function | 145 | 
-  | public | ''isThemeActived()'' | Is theme active or not | 161 | +| public | ''isThemeActived()'' | Is theme active or not | 161 | 
-  | public | ''activateTheme()'' | Activate theme function | 183 | +| public | ''activateTheme()'' | Activate theme function | 183 | 
-  | public | ''deactivateTheme()'' | Deactivate theme function | 203 | +| public | ''deactivateTheme()'' | Deactivate theme function | 203 | 
-  | public | ''findThemeByDirectory()'' | Find theme by directory name | 230 | +| public | ''findThemeByDirectory()'' | Find theme by directory name | 230 | 
-  | public | ''getThemeType()'' | Find theme type (free or premium) for a given theme ID. | 252 | +| public | ''getThemeType()'' | Find theme type (free or premium) for a given theme ID. | 252 | 
-  | public | ''saveLicense()'' | Save license information for a theme. | 266 | +| public | ''saveLicense()'' | Save license information for a theme. | 266 | 
-  | public | ''setLicenseStatus()'' | Update just the license status for a theme. | 288 | +| public | ''setLicenseStatus()'' | Update just the license status for a theme. | 288 | 
-  | public | ''findActiveThemes()'' | Find active themes | 302 | +| public | ''findActiveThemes()'' | Find active themes | 302 | 
-  | public | ''totalThemeRecords()'' | Total theme record function | 321 | +| public | ''totalThemeRecords()'' | Total theme record function | 321 | 
-  | public | ''themeExists()'' | Theme exists function | 337 | +| public | ''themeExists()'' | Theme exists function | 337 | 
-  | public | ''insertThemeLicense()'' | Insert a theme license activation record. | 351 | +| public | ''insertThemeLicense()'' | Insert a theme license activation record. | 351 | 
-  | public | ''findThemeLicense()'' | Find a theme license activation by key and domain. | 370 | +| public | ''findThemeLicense()'' | Find a theme license activation by key and domain. | 370 | 
-  | public | ''updateThemeLicense()'' | Update a theme license activation record. | 387 | +| public | ''updateThemeLicense()'' | Update a theme license activation record. | 387 | 
-  | public | ''findThemeLicensesByThemeId()'' | Get all license activations for a given theme. | 398 | +| public | ''findThemeLicensesByThemeId()'' | Get all license activations for a given theme. | 398 | 
-  | public | ''loadTheme()'' | Total theme record function | 413 |+| public | ''loadTheme()'' | Total theme record function | 413 |
  
  
Line 83: Line 83:
 ordered by ID (default) ordered by ID (default)
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$orderBy'' | ''(untyped)'' | ''"ID"'' | //none// |+|  ''$orderBy'' |  ''(untyped)'' |  ''"ID"'' |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 102: Line 102:
 based on ID based on ID
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 121: Line 121:
 Insert new theme record into theme table Insert new theme record into theme table
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// |+|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 139: Line 139:
 update an existing theme record update an existing theme record
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// | +|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// | +|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$ID'' | ''(untyped)'' | //required// | //none// |+|  ''$ID'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 159: Line 159:
 Remove theme record from theme table Remove theme record from theme table
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 178: Line 178:
 checking ID theme checking ID theme
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — numeric **Returns:** ''(none declared)'' — numeric
Line 195: Line 195:
 Is theme active or not Is theme active or not
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$theme_title'' | ''(untyped)'' | //required// | //none// |+|  ''$theme_title'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — boolen|string **Returns:** ''(none declared)'' — boolen|string
Line 211: Line 211:
 Activate theme function Activate theme function
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 228: Line 228:
 Deactivate theme function Deactivate theme function
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$sanitize'' | ''(untyped)'' | //required// | //none// |+|  ''$sanitize'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 245: Line 245:
 Find theme by directory name Find theme by directory name
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$directory'' | ''(untyped)'' | //required// | //none// |+|  ''$directory'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — array|null **Returns:** ''(none declared)'' — array|null
Line 261: Line 261:
 Find theme type (free or premium) for a given theme ID. Find theme type (free or premium) for a given theme ID.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// |+|  ''$id'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — string|boolean **Returns:** ''(none declared)'' — string|boolean
Line 277: Line 277:
 Save license information for a theme. Save license information for a theme.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$license'' | ''array'' | //required// | //none// |+|  ''$license'' |  ''array'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 294: Line 294:
 Update just the license status for a theme. Update just the license status for a theme.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$status'' | ''(untyped)'' | //required// | //none// |+|  ''$status'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 326: Line 326:
 Total theme record function Total theme record function
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$data'' | ''array'' | ''array()'' | //none// |+|  ''$data'' |  ''array'' |  ''array()'' |  //none// |
  
 **Returns:** ''?int'' — numeric|integer|null **Returns:** ''?int'' — numeric|integer|null
Line 344: Line 344:
 is theme exists or not is theme exists or not
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$theme_title'' | ''(untyped)'' | //required// | //none// |+|  ''$theme_title'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — boolean **Returns:** ''(none declared)'' — boolean
Line 360: Line 360:
 Insert a theme license activation record. Insert a theme license activation record.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$bind'' | ''array'' | //required// | //none// |+|  ''$bind'' |  ''array'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 376: Line 376:
 Find a theme license activation by key and domain. Find a theme license activation by key and domain.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$licenseKey'' | ''(untyped)'' | //required// | //none// | +|  ''$licenseKey'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$domain'' | ''(untyped)'' | //required// | //none// |+|  ''$domain'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — array|false **Returns:** ''(none declared)'' — array|false
Line 393: Line 393:
 Update a theme license activation record. Update a theme license activation record.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$bind'' | ''array'' | //required// | //none// |+|  ''$bind'' |  ''array'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 410: Line 410:
 Get all license activations for a given theme. Get all license activations for a given theme.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$themeId'' | ''(untyped)'' | //required// | //none// |+|  ''$themeId'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''array'' — array **Returns:** ''array'' — array
Line 426: Line 426:
 Total theme record function Total theme record function
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$theme_status'' | ''(untyped)'' | //required// | //none// |+|  ''$theme_status'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 433: Line 433:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | +| ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | 
-  | ''Registry'' | [[scriptlog:lib:core:registry|''Scriptlog\Core\Registry'']] |+| ''Registry'' | [[scriptlog:lib:core:registry|''Scriptlog\Core\Registry'']] |
  
  
scriptlog/lib/dao/themedao.1790413760.txt.gz · Last modified: by admin