|
| addConfigBoxLine ($value='', $type='default') |
|
| addInfoBox ($title, $type='default', $extra='') |
|
| addInfoBoxLine ($text='', $type='default', $color='inherit') |
|
| addItemButton ($title, $link, $icon='add', $extra='') |
|
| renderButton ($position=null, $delimiter=" ") |
|
| displayButton ($position=null, $delimiter=" ") |
|
| renderInfoBox () |
|
| displayInfoBox () |
|
| renderIndex () |
|
| displayIndex () |
|
| displayNavigation ($menu='') |
|
| renderAbout ($logo_xoops=true) |
|
| displayAbout ($logo_xoops=true) |
|
| addConfigError ($value='') |
|
| addConfigAccept ($value='') |
|
| addConfigWarning ($value='') |
|
| addConfigModuleVersion ($moddir, $minversion) |
|
◆ __construct()
◆ addConfigAccept()
addConfigAccept |
( |
|
$value = '' | ) |
|
Add accept (OK) message to config box
- Paramètres
-
string | $value | the OK message |
- Renvoie
- bool
◆ addConfigBoxLine()
addConfigBoxLine |
( |
|
$value = '' , |
|
|
|
$type = 'default' |
|
) |
| |
Add config line
- Paramètres
-
string | $value | message to include in config box |
string | $type | type of line to add minimal set of acceptable types and value expectation 'default' - value is message displayed directly (also used for unknown types) 'folder' - value is directory name, will display accept if exists, error if not 'chmod' - value is array(directory, permission) accept if exists with permission, else error 'module' - value is string module name, or array(module name, errortype) If module is active, an accept line displays, otherwise, a warning (if value is array(module, "warning") or an error displays. |
- Renvoie
- bool
◆ addConfigError()
addConfigError |
( |
|
$value = '' | ) |
|
Add error to config box
- Paramètres
-
string | $value | the error message |
- Renvoie
- bool
◆ addConfigModuleVersion()
addConfigModuleVersion |
( |
|
$moddir, |
|
|
|
$minversion |
|
) |
| |
Check for installed module and version and do addConfigBoxLine()
- Paramètres
-
string | $moddir | - module directory name |
integer | $minversion | - minimum acceptable module version (100 = V1.00) |
- Renvoie
- bool true if requested version of the module is available
◆ addConfigWarning()
addConfigWarning |
( |
|
$value = '' | ) |
|
Add warning to config box
- Paramètres
-
string | $value | the warning message |
- Renvoie
- bool
◆ addInfoBox()
addInfoBox |
( |
|
$title, |
|
|
|
$type = 'default' , |
|
|
|
$extra = '' |
|
) |
| |
Add Info box
- Paramètres
-
string | $title | info box title |
string | $type | for compatibility only |
string | $extra | for compatibility only |
- Renvoie
- bool
◆ addInfoBoxLine()
addInfoBoxLine |
( |
|
$text = '' , |
|
|
|
$type = 'default' , |
|
|
|
$color = 'inherit' |
|
) |
| |
Add line to the info box
- Paramètres
-
string | $text | text to add to info box |
string | $type | type of infobox line |
string | $color | color for infobox line |
- Renvoie
- bool
◆ addItemButton()
addItemButton |
( |
|
$title, |
|
|
|
$link, |
|
|
|
$icon = 'add' , |
|
|
|
$extra = '' |
|
) |
| |
Add Item button
- Paramètres
-
string | $title | title of button |
string | $link | link for button |
string | $icon | icon for button |
string | $extra | extra |
- Renvoie
- bool
◆ displayAbout()
displayAbout |
( |
|
$logo_xoops = true | ) |
|
Display about page
- Paramètres
-
bool | $logo_xoops | display XOOPS logo |
- Renvoie
- void
◆ displayButton()
displayButton |
( |
|
$position = null , |
|
|
|
$delimiter = " " |
|
) |
| |
Display all item buttons
- Paramètres
-
string | $position | button position (left, right) |
string | $delimiter | delimiter between buttons |
- Renvoie
- void
◆ displayIndex()
Display index page for admin
- Renvoie
- void
◆ displayInfoBox()
Display InfoBox
- Renvoie
- void
◆ displayNavigation()
displayNavigation |
( |
|
$menu = '' | ) |
|
Display the navigation menu
- Paramètres
-
string | $menu | menu key (script name, i.e. index.php) |
- Renvoie
- void
◆ getInstance()
Retrieve a module admin instance
If we are on a next generation system this will be the a native Xoops\Module\Admin instance. Older systems with the Frameworks based admin class will get an instance of this class which provides compatible methods built from the old Frameworks version.
- Renvoie
- object a ModuleAdmin or Xoops\Module\Admin instance.
◆ iconUrl()
static iconUrl |
( |
|
$name = '' , |
|
|
|
$size = '32' |
|
) |
| |
|
static |
Get an appropriate URL for system provided icons.
Things which were in Frameworks in 2.5 are in media in later versions, making it harder to use and rely on the standard icons.
not part of next generation Xoops\Module\Admin
- Paramètres
-
string | $name | the image name to provide URL for, or blank to just get the URL path. |
string | $size | the icon size (directory). Valid values are 16, 32 or /. A '/' slash will simply set the path to the icon directory and append $image. |
- Renvoie
- string path to icons
◆ isXng()
Are we in a next generation environment?
not part of next generation Xoops\Module\Admin
- Renvoie
- bool true if we are in a post XOOPS 2.5.x environment
◆ menuIconPath()
static menuIconPath |
( |
|
$image | ) |
|
|
static |
Get an appropriate imagePath for menu.php use.
just to help with other admin things than ModuleAdmin
not part of next generation Xoops\Module\Admin
- Paramètres
-
string | $image | icon name to prepend with path |
- Renvoie
- string the icon path
◆ renderAbout()
renderAbout |
( |
|
$logo_xoops = true | ) |
|
Render about page
- Paramètres
-
bool | $logo_xoops | display XOOPS logo |
- Renvoie
- bool|mixed|string
◆ renderButton()
renderButton |
( |
|
$position = null , |
|
|
|
$delimiter = " " |
|
) |
| |
Render all items buttons
- Paramètres
-
string | $position | button position (left, right) |
string | $delimiter | delimiter between buttons |
- Renvoie
- string
◆ renderIndex()
Render index page for admin
- Renvoie
- string HTML rendered info box
◆ renderInfoBox()
Render InfoBox
- Renvoie
- string HTML rendered info box
◆ setPaypal()
static setPaypal |
( |
|
$paypal = '' | ) |
|
|
static |
set paypal for 2.5.x renderAbout
not part of next generation Xoops\Module\Admin
- Paramètres
-
string | $paypal | PayPal identifier for donate button |
- Renvoie
- void
◆ $lastInfoBoxTitle
◆ $ModuleAdmin
◆ $paypal
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/Module/Admin.php