48 $this->version26 = self::is26();
71 if ($instance === null) {
72 if (class_exists(
'\Xoops\Module\Admin',
true)) {
73 $instance = new \Xoops\Module\Admin;
74 self::$ModuleAdmin = $instance;
78 '/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'
80 self::$ModuleAdmin = new \ModuleAdmin;
81 $instance = new \Xmf\Module\Admin;
99 public static function is26()
101 return class_exists(
'\Xoops',
false);
120 $path=
'../../Frameworks/moduleclasses/icons/32/';
122 return(
$path.$image);
136 return self::$ModuleAdmin->addConfigBoxLine($value,
$type);
150 $this->lastInfoBoxTitle = $title;
152 return self::$ModuleAdmin->addInfoBox($title);
166 return self::$ModuleAdmin->addInfoBoxLine(
167 $this->lastInfoBoxTitle,
187 return self::$ModuleAdmin->addItemButton($title,
$link, $icon, $extra);
200 if ($postion==null) {
204 return self::$ModuleAdmin->renderButton($position, $delimiter);
227 return self::$ModuleAdmin->renderInfoBox();
247 return self::$ModuleAdmin->renderIndex();
269 echo self::$ModuleAdmin->addNavigation(
$menu);
281 return self::$ModuleAdmin->renderAbout(self::$paypal, $logo_xoops);
324 $line .=
"<span style='color : red; font-weight : bold;'>";
325 $line .=
"<img src='" .
$path .
"off.png' >";
332 return self::$ModuleAdmin->addConfigBoxLine($value,
$type);
349 $line .=
"<span style='color : green;'>";
350 $line .=
"<img src='" .
$path .
"on.png' >";
357 return self::$ModuleAdmin->addConfigBoxLine($value,
$type);
392 $path=
'/media/xoops/images/icons/'.$path;
394 $path=
'/Frameworks/moduleclasses/icons/'.$path;
414 $mod_modversion=
$helper->getModule()->getVar(
'version');
415 $mod_version_f = $mod_modversion/100;
416 $min_version_f = $minversion/100;
423 if ($mod_modversion>=$minversion) {
424 self::addConfigAccept($value);
427 self::addConfigError($value);
435 self::addConfigError($value);
static getHelper($dirname= 'system')
if(empty($image_id)) $image
displayButton($position=null, $delimiter=" ")
static loadFile($file, $once=true)
addItemButton($title, $link, $icon= 'add', $extra= '')
static addConfigError($value= '')
renderButton($position=null, $delimiter=" ")
displayAbout($logo_xoops=true)
const _AM_XMF_DEMOMVC_MODULE_VERSION
static menuIconPath($image)
const _AM_XMF_DEMOMVC_MODULE_NOTFOUND
addConfigBoxLine($value= '', $type= 'default')
addInfoBox($title, $type= 'default', $extra= '')
static load($name, $domain= '', $language=null)
static iconUrl($name= '', $size= '32')
static addConfigAccept($value= '')
renderAbout($logo_xoops=true)
addInfoBoxLine($text= '', $type= 'default', $color= 'inherit')
static checkModuleVersion($moddir, $minversion)
displayNavigation($menu= '')
static setPaypal($paypal= '')