本文整理汇总了PHP中usersMenus::isTreeReadable方法的典型用法代码示例。如果您正苦于以下问题:PHP usersMenus::isTreeReadable方法的具体用法?PHP usersMenus::isTreeReadable怎么用?PHP usersMenus::isTreeReadable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类usersMenus
的用法示例。
在下文中一共展示了usersMenus::isTreeReadable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BuildLevel1
function BuildLevel1($noitems = 0)
{
$mny = new usersMenus();
if ($mny->AsSystemAdministrator) {
$items = $items . "{\n";
$items = $items . "\t\t'id' : 'server:settings',\n";
$items = $items . "\t\t'txt' : 'Local system',\n";
$items = $items . "\t\t'img' : 'tree-server-1.gif',\n";
$items = $items . "\t\t'onopenpopulate' : myOpenPopulate,\n";
$items = $items . "\t\t'openlink' : 'ldapTree.php',\n";
$items = $items . "\t\t'canhavechildren' : true\n";
$items = $items . "\t\t},";
}
if ($mny->isTreeReadable() == true) {
$items = $items . "{\n";
$items = $items . "\t\t'id' : 'server:applications',\n";
$items = $items . "\t\t'txt' : 'Applications',\n";
$items = $items . "\t\t'img' : 'tree-applications.gif',\n";
$items = $items . "\t\t'onopenpopulate' : myOpenPopulate,\n";
$items = $items . "\t\t'openlink' : 'ldapTree.php',\n";
$items = $items . "\t\t'canhavechildren' : true\n";
$items = $items . "\t\t},";
}
$items = $items . "{\n";
$items = $items . "\t\t'id' : 'server:organisations',\n";
$items = $items . "\t\t'txt' : 'Organizations',\n";
$items = $items . "\t\t'img' : 'organisation-22.gif',\n";
$items = $items . "\t\t'onopenpopulate' : myOpenPopulate,\n";
$items = $items . "\t\t'openlink' : 'ldapTree.php',\n";
$items = $items . "\t\t'canhavechildren' : true\n";
$items = $items . "\t\t},";
if ($items[strlen($items) - 1] == ',') {
$items = substr($items, 0, strlen($items) - 1);
}
return $items . "";
}