| Next revision | Previous revision |
| scriptlog:lib:dao:plugindao [2026/09/26 09:09] – admin admin | scriptlog:lib:dao:plugindao [2026/09/26 09:34] (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) ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (2) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$accessLevel'' | | 23 | |
| | | ''private'' | ''(untyped)'' | ''$selected'' | | 25 | |
| |
| ======= Methods (16) ======= | ======= Methods (16) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 27 | | | public | ''__construct()'' | (undocumented) | 27 | |
| | public | ''getPlugins()'' | Get list of plugins | 41 | | | public | ''getPlugins()'' | Get list of plugins | 41 | |
| | public | ''getPlugin()'' | Get plugin | 64 | | | public | ''getPlugin()'' | Get plugin | 64 | |
| | public | ''insertPlugin()'' | Insert new plugin | 85 | | | public | ''insertPlugin()'' | Insert new plugin | 85 | |
| | public | ''updatePlugin()'' | Update plugin | 122 | | | public | ''updatePlugin()'' | Update plugin | 122 | |
| | public | ''activatePlugin()'' | activatePlugin | 144 | | | public | ''activatePlugin()'' | activatePlugin | 144 | |
| | public | ''deactivatePlugin()'' | deactivatePlugin | 157 | | | public | ''deactivatePlugin()'' | deactivatePlugin | 157 | |
| | public | ''deletePlugin()'' | Delete plugin | 169 | | | public | ''deletePlugin()'' | Delete plugin | 169 | |
| | public | ''checkPluginId()'' | Check plugin Id | 183 | | | public | ''checkPluginId()'' | Check plugin Id | 183 | |
| | public | ''isPluginActived()'' | isPluginActived | 206 | | | public | ''isPluginActived()'' | isPluginActived | 206 | |
| | public | ''getPluginDirectory()'' | getPluginDirectory | 230 | | | public | ''getPluginDirectory()'' | getPluginDirectory | 230 | |
| | public | ''setMenuPlugin()'' | Set menu plugin | 245 | | | public | ''setMenuPlugin()'' | Set menu plugin | 245 | |
| | public | ''dropDownPluginLevel()'' | Drop down plugin level | 289 | | | public | ''dropDownPluginLevel()'' | Drop down plugin level | 289 | |
| | public | ''totalPluginRecords()'' | Total plugins records | 309 | | | public | ''totalPluginRecords()'' | Total plugins records | 309 | |
| | public | ''findPluginsEnabled()'' | SetPlugins | 322 | | | public | ''findPluginsEnabled()'' | SetPlugins | 322 | |
| | public | ''pluginExists()'' | pluginExists | 345 | | | public | ''pluginExists()'' | pluginExists | 345 | |
| |
| |
| Get list of plugins | Get list of plugins |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean|array|object | **Returns:** ''(none declared)'' — boolean|array|object |
| get single value of plugin | get single value of plugin |
| |
| ^ 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)'' — boolean|array|object | **Returns:** ''(none declared)'' — boolean|array|object |
| Insert new plugin | Insert new plugin |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| Update plugin | Update plugin |
| |
| ^ 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)'' |
| Enable plugin | Enable plugin |
| |
| ^ 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)'' |
| Disable plugin | Disable plugin |
| |
| ^ 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)'' |
| Delete plugin | Delete plugin |
| |
| ^ 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)'' |
| Check plugin Id | Check plugin 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)'' — numeric | **Returns:** ''(none declared)'' — numeric |
| checking whether plugin enabled or disabled | checking whether plugin enabled or disabled |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | | | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean | **Returns:** ''(none declared)'' — boolean |
| get plugin directory by name | get plugin directory by name |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | | | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string|bool | **Returns:** ''(none declared)'' — string|bool |
| Set menu plugin | Set menu plugin |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$module'' | ''(untyped)'' | //required// | //none// | | | ''$module'' | ''(untyped)'' | //required// | //none// | |
| | ''$user_level'' | ''(untyped)'' | //required// | //none// | | | ''$user_level'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Drop down plugin level | Drop down plugin level |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | '''''' | //none// | | | ''$selected'' | ''(untyped)'' | '''''' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Total plugins records | Total plugins records |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$data'' | ''array'' | ''[]'' | //none// | | | ''$data'' | ''array'' | ''[]'' | //none// | |
| |
| **Returns:** ''?int'' — numeric | **Returns:** ''?int'' — numeric |
| SetPlugins | SetPlugins |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$plugin_level'' | ''(untyped)'' | //required// | //none// | | | ''$plugin_level'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean|array|object | **Returns:** ''(none declared)'' — boolean|array|object |
| checking whether plugin names exists | checking whether plugin names exists |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | | | ''$plugin_name'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — boolean | **Returns:** ''(none declared)'' — boolean |
| ======= 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'']] | |
| |
| |