本文整理匯總了PHP中Admin\Builder\AdminConfigBuilder::handleConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP AdminConfigBuilder::handleConfig方法的具體用法?PHP AdminConfigBuilder::handleConfig怎麽用?PHP AdminConfigBuilder::handleConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Admin\Builder\AdminConfigBuilder
的用法示例。
在下文中一共展示了AdminConfigBuilder::handleConfig方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('活動基本設置')->data($data)->keyBool('NEED_VERIFY', '創建活動是否需要審核', '默認無需審核')->keyBool('SHENHE_SEND_WEIBO', '審核活動是否發新鮮事', '默認不發新鮮事')->keyDefault('SHENHE_SEND_WEIBO', 0)->group('基本配置', 'NEED_VERIFY,SHENHE_SEND_WEIBO')->groupLocalComment('本地評論配置', 'event')->buttonSubmit('', '保存');
$admin_config->display();
}
示例2: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('群組基本設置')->keyBool('GROUP_NEED_VERIFY', '創建群組是否需要審核', '默認無需審核')->keyText('GROUP_POST_IMG_COUNT', '帖子顯示圖片的數量限製', '默認為10')->keyCheckBox('GROUP_SEND_WEIBO', '創建/修改群組發送微博開關', '', array('add_group' => '創建群組', 'edit_group' => '編輯群組'))->keyCheckBox('GROUP_POST_SEND_WEIBO', '創建/修改帖子發送微博開關', '', array('add_group_post' => '新增帖子', 'edit_group_post' => '編輯帖子'))->keyRadio('GROUP_LZL_REPLY_ORDER', '樓中樓排序', '', array(0 => '時間降序', 1 => '時間升序'))->keyText('GROUP_LZL_SHOW_COUNT', '樓中樓顯示數量')->buttonSubmit('', '保存')->data($data)->keyDefault('GROUP_NEED_VERIFY', 0)->keyDefault('GROUP_POST_IMG_COUNT', 10)->keyDefault('GROUP_SEND_WEIBO', 'add_group,edit_group')->keyDefault('GROUP_POST_SEND_WEIBO', 'add_group_post,edit_group_post')->keyDefault('GROUP_LZL_REPLY_ORDER', 1)->keyDefault('GROUP_LZL_SHOW_COUNT', 5)->group('群組設置', 'GROUP_NEED_VERIFY,GROUP_SEND_WEIBO')->group('帖子設置', 'GROUP_POST_IMG_COUNT,GROUP_POST_SEND_WEIBO')->group('樓中樓設置', 'GROUP_LZL_REPLY_ORDER,GROUP_LZL_SHOW_COUNT');
$admin_config->display();
}
示例3: index
public function index()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$mStep = A('Ucenter/RegStep', 'Widget')->mStep;
$step = array();
foreach ($mStep as $key => $v) {
$step[] = array('data-id' => $key, 'title' => $v);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $step), array('data-id' => 'enable', 'title' => '啟用', 'items' => array()));
//$default=array('禁用'=>$step,'啟用並可跳過'=>array(),'啟用但不可跳過'=>array());
$data['REG_STEP'] = $admin_config->parseKanbanArray($data['REG_STEP'], $step, $default);
empty($data['LEVEL']) && ($data['LEVEL'] = <<<str
0:Lv1 實習
50:Lv2 試用
100:Lv3 轉正
200:Lv4 助理
400:Lv 5 經理
800:Lv6 董事
1600:Lv7 董事長
str
);
empty($data['OPEN_QUICK_LOGIN']) && ($data['OPEN_QUICK_LOGIN'] = 0);
$admin_config->title('用戶配置')->keyCheckBox('REG_SWITCH', '注冊開關', '允許使用的注冊選項,全不選即為關閉注冊', array('username' => '用戶名', 'email' => '郵箱', 'mobile' => '手機'))->keyRadio('EMAIL_VERIFY_TYPE', '郵箱驗證類型', '郵箱驗證的類型', array(0 => '不驗證', 1 => '注冊後發送激活郵件', 2 => '注冊前發送驗證郵件'))->keyRadio('MOBILE_VERIFY_TYPE', '手機驗證類型', '手機驗證的類型', array(0 => '不驗證', 1 => '注冊前發送驗證短信'))->keyKanban('REG_STEP', '注冊步驟', '注冊後需要進行的步驟')->keyCheckBox('REG_CAN_SKIP', '注冊步驟是否可跳過', '勾選為可跳過,默認不可跳過', $mStep)->keyEditor('REG_EMAIL_VERIFY', '郵箱驗證模版', '用於進行郵箱的驗證', 'all')->keyEditor('REG_EMAIL_ACTIVATE', '郵箱激活模版', '用於進行用戶的激活')->keyCheckBox('SMS_SP', '短信提供商', '可選的短信通道提供商,全不選即為關閉短信通道', array('ucpaas' => '雲之訊', 'UCToo' => 'UCToo'))->keyText('SMS_HTTP', '短信平台HTTP', '短信平台HTTP')->keyText('SMS_HTTPS', '短信平台HTTPS', '短信平台HTTPS')->keyText('SMS_UID', '短信平台帳號', '短信平台帳號')->keyText('SMS_PWD', '短信平台密碼', '短信平台密碼')->keyText('SMS_ACCOUNTSID', '短信平台開發者ID', '短信平台開發者ID')->keyText('SMS_TOKEN', '短信平台TOKEN', '短信平台TOKEN')->keyText('SMS_APPID', '短信平台應用ID', '短信平台應用ID')->keyText('SMS_TEMPLATEID', '短信平台模板ID', '短信平台模板ID')->keyTextArea('SMS_CONTENT', '短信內容', '短信內容')->keyTextArea('LEVEL', '等級配置', '每行一條,名稱和積分之間用冒號分隔')->keyRadio('OPEN_QUICK_LOGIN', '快捷登錄', '默認關閉,開啟後用戶登錄方式更換成快捷登錄!', array(0 => '關閉', 1 => '開啟'))->group('注冊配置', 'REG_SWITCH,EMAIL_VERIFY_TYPE,MOBILE_VERIFY_TYPE,REG_STEP,REG_CAN_SKIP')->group('登錄配置', 'OPEN_QUICK_LOGIN')->group('郵箱驗證模版', 'REG_EMAIL_VERIFY')->group('郵箱激活模版', 'REG_EMAIL_ACTIVATE')->group('短信配置', 'SMS_SP,SMS_HTTP,SMS_HTTPS,SMS_UID,SMS_PWD,SMS_ACCOUNTSID,SMS_TOKEN,SMS_APPID,SMS_TEMPLATEID,SMS_CONTENT')->group('基礎設置', 'LEVEL')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例4: config
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
$builder->title('采集設置');
$builder->display();
}
示例5: config
/**
* 單頁配置
* @author 鄭鍾良<zzl@ourstu.com>\
*/
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
$builder->title('文章基礎設置')->data($data);
$builder->keyText('PAPER_CATEGORY_TITLE', '文章頂部標題')->keyDefault('PAPER_CATEGORY_TITLE', '介紹')->buttonSubmit()->buttonBack()->display();
}
示例6: index
public function index()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$mStep = A('Ucenter/RegStep', 'Widget')->mStep;
$step = array();
foreach ($mStep as $key => $v) {
$step[] = array('data-id' => $key, 'title' => $v);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $step), array('data-id' => 'enable', 'title' => '啟用', 'items' => array()));
//$default=array('禁用'=>$step,'啟用並可跳過'=>array(),'啟用但不可跳過'=>array());
$data['REG_STEP'] = $admin_config->parseKanbanArray($data['REG_STEP'], $step, $default);
empty($data['LEVEL']) && ($data['LEVEL'] = <<<str
0:Lv1 實習
50:Lv2 試用
100:Lv3 轉正
200:Lv4 助理
400:Lv 5 經理
800:Lv6 董事
1600:Lv7 董事長
str
);
empty($data['OPEN_QUICK_LOGIN']) && ($data['OPEN_QUICK_LOGIN'] = 0);
$admin_config->title('用戶配置')->keyCheckBox('REG_SWITCH', '注冊開關', '允許使用的注冊選項,全不選即為關閉注冊', array('username' => '用戶名', 'email' => '郵箱', 'mobile' => '手機'))->keyRadio('EMAIL_VERIFY_TYPE', '郵箱驗證類型', '郵箱驗證的類型', array(0 => '不驗證', 1 => '注冊後發送激活郵件', 2 => '注冊前發送驗證郵件'))->keyRadio('MOBILE_VERIFY_TYPE', '手機驗證類型', '手機驗證的類型', array(0 => '不驗證', 1 => '注冊前發送驗證短信'))->keyText('NEW_USER_FOLLOW', '新用戶關注', '輸入用戶id,多個用戶以‘,’分割')->keyText('NEW_USER_FANS', '新用戶粉絲', '輸入用戶id,多個用戶以‘,’分割')->keyText('NEW_USER_FRIENDS', '新用戶好友', '輸入用戶id,多個用戶以‘,’分割')->keyKanban('REG_STEP', '注冊步驟', '注冊後需要進行的步驟')->keyCheckBox('REG_CAN_SKIP', '注冊步驟是否可跳過', '勾選為可跳過,默認不可跳過', $mStep)->keyEditor('REG_EMAIL_VERIFY', '郵箱驗證模版', '用於進行郵箱的驗證', 'all')->keyEditor('REG_EMAIL_ACTIVATE', '郵箱激活模版', '用於進行用戶的激活')->keyText('SMS_HTTP', '短信平台HTTP', '短信平台HTTP,可用服務商:<a href="http://www.yunsms.cn/" target="_blank">雲短信</a>')->keyText('SMS_UID', '短信平台帳號', '短信平台帳號')->keyText('SMS_PWD', '短信平台密碼', '短信平台密碼')->keyTextArea('SMS_CONTENT', '短信內容', '短信內容')->keyTextArea('LEVEL', '等級配置', '每行一條,名稱和積分之間用冒號分隔')->keyRadio('OPEN_QUICK_LOGIN', '快捷登錄', '默認關閉,開啟後用戶登錄方式更換成快捷登錄!', array(0 => '關閉', 1 => '開啟'))->group('注冊配置', 'REG_SWITCH,EMAIL_VERIFY_TYPE,MOBILE_VERIFY_TYPE,REG_STEP,REG_CAN_SKIP,NEW_USER_FOLLOW,NEW_USER_FANS,NEW_USER_FRIENDS')->group('登錄配置', 'OPEN_QUICK_LOGIN')->group('郵箱驗證模版', 'REG_EMAIL_VERIFY')->group('郵箱激活模版', 'REG_EMAIL_ACTIVATE')->group('短信配置', 'SMS_HTTP,SMS_UID,SMS_PWD,SMS_CONTENT')->group('基礎設置', 'LEVEL')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例7: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('專輯基本設置')->keyBool('NEED_VERIFY', '投稿是否需要審核', '默認無需審核')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例8: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('微博基本設置')->keyBool('SHOW_TITLE', '是否在微博左側顯示等級')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例9: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('活動基本設置')->keyBool('NEED_VERIFY', '創建活動是否需要審核', '默認無需審核')->group('基本配置', 'NEED_VERIFY')->groupLocalComment('本地評論配置', 'event')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例10: config
/**
* 邀請注冊基本配置
* @author 鄭鍾良<zzl@ourstu.com>
*/
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
!isset($data['REGISTER_TYPE']) && ($data['REGISTER_TYPE'] = 'normal');
$register_options = array('normal' => L('_ORDINARY_REGISTRATION_'), 'invite' => L('_INVITED_TO_REGISTER_'));
$builder->title(L('_INVITE_REGISTERED_INFORMATION_CONFIGURATION_'))->keyCheckBox('REGISTER_TYPE', L('_REGISTERED_TYPE_'), L('_CHECK_TO_OPEN_'), $register_options)->data($data)->buttonSubmit()->buttonBack()->display();
}
示例11: ssoSetting
public function ssoSetting()
{
$admin_config = new AdminConfigBuilder();
$admin_config->callback("ssoCallback");
$data = $admin_config->handleConfig();
$admin_config->title('單點登錄配置')->keyRadio('SSO_SWITCH_USER_CENTER', '單點登錄開關', '作為用戶中心的單點登錄開關,其他開關在登錄配置裏麵設置', array(0 => '關閉單點登錄', 1 => '作為用戶中心開啟單點登錄'))->keyTextArea('SSO_CONFIG', '單點登錄配置', '單點登錄配置文件中的配置(當開關為開啟單點登錄時有效,不包括作為用戶中心開啟單點登錄)')->keyLabel('SSO_UC_AUTH_KEY', '用戶中心加密密鑰', '係統已自動寫入配置文件,如寫入失敗請手動複製。')->keyLabel('SSO_UC_DB_DSN', '用戶中心數據連接', '係統已自動寫入配置文件,如寫入失敗請手動複製。')->keyLabel('SSO_UC_TABLE_PREFIX', '用戶中心表前綴', '係統已自動寫入配置文件,如寫入失敗請手動複製。')->group('作為用戶中心配置', 'SSO_SWITCH_USER_CENTER')->group('作為應用配置', 'SSO_CONFIG,SSO_UC_AUTH_KEY,SSO_UC_DB_DSN,SSO_UC_TABLE_PREFIX')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例12: ssoSetting
public function ssoSetting()
{
$admin_config = new AdminConfigBuilder();
$admin_config->callback("ssoCallback");
$data = $admin_config->handleConfig();
$admin_config->title(L('_SINGLE_POINT_LOGIN_CONFIGURATION_'))->keyRadio('SSO_SWITCH_USER_CENTER', L('_SINGLE_SIGN_ON_SWITCH_'), L('_AS_THE_USER_CENTER_OF_THE_SINGLE_SIGN_ON_SWITCH_'), array(0 => L('_CLOSE_SINGLE_POINT_LOGIN_'), 1 => L('_AS_USER_CENTER_OPEN_SINGLE_SIGN_ON_')))->keyTextArea('SSO_CONFIG', L('_SINGLE_POINT_LOGIN_CONFIGURATION_'), L('_SINGLE_POINT_LOGIN_CONFIGURATION_VICE_'))->keyLabel('SSO_UC_AUTH_KEY', L('_USER_CENTER_ENCRYPTION_KEY_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->keyLabel('SSO_UC_DB_DSN', L('_USER_CENTER_DATA_CONNECTION_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->keyLabel('SSO_UC_TABLE_PREFIX', L('_USER_CENTER_TABLE_PREFIX_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->group(L('_CONFIGURATION_AS_USER_CENTER_'), 'SSO_SWITCH_USER_CENTER')->group(L('_AS_AN_APPLICATION_CONFIGURATION_'), 'SSO_CONFIG,SSO_UC_AUTH_KEY,SSO_UC_DB_DSN,SSO_UC_TABLE_PREFIX')->buttonSubmit('', L('_SAVE_'))->data($data);
$admin_config->display();
}
示例13: config
/**
* 邀請注冊基本配置
* @author 鄭鍾良<zzl@ourstu.com>
*/
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
!isset($data['REGISTER_TYPE']) && ($data['REGISTER_TYPE'] = 'normal');
$register_options = array('normal' => '普通注冊', 'invite' => '邀請注冊');
$builder->title('邀請注冊信息配置')->keyCheckBox('REGISTER_TYPE', '注冊類型', '勾選為開啟', $register_options)->data($data)->buttonSubmit()->buttonBack()->display();
}
示例14: config
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
$builder->title('基本配置');
$builder->keyText('WEBSITE_NAME', '網站名稱顯示')->keyEditor('COPY_RIGHT', '網站版權信息')->group('通用設置', 'WEBSITE_NAME,COPY_RIGHT');
$builder->keyTextArea('SUMMARY', '登陸頁導語', '不要過長,一句話即可')->group('登陸頁設置', 'SUMMARY');
$builder->buttonSubmit();
$builder->data($data);
$builder->display();
}
示例15: config
public function config()
{
$admin_config = new AdminConfigBuilder();
if (IS_POST) {
S('GROUP_SHOW_DATA', null);
S('GROUP_POST_SHOW_DATA', null);
}
$data = $admin_config->handleConfig();
$admin_config->title('群組基本設置')->keyBool('GROUP_NEED_VERIFY', '創建群組是否需要審核', '默認無需審核')->keyText('GROUP_POST_IMG_COUNT', '帖子顯示圖片的數量限製', '默認為10')->keyCheckBox('GROUP_SEND_WEIBO', '創建/修改群組發送微博開關', '', array('add_group' => '創建群組', 'edit_group' => '編輯群組'))->keyBool('GROUP_AUDIT_SEND_WEIBO', '審核群組是否發送微博', '')->keyText('GROUP_LIMIT', '每個人允許創建的群組個數', '默認為5')->keyCheckBox('GROUP_POST_SEND_WEIBO', '創建/修改帖子發送微博開關', '', array('add_group_post' => '新增帖子', 'edit_group_post' => '編輯帖子'))->keyRadio('GROUP_LZL_REPLY_ORDER', '樓中樓排序', '', array(0 => '時間降序', 1 => '時間升序'))->keyText('GROUP_LZL_SHOW_COUNT', '樓中樓顯示數量')->buttonSubmit('', '保存')->data($data)->keyDefault('GROUP_LIMIT', 5)->keyDefault('GROUP_NEED_VERIFY', 0)->keyDefault('GROUP_POST_IMG_COUNT', 10)->keyDefault('GROUP_SEND_WEIBO', 'add_group,edit_group')->keyDefault('GROUP_POST_SEND_WEIBO', 'add_group_post,edit_group_post')->keyDefault('GROUP_LZL_REPLY_ORDER', 1)->keyDefault('GROUP_LZL_SHOW_COUNT', 5)->group('群組設置', 'GROUP_NEED_VERIFY,GROUP_SEND_WEIBO,GROUP_AUDIT_SEND_WEIBO,GROUP_LIMIT')->group('帖子設置', 'GROUP_POST_IMG_COUNT,GROUP_POST_SEND_WEIBO')->group('樓中樓設置', 'GROUP_LZL_REPLY_ORDER,GROUP_LZL_SHOW_COUNT')->keyText('GROUP_SHOW_TITLE', '標題名稱', '在首頁展示塊的標題')->keyDefault('GROUP_SHOW_TITLE', '推薦群組')->keyText('GROUP_SHOW', '顯示板塊', '豎線|分割,填板塊ID,如1|2|3|4|5')->keyText('GROUP_SHOW_CACHE_TIME', '緩存時間', '默認600秒,以秒為單位')->keyDefault('GROUP_SHOW_CACHE_TIME', '600')->keyText('GROUP_POST_SHOW_TITLE', '標題名稱', '在首頁展示塊的標題')->keyDefault('GROUP_POST_SHOW_TITLE', '熱門群組話題')->keyText('GROUP_POST_SHOW_NUM', '貼子顯示數量')->keyDefault('GROUP_POST_SHOW_NUM', 5)->keyRadio('GROUP_POST_ORDER', '貼子排序字段', '', array('create_time' => '創建時間', 'update_time' => '更新時間', 'last_reply_time' => '最後回複時間', 'view_count' => '閱讀量', 'reply_count' => '回複數'))->keyDefault('GROUP_POST_ORDER', 'last_reply_time')->keyRadio('GROUP_POST_TYPE', '貼子排序方式', '', array('asc' => '升序', 'desc' => '降序'))->keyDefault('GROUP_POST_TYPE', 'desc')->keyText('GROUP_POST_CACHE_TIME', '緩存時間', '默認600秒,以秒為單位')->keyDefault('GROUP_POST_CACHE_TIME', '600')->group('首頁展示板塊設置', 'GROUP_SHOW_TITLE,GROUP_SHOW,GROUP_SHOW_CACHE_TIME')->group('首頁展示貼子設置', 'GROUP_POST_SHOW_TITLE,GROUP_POST_SHOW_NUM,GROUP_POST_ORDER,GROUP_POST_TYPE,NEWS_SHOW_CACHE_TIME');
$admin_config->display();
}