本文整理汇总了PHP中Region::get_tree方法的典型用法代码示例。如果您正苦于以下问题:PHP Region::get_tree方法的具体用法?PHP Region::get_tree怎么用?PHP Region::get_tree使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Region
的用法示例。
在下文中一共展示了Region::get_tree方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: db
include "{$docroot}/db-category.php";
include "{$docroot}/db-expiry.php";
include "{$docroot}/db-static-content.php";
include "{$docroot}/db-user.php";
include "{$docroot}/db-user-banned.php";
include "{$docroot}/db-response.php";
include "{$docroot}/db-ad-review.php";
include "{$docroot}/db-favourite.php";
include "{$docroot}/db-user-review.php";
include "{$docroot}/db-report.php";
$db = new db();
if (!$db->connect()) {
exit(mysql_error());
}
$categories = Category::get_tree();
$regions = Region::get_tree();
$statics = StaticContent::get_all(array(), 'id>6');
//counters
$today = date("Y-m-d", time());
$ct_fresh = Ad::count(array('active' => 1), "lastmodified>='{$today}'");
$ct_all = Ad::count(array('active' => 1));
$ct_expirys = Ad::count(array('active' => 1, "DATEDIFF(expiry,'{$today}')" => 0));
//menu and breadcumb
$menu = User::get_menu();
$current_script_name = basename($_SERVER['SCRIPT_NAME']);
if (strpos($current_script_name, '-') > 0) {
$current_page = explode('-', $current_script_name, 2);
if (isset($current_page[2])) {
$current_page[1] .= '-' . $current_page[2];
}
//php 5.3.5 bug?? workaround