名前空間 | |
XH | |
関数 | |
XH_pluginVersion ($plugin) | |
XH_systemCheck (array $data) | |
XH_systemCheckLi ($class, $state, $text) | |
XH_absoluteUrlPath ($path) | |
XH_isAccessProtected ($path) | |
XH_sysinfo () | |
XH_settingsView () | |
XH_logFileView () | |
XH_backupsView () | |
XH_pluginsView () | |
pluginMenu ($add='', $link='', $target='', $text='', array $style=array()) | |
XH_registerStandardPluginMenuItems ($showMain) | |
XH_registerPluginMenuItem ($plugin, $label=null, $url=null, $target=null) | |
XH_adminMenu (array $plugins=array()) | |
XH_adminMenuItem (array $item, $level=0) | |
print_plugin_admin ($main) | |
plugin_admin_common () | |
XH_contentEditor () | |
XH_saveContents () | |
XH_saveEditorContents ($text) | |
XH_emptyContents () | |
XH_restore ($filename) | |
XH_extraBackup ($suffix) | |
XH_adminJSLocalization () | |
XH_wantsPluginAdministration ($pluginName) | |
Admin only functions.
adminfuncs.php に定義があります。
plugin_admin_common | ( | ) |
プラグインのファイルの読み書き (例 en.php, config.php, stylesheet.css).
Handles reading and writing of plugin files (e.g. en.php, config.php, stylesheet.css).
string The requested action. string The requested admin-action.
adminfuncs.php の 828 行目に定義があります。
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 |
XH The plugin menu builder.
adminfuncs.php の 535 行目に定義があります。
print_plugin_admin | ( | $main | ) |
Returns the plugin menu.
onでadmin=plugin_main のタブメニューが追加される。
$plugin_tx['プラグイン名']['menu_main']が設定されいれば使用され、無ければ ~mainと表示される・
プラグインのメニューのトップと同じ内容を表示する場合 例えば
if ($admin == '' || $admin == 'plugin_main') { $o .= ...
string | $main | Whether the main setting menu item should be shown ('ON'/'OFF'). |
XH The plugin menu builder.
adminfuncs.php の 812 行目に定義があります。
XH_absoluteUrlPath | ( | $path | ) |
正規化された絶対URLパスを返します
Returns the normalized absolute URL path.
string | $path | A relative path. |
string The script name.
adminfuncs.php の 157 行目に定義があります。
XH_adminJSLocalization | ( | ) |
Returns SCRIPT element containing the localization for admin.min.js.
array The localization of the core.
adminfuncs.php の 1142 行目に定義があります。
XH_adminMenu | ( | array | $plugins = array() | ) |
Returns the admin menu.
array | $plugins | A list of plugins. |
string The scipt name. bool Whether edit mode is active. int The index of the current page. array The URLs of the pages. array The configuration of the core. array The localization of the core. string The URL of the current page. array The localization of the plugins.
adminfuncs.php の 622 行目に定義があります。
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. |
adminfuncs.php の 765 行目に定義があります。
XH_backupsView | ( | ) |
Returns the backup view.
array The paths of system files and folders. array The script name. array The localization of the core. object The CSRF protection object.
adminfuncs.php の 427 行目に定義があります。
XH_contentEditor | ( | ) |
Returns the content editor and activates it.
string The script name. string The currently active page URL. int The index of the currently active page. array The URLs of the pages. array The content of the pages. string Error messages as HTML fragment consisting of LI Elements. array The configuration of the core. array The localization of the core. object The CSRF protection object.
adminfuncs.php の 875 行目に定義があります。
XH_emptyContents | ( | ) |
Empties the contents.
array The content of the pages. int The number of pages. array The paths of system files and folders. array An HTML fragment with error messages. object The pagedata router.
adminfuncs.php の 1049 行目に定義があります。
XH_extraBackup | ( | $suffix | ) |
Creates an extra backup of the contents file.
string | $suffix | A suffix for the filename. |
adminfuncs.php の 1118 行目に定義があります。
XH_isAccessProtected | ( | $path | ) |
Returns whether a resource is access protected.
string | $path | A normalized absolute URL path. |
adminfuncs.php の 190 行目に定義があります。
XH_logFileView | ( | ) |
Returns the log file view.
array The paths of system files and folders. array The localization of the core. string The title of the current page.
adminfuncs.php の 392 行目に定義があります。
XH_pluginsView | ( | ) |
Returns the plugins view.
array The script name. array The configuration of the core array The localization of the core.
adminfuncs.php の 496 行目に定義があります。
XH_pluginVersion | ( | $plugin | ) |
Returns the readable version of a plugin.
string | $plugin | Name of a plugin. |
array The paths of system files and folders.
adminfuncs.php の 29 行目に定義があります。
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. |
array $pluginMenu The array of already registered menu items.
adminfuncs.php の 585 行目に定義があります。
XH_registerStandardPluginMenuItems | ( | $showMain | ) |
管理メニューのための標準的なプラグインのメニュー項目(プルダウンメニュー)の表示/非表示。
XH_registerStandardPluginMenuItems(true)でデフォルトのプルダウンメニューが自動(強制)表示。
XH_registerStandardPluginMenuItems(off)で翻訳ファイルに['menu_****]があればそのメニュー表示される
Registers the standard plugin menu items for the admin menu.
bool | $showMain | Whether to display the main settings item. |
adminfuncs.php の 564 行目に定義があります。
XH_restore | ( | $filename | ) |
Restores a content backup. The current content.htm is backed up before.
string | $filename | The filename. |
array The paths of system files and folders. array An HTML fragment with error messages.
adminfuncs.php の 1083 行目に定義があります。
XH_saveContents | ( | ) |
Saves the current contents (including the page data), if edit mode is active.
array The content of the pages. array The paths of system files and folders. array The localization of the core. array Whether edit mode is active. object The page data router.
adminfuncs.php の 928 行目に定義があります。
XH_saveEditorContents | ( | $text | ) |
Saves content.htm after submitting changes from the content editor.
string | $text | The text to save. |
array The paths of system files and folders. array The configuation of the core. array The localization of the core. object The page data router. array The content of the pages. int The index of the active page. array The URLs of the pages. string The URL of the active page.
adminfuncs.php の 976 行目に定義があります。
XH_settingsView | ( | ) |
Returns the general settings view.
string The script name. array The localization of the core.
adminfuncs.php の 344 行目に定義があります。
XH_sysinfo | ( | ) |
Returns the system information view.
array The paths of system files and folders. array The configuration of the core. array The localization of the core. string The script name.
adminfuncs.php の 218 行目に定義があります。
XH_systemCheck | ( | array | $data | ) |
Returns the result view of the system check.
array | $data | The data ;) |
array The localization of the core.
adminfuncs.php の 64 行目に定義があります。
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. |
array The localization of the core.
adminfuncs.php の 136 行目に定義があります。
XH_wantsPluginAdministration | ( | $pluginName | ) |
Returns whether the administration of a certain plugin is requested.
string | $pluginName | A plugin name. |
adminfuncs.php の 1172 行目に定義があります。