本文整理汇总了PHP中Space::setLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP Space::setLinks方法的具体用法?PHP Space::setLinks怎么用?PHP Space::setLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Space
的用法示例。
在下文中一共展示了Space::setLinks方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setvar
$skin_path_info[] = "skins/default/";
}
}
list($skin_path, $skin_dir) = $skin_path_info;
uaAssign(array("SkinName" => $skin_path, "ThemeName" => $skin_path, "SkinPath" => $skin_dir, "COMPANY" => $company->info, "MEMBER" => $member->info));
$smarty->template_dir = PHPB2B_ROOT . "skins" . DS;
$smarty->flash_layout = $skin_path . "/flash";
if (!$smarty->template_exists($skin_path . "flash")) {
setvar("SkinName", "default");
$smarty->template_dir = PHPB2B_ROOT . "skins" . DS;
$smarty->flash_layout = 'default/flash';
}
$smarty->setCompileDir();
$smarty->setCompileDir("skin" . DS . $skin_path . DS);
if (isset($member->info['id'])) {
$space->setLinks($member->info['id']);
}
$space->setMenu($company->info['cache_spacename'], $space_actions);
$product_types = $pdb->CacheGetArray("SELECT *,id as typeid,name as typename FROM {$tb_prefix}producttypes WHERE company_id=" . $company->info['id']);
//set and get db cache
setvar("ProductTypes", $product_types);
$group_info = array();
$group_info['year'] = $time_tmp;
if (!empty($member->info['membergroup_id']['name'])) {
$group_info['name'] = $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['name'];
} else {
$group_info['name'] = L("undefined_image", "tpl");
}
if (!empty($member->info['membergroup_id']['avatar'])) {
$group_info['image'] = $absolute_uri . "images/group/" . $_PB_CACHE['membergroup'][$member->info['membergroup_id']]['avatar'];
} else {