$plugins
$plugins :
Classe de base Gérant les plugins
loadModule( $pluginRelativePath, $moduleSubDirName, $moduleClassName, boolean $autoRendering = true)
Loads a plugin' module in memory and make it available for access from other classes. Make sure parameter autoRendering is set to true if the module should be added to the render list in frontend or backend.
$pluginRelativePath | string Plugin folder path relative to website document root. ex : $GLOBALS['config']['website_pluginsdir']."/my_videos" |
|
$moduleSubDirName | string Subfolder where the module php file will be found. ex : modules |
|
$moduleClassName | string module class name. ex : editVideos.php |
|
boolean | $autoRendering | States if the plugin should be added to render list or not. Some plugins do not need to be shown in frontend or backend and have autorendering set to false. |
addBackendMenu(string $menuKey, integer $menuPriority = MEDIUM_PRIORITY, string $type = "menu")
Adds a menu to the backend navigation
string | $menuKey | must match a key from backend_l10n so the menu label can be written translated. You can extend it and add your own values this way :
|
integer | $menuPriority | indicates if this entry should be shown with higher or lower priority (before or after other items). Look at the priority constants at the top of pluginManager.php for values. |
string | $type | either "menu" or "button" |
addEntryToBackendMenu( $entryHTML, $menuKey, integer $itemPriority = MEDIUM_PRIORITY)
$entryHTML | ||
$menuKey | ||
integer | $itemPriority | indicates if this entry should be shown with higher or lower priority (before or after other items). Look at the priority constants at the top of pluginManager.php for values. |
addRecord(string $pluginKey, string $recordClassName, string $recordClassRelativePath, boolean $enableSQLTableCreation = true)
Registers a dbRecord class with the plugin manager.
Use it in the index.php file of you plugin to inform MindFlow of the new dbRecord classes supplied by your plugin. This will enable your dbRecord class to appear in the install tool.
string | $pluginKey | Plugin key (should match plugin directory name) of the plugin featuring this record |
string | $recordClassName | Class name of the record |
string | $recordClassRelativePath | Path below the web hosting root where the class can be found |
boolean | $enableSQLTableCreation | Sometimes, when a record subclasses another (for example when you have a record class for frontend view and another for backend view), you may not want the installer to attempt to create the SQL table twice. Set this parameter to false for that purpose. |
createTable(string $pluginKey, string $recordClassName, array $html)
Used by the install tool to create a single table required by dbRecord classes in use.
string | $pluginKey | Plugin key (should match plugin directory name) of the plugin featuring this record |
string | $recordClassName | Class name of the record |
array | $html | Array where the HTML code giving feedback from the function will be put |
importTable(string $pluginKey, string $recordClassName, array $html)
Used by the install tool to import the initialization data associated to a dbRecord table.
string | $pluginKey | Plugin key (should match plugin directory name) of the plugin featuring this record |
string | $recordClassName | Class name of the record |
array | $html | Array where the HTML code giving feedback from the function will be put |
deleteTable(string $pluginKey, string $recordClassName, array $html)
Used by the install tool to delete a single dbRecord table.
string | $pluginKey | Plugin key (should match plugin directory name) of the plugin featuring this record |
string | $recordClassName | Class name of the record |
array | $html | Array where the HTML code giving feedback from the function will be put |