| |
| scriptlog:lib:dao:themedao [2026/09/26 09:09] – admin admin | scriptlog:lib:dao:themedao [2026/09/26 09:16] (current) – admin admin |
|---|
| ======= 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) ======= |
| ======= 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 | |
| |
| |
| 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 |
| 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 |
| 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)'' |
| 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)'' |
| 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)'' |
| 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 |
| 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 |
| 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)'' |
| 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)'' |
| 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 |
| 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 |
| 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)'' |
| 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)'' |
| 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 |
| 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 |
| 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)'' |
| 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 |
| 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)'' |
| 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 |
| 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 |
| ======= 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'']] | |
| |
| |