Title: scbFramework
Author: scribu
Published: <strong>2009 年 5 月 31 日</strong>
Last modified: 2013 年 4 月 8 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/scb-framework.svg)

# scbFramework

 作者：[scribu](https://profiles.wordpress.org/scribu/)

[下载](https://downloads.wordpress.org/plugin/scb-framework.zip)

 * [详情](https://cn.wordpress.org/plugins/scb-framework/#description)
 * [评价](https://cn.wordpress.org/plugins/scb-framework/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/scb-framework/#developers)

 [支持](https://wordpress.org/support/plugin/scb-framework/)

## 描述

This plugin is a a usage example for [scbFramework](https://github.com/scribu/wp-scb-framework).

scbFramework is a toolkit that helps developers write plugins faster. It consists
of several classes which handle common tasks, such as generating settings pages,
creating database tables etc.

See the [documentation](http://github.com/scribu/wp-scb-framework/wiki) for more
details.

To take a quick look at the code, see the github page: https://github.com/scribu/
wp-scb-framework-example

Links: [**Wiki**](http://github.com/scribu/wp-scb-framework/wiki) | [Framework News](http://scribu.net/wordpress/scb-framework)
| [Author’s Site](http://scribu.net)

## 评价

此插件暂无评价。

## 贡献者及开发者

「scbFramework」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)
 *   [ Andrey “Rarst” Savchenko ](https://profiles.wordpress.org/rarst/)

[帮助将「scbFramework」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/scb-framework)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/scb-framework/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/scb-framework/)，或通过[RSS](https://plugins.trac.wordpress.org/log/scb-framework/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/scb-framework/)。

## 更新日志

#### 16 Feb 2013 (r58)

 * improve toplevel admin menu item handling
 * fix notice in `scbForms::update_meta()`. props Josh Ronk
 * reduce usage of `extract()`. props [Rarst](https://profiles.wordpress.org/rarst)

#### 7 Sep 2012 (r57)

 * refactored scbForms: separate class for each input type
 * introduced scb_get_query_flags()
 * load classes immediately if ‘plugins_loaded’ was already called

#### 8 May 2012 (r53)

 * introduced input_from_meta() and input_with_value() methods to scbForms
 * added ‘default’ and ‘wrap_each’ optional parameters to relevant scbForms methods
 * introduced scbAdminPage::page_loaded()
 * added $name parameter to scb_register_table()

#### 23 Jan 2012 (r48)

 * introduced scbForms::validate_POST_data()
 * added ‘wrap’ arg to scbForms::input()
 * introduced scb_register_table(), scb_install_table() and scb_uninstall_table()
 * introduced scb_admin_notice()
 * replaced scbUtil::objects_to_assoc() with scb_list_fold()
 * added ‘screen_icon’ arg to scbAdminPage
 * made scbOptions::update() accept partial updates
 * WP 3.3 compatibility

#### 23 Aug 2011 (r40)

 * introduced scbHooks class
 * introduced scbForm class
 * forms: `'name' => array( 'foo', 'bar', 'baz' )` now means `foo[bar][baz]`
 * added example plugin, using scbTable, scbOptions, scbAdminPage and scbBoxesPage

#### 19 Jun 2011 (r36)

 * revamped radio button handling
 * added support for nested names
 * use html() and esc_textarea() in scbForms
 * extended example plugin
 * deprecated scbQueryManipulation, scbUtil::array_pluck() and scbUtil::array_extract()

#### 05 Apr 2011 (r34)

 * fixed activation hooks when using scb-load.php
 * added ability to define column widths in scbBoxesPages (props pento)
 * introduced scbUtil::get_current_url()
 * made scbTable play nice with switch_to_blog()

#### 02 Feb 2011 (r31)

 * scbQueryManipulation WP 3.1 compatibility
 * scbCron enhancements
 * introduced debug_cron(), debug_ts() and debug_h()
 * html() knows about self-closing tags

#### 09 Sep 2010 (r24)

 * delayed activation (scbLoad4)
 * replaced scbQuery with scbQueryManipulation
 * removed scbRewrite
 * added attributes param to html()
 * [more info](http://scribu.net/wordpress/scb-framework/revision-24.html)

#### 1.6 (r9)

 * load the most recent version available
 * move debugging functions to separate file
 * new methods in scbUtil: array_pluck(), objects_to_assoc(), split_at()
 * auto-uninstall for scbWidget
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-6.html)

#### 1.5

 * new methods for scbOptions: get_defaults(); cleanup(); __isset();
 * new method for scbAdminPage: page_help();
 * new method for scbUtil: add_uninstall_hook();
 * scbAdminPage::submit_button() accepts an array of arguments
 * scbAdminPage can create top level menus
 * scbBoxesPage can assign the same handler to multiple boxes, with different arguments
 * debug() outputs at the end of the page, only for administrators
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-5.html)

#### 1.4

 * new classes: scbUtil & scbRewrite
 * faster loading method
 * scbWidget applies ‘widget_title’ filter
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-4.html)

#### 1.3.1

 * scbTable respects collation & charset

#### 1.3

 * AdminPage: ajax submit
 * Options: added set(); deprecated update_part()
 * Cron: new methods: do_now(), do_once()
 * dropped support for WordPress older than 2.8
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-3.html)

#### 1.2.1

 * fixed PHP 5.0 compatibility issue

#### 1.2

 * added the scbTable class
 * fixed widget input names
 * use plugin_dir_url()
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-2.html)

#### 1.1

 * better scbBoxesPage
 * enhancements for scbAdminPage
 * bugfix in scbOptions
 * [more info](http://scribu.net/wordpress/scb-framework/sf-1-1.html)

#### 1.0

 * initial release
 * [more info](http://scribu.net/wordpress/scb-framework/introducing-scbframework.html)

## 额外信息

 *  版本 **r58**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/scb-framework/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[cron](https://cn.wordpress.org/plugins/tags/cron/)
   [forms](https://cn.wordpress.org/plugins/tags/forms/)[framework](https://cn.wordpress.org/plugins/tags/framework/)
   [toolkit](https://cn.wordpress.org/plugins/tags/toolkit/)
 *  [高级视图](https://cn.wordpress.org/plugins/scb-framework/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/scb-framework/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/scb-framework/reviews/)

## 贡献者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)
 *   [ Andrey “Rarst” Savchenko ](https://profiles.wordpress.org/rarst/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/scb-framework/)