模块

Admin

后台管理相关功能。

package
BootCMS
category
辅助类
author
Tinsh
copyright
© 2005-2016 Kilofox Studio

该类在 APPPATH/classes/admin.php 第 13 行声明。

常量

属性

方法

public static minimumLevel( ) (在 Admin 中定义)

为给定的 controller/action 生成最小等级需求

源代码

public static function minimumLevel($action)
{
	$level = array(
		'index' => 6,
		'setting_general' => 8,
		'setting_payment' => 8,
		'cache' => 9,
		'list_logs' => 8,
		'list_pages' => 7,
		'create_page' => 7,
		'edit_page' => 7,
		'delete_page' => 7,
		'list_comments' => 7,
		'delete_comment' => 7,
		'login' => 1,
		'list_users' => 7,
		'edit_user' => 5,
		'delete_user' => 7,
		'list_orders' => 7,
		'list_products' => 7,
		'create_product' => 7,
		'edit_product' => 7,
		'delete_product' => 7,
		'sort_products' => 7,
		'list_product_categories' => 7,
		'create_product_category' => 7,
		'edit_product_category' => 7,
		'delete_product_category' => 7,
		'list_shops' => 7,
		'create_shop' => 7,
		'edit_shop' => 7,
		'delete_shop' => 7,
		'list_shippings' => 7,
		'create_shipping' => 7,
		'edit_shipping' => 7,
		'delete_shipping' => 7,
	);
	if (isset($level[$action]))
		return $level[$action];
	else
		return 9;
}

public static publishing_options( integer $cur , integer $level [, string $type = string(4) "page" , string $action = string(4) "edit" ] ) (在 Admin 中定义)

创建发布选项