Пример #1
0
 public static function delete()
 {
     $ret = menuStub::reqMenu("menu/delete", array());
     if (false === $ret) {
         return false;
     }
     return true;
 }
Пример #2
0
<?php

require_once dirname(__FILE__) . "/../common/GlobalFunctions.php";
require_once dirname(__FILE__) . "/../common/GlobalDefine.php";
require_once dirname(__FILE__) . "/../class/menuStub.php";
interfaceLog(DEBUG, 0, "***start menu**");
$menuData = array("button" => array(array('type' => 'click', 'name' => '热门歌曲', 'key' => 'V1001_TODAY_MUSIC'), array('type' => 'click', 'name' => '歌手', 'key' => 'V1001_TODAY_SINGER')));
$ret = menuStub::create($menuData);
if (false === $ret) {
    interfaceLog(DEBUG, 0, "create menu fail!");
    echo "create menu fail!\n";
} else {
    interfaceLog(DEBUG, 0, "create menu success");
    echo "create menu success!\n";
}
interfaceLog(DEBUG, 0, "***end menu***");
Пример #3
0
					'key' => 'PUTMAGIC_SSZM'
				),
				array(
					'type' => 'click',
					'name' => '重获新生',
					'key' => 'PUTMAGIC_CHXS'
				),
				array(
					'type' => 'click',
					'name' => '壶底抽薪',
					'key' => 'PUTMAGIC_HDCX'
				),
				array(
					'type' => 'click',
					'name' => '邪神附体',
					'key' => 'PUTMAGIC_XSFT'
				),
			)
		),
	)
);
*****/
$ret = menuStub::create('ABC', $menuData);
if (false === $ret) {
    interface_log(DEBUG, 0, "create menu fail!");
    echo "create menu fail!\n";
} else {
    interface_log(DEBUG, 0, "creat menu success");
    echo "create menu success!\n";
}
interface_log(DEBUG, 0, "***end menu***");