CMSimple_XH
|
Functions | |
XH_pluginVersion ($plugin) | |
Returns the readable version of a plugin. More... | |
XH_systemCheck (array $data) | |
Returns the result view of the system check. More... | |
XH_systemCheckLi ($class, $state, $text) | |
Returns a single <li> of the system check. More... | |
XH_absoluteUrlPath ($path) | |
Returns the normalized absolute URL path. More... | |
XH_isAccessProtected ($path) | |
Returns whether a resource is access protected. More... | |
XH_sysinfo () | |
Returns the system information view. More... | |
XH_settingsView () | |
Returns the general settings view. More... | |
XH_logFileView () | |
Returns the log file view. More... | |
XH_backupsView () | |
Returns the backup view. More... | |
XH_pluginsView () | |
Returns the plugins view. More... | |
pluginMenu ($add='', $link='', $target='', $text='', array $style=array()) | |
Creates the menu of a plugin (add row, add tab), constructed as a table. More... | |
XH_registerStandardPluginMenuItems ($showMain) | |
Registers the standard plugin menu items for the admin menu. More... | |
XH_registerPluginMenuItem ($plugin, $label=null, $url=null, $target=null) | |
Register a new plugin menu item, or returns the registered plugin menu items, if $label and $url are null. More... | |
XH_adminMenu (array $plugins=array()) | |
Returns the admin menu. More... | |
XH_adminMenuItem (array $item, $level=0) | |
Returns the LI element of an admin menu item. More... | |
print_plugin_admin ($main) | |
Returns the plugin menu. More... | |
plugin_admin_common () | |
Handles reading and writing of plugin files (e.g. More... | |
XH_contentEditor () | |
Returns the content editor and activates it. More... | |
XH_saveContents () | |
Saves the current contents (including the page data), if edit mode is active. More... | |
XH_saveEditorContents ($text) | |
Saves content.htm after submitting changes from the content editor. More... | |
XH_emptyContents () | |
Empties the contents. More... | |
XH_restore ($filename) | |
Restores a content backup. More... | |
XH_extraBackup ($suffix) | |
Creates an extra backup of the contents file. More... | |
XH_adminJSLocalization () | |
Returns SCRIPT element containing the localization for admin.min.js. More... | |
XH_wantsPluginAdministration ($pluginName) | |
Returns whether the administration of a certain plugin is requested. More... | |
Admin only functions.
plugin_admin_common | ( | ) |
Handles reading and writing of plugin files (e.g.
en.php, config.php, stylesheet.css).
pluginMenu | ( | $add = '' , |
|
$link = '' , |
|||
$target = '' , |
|||
$text = '' , |
|||
array | $style = array() |
||
) |
Creates the menu of a plugin (add row, add tab), constructed as a table.
This is an object implemented with a procedural interface.
string | $add | Add a ROW, a TAB or DATA (Userdefineable content). SHOW will return the menu. |
string | $link | The link, the TAB will lead to. |
string | $target | Target of the link (with(!) 'target='). |
string | $text | Description of the TAB. |
array | $style | Array with style-data for the containing table-cell |
print_plugin_admin | ( | $main | ) |
Returns the plugin menu.
string | $main | Whether the main setting menu item should be shown ('ON'/'OFF'). |
XH_absoluteUrlPath | ( | $path | ) |
Returns the normalized absolute URL path.
string | $path | A relative path. |
XH_adminJSLocalization | ( | ) |
Returns SCRIPT element containing the localization for admin.min.js.
XH_adminMenu | ( | array | $plugins = array() | ) |
Returns the admin menu.
array | $plugins | A list of plugins. |
XH_adminMenuItem | ( | array | $item, |
$level = 0 |
|||
) |
Returns the LI element of an admin menu item.
array | $item | The menu item. |
int | $level | The level of the menu item. |
XH_backupsView | ( | ) |
Returns the backup view.
XH_contentEditor | ( | ) |
Returns the content editor and activates it.
XH_emptyContents | ( | ) |
Empties the contents.
XH_extraBackup | ( | $suffix | ) |
Creates an extra backup of the contents file.
string | $suffix | A suffix for the filename. |
XH_isAccessProtected | ( | $path | ) |
Returns whether a resource is access protected.
string | $path | A normalized absolute URL path. |
XH_logFileView | ( | ) |
Returns the log file view.
XH_pluginsView | ( | ) |
Returns the plugins view.
XH_pluginVersion | ( | $plugin | ) |
Returns the readable version of a plugin.
string | $plugin | Name of a plugin. |
XH_registerPluginMenuItem | ( | $plugin, | |
$label = null , |
|||
$url = null , |
|||
$target = null |
|||
) |
Register a new plugin menu item, or returns the registered plugin menu items, if $label and $url are null.
string | $plugin | A plugin name. |
string | $label | A menu item label. |
string | $url | A URL to link to. |
string | $target | A target attribute value. |
XH_registerStandardPluginMenuItems | ( | $showMain | ) |
Registers the standard plugin menu items for the admin menu.
bool | $showMain | Whether to display the main settings item. |
XH_restore | ( | $filename | ) |
Restores a content backup.
The current content.htm is backed up before.
string | $filename | The filename. |
XH_saveContents | ( | ) |
Saves the current contents (including the page data), if edit mode is active.
XH_saveEditorContents | ( | $text | ) |
Saves content.htm after submitting changes from the content editor.
string | $text | The text to save. |
XH_settingsView | ( | ) |
Returns the general settings view.
XH_sysinfo | ( | ) |
Returns the system information view.
XH_systemCheck | ( | array | $data | ) |
Returns the result view of the system check.
array | $data | The data ;) |
XH_systemCheckLi | ( | $class, | |
$state, | |||
$text | |||
) |
Returns a single <li>
of the system check.
string | $class | A CSS class. |
string | $state | A state. |
string | $text | A message text. |
XH_wantsPluginAdministration | ( | $pluginName | ) |
Returns whether the administration of a certain plugin is requested.
string | $pluginName | A plugin name. |