XOOPS
2.6.0
|
Public Member Functions | |
addConfigBoxLine ($value= '', $type= 'default') | |
addInfoBox ($title, $type= 'default', $extra= '') | |
addInfoBoxLine ($text= '', $type= 'default', $color= 'inherit') | |
addItemButton ($title, $link, $icon= 'add', $extra= '') | |
displayAbout ($logo_xoops=true) | |
displayButton ($position=null, $delimiter=" ") | |
displayIndex () | |
displayInfoBox () | |
displayNavigation ($menu= '') | |
renderAbout ($logo_xoops=true) | |
renderButton ($position=null, $delimiter=" ") | |
renderIndex () | |
renderInfoBox () | |
Static Public Member Functions | |
static | addConfigAccept ($value= '') |
static | addConfigError ($value= '') |
static | checkModuleVersion ($moddir, $minversion) |
static | getInstance () |
static | iconUrl ($name= '', $size= '32') |
static | is26 () |
static | menuIconPath ($image) |
static | setPaypal ($paypal= '') |
Private Member Functions | |
__construct () | |
Private Attributes | |
$lastInfoBoxTitle = null | |
$version26 = null | |
Static Private Attributes | |
static | $ModuleAdmin = null |
static | $paypal = '' |
|
static |
Add accept (OK) message to config box
string | $value | the OK message |
Definition at line 342 of file Admin.php.
References $path, $type, and XoopsBaseConfig\get().
Xmf\Module\Admin::addConfigBoxLine | ( | $value = '' , |
|
$type = 'default' |
|||
) |
|
static |
Add error to config box
string | $value | the error message |
Definition at line 317 of file Admin.php.
References $path, $type, and XoopsBaseConfig\get().
Xmf\Module\Admin::addInfoBox | ( | $title, | |
$type = 'default' , |
|||
$extra = '' |
|||
) |
Xmf\Module\Admin::addInfoBoxLine | ( | $text = '' , |
|
$type = 'default' , |
|||
$color = 'inherit' |
|||
) |
Xmf\Module\Admin::addItemButton | ( | $title, | |
$link, | |||
$icon = 'add' , |
|||
$extra = '' |
|||
) |
|
static |
Check for installed module and version and do addConfigBoxLine()
string | $moddir | - module directory name |
integer | $minversion | - minimum acceptable module version (100 = V1.00) |
Definition at line 408 of file Admin.php.
References $helper, _AM_XMF_DEMOMVC_MODULE_NOTFOUND, _AM_XMF_DEMOMVC_MODULE_VERSION, Xmf\Module\Helper\getHelper(), and Xmf\Language\load().
Xmf\Module\Admin::displayAbout | ( | $logo_xoops = true | ) |
Display about page
bool | $logo_xoops | display XOOPS logo |
Definition at line 303 of file Admin.php.
References Xmf\Module\Admin\renderAbout().
Xmf\Module\Admin::displayButton | ( | $position = null , |
|
$delimiter = " " |
|||
) |
Display all item buttons
string | $position | button position (left, right) |
string | $delimiter | delimiter between buttons |
Definition at line 215 of file Admin.php.
References Xmf\Module\Admin\renderButton().
Xmf\Module\Admin::displayIndex | ( | ) |
Display index page for admin
Definition at line 255 of file Admin.php.
References Xmf\Module\Admin\renderIndex().
Xmf\Module\Admin::displayInfoBox | ( | ) |
Display InfoBox
Definition at line 235 of file Admin.php.
References Xmf\Module\Admin\renderInfoBox().
Xmf\Module\Admin::displayNavigation | ( | $menu = '' | ) |
|
static |
Retrieve a module admin instance
If we are on 2.6 this will be the a XoopsModuleAdmin 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.
Always use this to get the ModuleAdmin instance if you use anything (even the static methods) of this class.
Definition at line 66 of file Admin.php.
References XoopsBaseConfig\get(), and Xmf\Loader\loadFile().
|
static |
Get an appropriate URL for system provided icons.
Things which were in Frameworks in 2.5 are in media in 2.6, making it harder to use and rely on the standard icons.
not part of 2.6, just a transition assist
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. |
Definition at line 376 of file Admin.php.
References $name, $path, and XoopsBaseConfig\get().
|
static |
|
static |
Xmf\Module\Admin::renderAbout | ( | $logo_xoops = true | ) |
Render about page
bool | $logo_xoops | display XOOPS logo |
Definition at line 279 of file Admin.php.
Referenced by Xmf\Module\Admin\displayAbout().
Xmf\Module\Admin::renderButton | ( | $position = null , |
|
$delimiter = " " |
|||
) |
Render all items buttons
string | $position | button position (left, right) |
string | $delimiter | delimiter between buttons |
Definition at line 198 of file Admin.php.
Referenced by Xmf\Module\Admin\displayButton().
Xmf\Module\Admin::renderIndex | ( | ) |
Render index page for admin
Definition at line 245 of file Admin.php.
Referenced by Xmf\Module\Admin\displayIndex().
Xmf\Module\Admin::renderInfoBox | ( | ) |
Render InfoBox
Definition at line 225 of file Admin.php.
Referenced by Xmf\Module\Admin\displayInfoBox().
|
static |
set paypal for 2.5 renderAbout
string | $paypal | PayPal identifier for donate button |
Definition at line 291 of file Admin.php.
References Xmf\Module\Admin\$paypal.
|
staticprivate |
Definition at line 41 of file Admin.php.
Referenced by Xmf\Module\Admin\setPaypal().