Метод |
Описание |
|
AddBuildModule ( string $modfilename, null $parameters = null ) |
添加模块 |
|
AddBuildModuleAll ( ) |
所有模块重置 |
|
AddItemToNavbar ( string $type = 'item', string $id, string $name, string $url ) |
向导航菜单添加相应条目 |
|
BuildModule ( ) |
生成模块 |
|
BuildTemplate ( ) : boolean |
模板解析 |
|
CheckApp ( string $name ) : boolean |
检查应用是否安装并启用 |
|
CheckGzip ( ) |
检查并开启Gzip压缩 |
|
CheckItemToNavbar ( string $type = 'item', $id ) : boolean |
检查条目是否在导航菜单中 |
|
CheckMemberByNameOrAliasExist ( $name ) |
检查指定名称或别名的用户是否存在(不区分大小写) |
|
CheckMemberNameExist ( $name ) |
检查指定名称的用户是否存在(不区分大小写) |
|
CheckPlugin ( string $name ) : boolean |
检查应用是否安装并启用 |
|
CheckRights ( string $action, $level = null ) : boolean |
验证操作权限 |
|
CheckRightsByLevel ( string $action, integer $level ) : boolean |
根据用户等级验证操作权限 1.5开始参数换顺序 |
|
CheckSiteClosed ( ) |
检测网站关闭 |
|
CheckTemplate ( boolean $nobuild = false ) : true |
更新模板缓存 |
|
CheckValidCode ( string $vaidcode, string $id = '' ) : boolean |
比对验证码 |
|
CloseConnect ( ) |
关闭数据库连接 |
|
Config ( string $name ) : mixed |
获取Configs表值 |
|
ConvertTableAndDatainfo ( ) |
对表名和数据结构进行预转换 |
|
ConvertTagIDtoString ( array $array ) : string |
通过数组array[111,333,444,555,666]转换成存储串 |
|
DelBuildModule ( string $modfilename ) |
删除模块 |
|
DelConfig ( string $name ) : boolean |
删除Configs表 |
|
DelItemToNavbar ( string $type = 'item', $id ) |
删除导航菜单中相应条目 |
|
EndSession ( ) : boolean |
终止session |
|
GetAction_Title ( $name ) |
|
|
GetArticleList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null, boolean $readtags = true ) : array |
|
|
GetCategoryByAlias ( string $name, $backKey = null ) : Category |
通过分类别名获取分类实例 |
|
GetCategoryByAliasOrName ( string $name ) : Category |
与老版本保持兼容函数 |
|
GetCategoryByID ( integer $id ) : Category |
通过ID获取分类实例 |
|
GetCategoryByName ( string $name ) : Category |
通过分类名获取分类实例 |
|
GetCategoryList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetCmtKey ( $id ) : string |
获取评论key |
|
GetCommentByID ( integer $id ) : Comment |
通过ID获取评论实例 |
|
GetCommentList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetHint ( ) |
提取Cookie中的提示消息 |
|
GetInstance ( ) : null | ZBlogPHP |
获取唯一实例 |
|
GetListCustom ( string $table, string $datainfo, string $sql ) : array |
查询指定数据结构的sql并返回Base对象列表 |
|
GetListCustomByArray ( string $table, string $datainfo, array $array ) : array |
查询ID数据的指定数据结构的sql并返回Base对象列表 |
|
GetListType ( $type, $sql ) : array |
已改名GetListType,1.5版中扔掉有歧义的GetList |
|
GetListTypeByArray ( string $type, array $array ) : array |
查询ID数据的指定类型的sql并返回指定类型对象列表 |
|
GetMemberByID ( integer $id ) : Member |
通过ID获取用户实例 |
|
GetMemberByName ( string $name ) : Member |
通过用户名获取用户实例(不区分大小写) |
|
GetMemberByNameOrAlias ( string $name ) : Member |
通过获取用户名或别名实例(不区分大小写) |
|
GetMemberList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetModuleByFileName ( string $fn ) : Module |
通过FileName获取模块实例 |
|
GetModuleByID ( integer $id ) : Module |
通过ID获取模块实例 |
|
GetModuleList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetPageList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetPostByArray ( array $array ) : array |
通过ID数组获取文章实例 |
|
GetPostByID ( integer $id ) : Post |
通过ID获取文章实例 |
|
GetPostList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetPostType_Name ( $typeid ) |
|
|
GetPostType_Template ( $typeid ) |
|
|
GetPostType_UrlRule ( $typeid ) |
|
|
GetPreActivePlugin ( ) |
获取预激活插件名数组 |
|
GetSomeThing ( $object, $attr, $argu, $className = null ) |
获取数据通用函数 |
|
GetTagByAlias ( string $name, $backKey = null ) : Tag |
通过tag名获取tag实例 |
|
GetTagByAliasOrName ( string $name ) : Tag |
通过tag名获取tag实例 |
|
GetTagByID ( integer $id ) : Tag |
通过ID获取tag实例 |
|
GetTagList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
GetToken ( $s = '' ) : string |
获取会话Token |
|
GetTopArticle ( ) |
获取全部置顶文章(优先从cache里读数组) |
|
GetUploadByID ( integer $id ) : Upload |
通过ID获取附件实例 |
|
GetUploadList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array |
|
|
HasConfig ( string $name ) : boolean |
查某Config是否存在 |
|
Initialize ( ) : boolean |
初始化$zbp |
|
InitializeDB ( string $type ) : object |
初始化数据库连接 |
|
Load ( ) : boolean |
载入 |
|
LoadApp ( string $type, string $id ) : App |
载入指定应用 |
|
LoadCache ( ) : boolean |
加载缓存 |
|
LoadCategorys ( ) : boolean |
载入分类列表 |
|
LoadConfigs ( ) |
载入插件Configs表 |
|
LoadLanguage ( string $type, string $id, $default = '' ) : null |
载入指定应用语言包 |
|
LoadManage ( ) |
载入管理 |
|
LoadMembers ( $level ) |
载入用户列表 |
|
LoadModules ( ) : null |
载入模块列表 |
|
LoadOption ( ) : boolean |
载入配置 |
|
LoadPlugins ( ) |
载入插件列表 |
|
LoadTags ( ) |
载入标签列表 |
|
LoadTagsByIDString ( $s ) : array |
通过类似'{1}{2}{3}{4}'载入tags |
|
LoadTagsByNameString ( string $s ) : array |
通过类似'aaa,bbb,ccc,ddd'载入tags |
|
LoadThemes ( ) |
载入主题列表 |
|
OpenConnect ( ) : boolean |
连接数据库 |
|
PrepareTemplate ( string $theme = null ) : Template |
创建模板对象,预加载已编译模板 |
|
RedirectInstall ( ) |
跳转到安装页面 |
|
RedirectPermanentDomain ( ) |
检测当前url,如果不符合设置就跳转到固定域名的链接 |
|
RegAction ( $name, $level, $title ) |
注册Action |
|
RegBuildModule ( string $modfilename, string $userfunc ) |
重建模块 |
|
RegPostType ( $typeid, $name, $urlrule = '', $template = 'page' ) |
注册PostType
int $typeid 系统定义在0-99,插件自定义100-255
string $urlrule 默认是取Page类型的Url Rule
string $template 默认模板名page |
|
ReloadLanguages ( string $default ) : null |
重新读取语言包 |
|
SaveCache ( ) : boolean |
保存缓存 |
|
SaveConfig ( string $name ) : boolean |
保存Configs表 |
|
SaveOption ( ) : boolean |
保存配置 |
|
SetHint ( string $signal, string $content = '' ) |
设置提示消息并存入Cookie |
|
ShowError ( string/int $errorText, null $file = null, null $line = null ) : mixed |
显示错误信息 |
|
ShowHint ( string $signal, string $content = '' ) |
显示提示消息 |
|
ShowValidCode ( string $id = '' ) : mixed |
显示验证码 |
|
StartGzip ( ) |
启用Gzip |
|
StartSession ( ) : boolean |
启用session |
|
Terminate ( ) |
终止连接,释放资源 |
|
ValidCmtKey ( $id, $key ) : boolean |
验证评论key |
|
ValidToken ( $t, $s = '' ) : boolean |
验证会话Token |
|
Verify ( ) : boolean |
验证用户登录(COOKIE中的用户名密码) |
|
Verify_Final ( string $name, string $password, object &$member = null ) : boolean |
验证用户登录(数据库保存的最终运算后密码) |
|
Verify_MD5 ( string $name, string $md5pw, object &$member = null ) : boolean |
验证用户登录(一次MD5密码) |
|
Verify_MD5Path ( string $name, string $ps_path_hash, object &$member = null ) : boolean |
验证用户登录(MD5加zbp->guid盐后的密码) |
|
Verify_Original ( string $name, string $originalpw, object &$member = null ) : boolean |
验证用户登录(原始明文密码) |
|
__call ( $method, $args ) : mixed |
|
|
__construct ( ) |
构造函数,加载基本配置到$zbp |
|
__destruct ( ) |
析构函数,释放资源 |
|
__get ( $name ) : mixed |
获取参数值 |
|
__set ( $name, $value ) : mixed |
设置参数值 |
|
get_results ( $sql ) : mixed |
|
|