PHP 클래스 ZBlogPHP

파일 보기 프로젝트 열기: zblogcn/zblogphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$action 当前操作
$actions 操作列表
$activeapps
$activedapps 激活的插件列表
$ajaxurl null
$cache 缓存
$categories
$categoriesbyorder
$categorys 分类数组
$categorysbyorder 分类数组(已排序)
$commentdisplaycount 评论显示数量
$comments 评论数组
$configs 配置选项
$cookiespath cookie作用域
$currenturl 当前链接
$datainfo 数据表信息
$db 数据库
$displaycount 文章列表显示条数
$feedurl null
$footer 模板尾部
$guid guid
$header 模板头部
$host 域名
$ishttps #是否开启gzip
$ismanage #是否使用session
$lang 语言
$langpacklist 语言包list
$managecount 管理页面显示条数
$members 用户数组
$membersbyname 用户数组(以用户名为键)
$modules 模块数组
$modulesbyfilename 模块数组(以文件名为键)
$name 网站名
$option 配置选项
$pagebarcount 页码显示条数
$path 路径
$posts 文章列表数组
$posttype 类型序列
$searchcount 搜索返回条数
$searchurl null
$socialcomment 社会化评论
$style 当前主题风格
$subname 网站子标题
$table 数据表
$tags 标签数组
$tagsbyname 标签数组(以标签名为键)
$template 当前模板
$theme 当前主题
$themeinfo
$title 当前页面标题
$user 当前用户
$usersdir 用户目录
$validcodeurl 验证码地址
$version 版本号
$xmlrpcurl null

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetSomeThingByAlias ( $object, $val, $backAttr = null, $className = null ) 根据别名得到相应数据
GetSomeThingByAttr ( &$object, $attr, $val ) 根据属性值得到相应数据
GetSomeThingById ( &$object, $className, $id ) 根据ID得到相应数据

메소드 상세

AddBuildModule() 공개 메소드

添加模块
public AddBuildModule ( string $modfilename, null $parameters = null )
$modfilename string 模块名
$parameters null 模块参数

AddBuildModuleAll() 공개 메소드

所有模块重置
public AddBuildModuleAll ( )

AddItemToNavbar() 공개 메소드

向导航菜单添加相应条目
public AddItemToNavbar ( string $type = 'item', string $id, string $name, string $url )
$type string $type=category,tag,page,item
$id string
$name string
$url string

BuildModule() 공개 메소드

生成模块
public BuildModule ( )

BuildTemplate() 공개 메소드

模板解析
public BuildTemplate ( ) : boolean
리턴 boolean

CheckApp() 공개 메소드

检查应用是否安装并启用
public CheckApp ( string $name ) : boolean
$name string 应用ID(插件或主题)
리턴 boolean

CheckGzip() 공개 메소드

检查并开启Gzip压缩
public CheckGzip ( )

CheckItemToNavbar() 공개 메소드

检查条目是否在导航菜单中
public CheckItemToNavbar ( string $type = 'item', $id ) : boolean
$type string
$id
리턴 boolean

CheckMemberByNameOrAliasExist() 공개 메소드

检查指定名称或别名的用户是否存在(不区分大小写)

CheckMemberNameExist() 공개 메소드

检查指定名称的用户是否存在(不区分大小写)
public CheckMemberNameExist ( $name )

CheckPlugin() 공개 메소드

检查应用是否安装并启用
public CheckPlugin ( string $name ) : boolean
$name string 应用(插件或主题)的ID
리턴 boolean

CheckRights() 공개 메소드

验证操作权限
public CheckRights ( string $action, $level = null ) : boolean
$action string 操作
리턴 boolean

CheckRightsByLevel() 공개 메소드

根据用户等级验证操作权限 1.5开始参数换顺序
public CheckRightsByLevel ( string $action, integer $level ) : boolean
$action string 操作
$level integer 用户等级
리턴 boolean

CheckSiteClosed() 공개 메소드

检测网站关闭
public CheckSiteClosed ( )

CheckTemplate() 공개 메소드

更新模板缓存
public CheckTemplate ( boolean $nobuild = false ) : true
$nobuild boolean 为真的话,只判断是否需要而不Build
리턴 true or false

CheckValidCode() 공개 메소드

比对验证码
public CheckValidCode ( string $vaidcode, string $id = '' ) : boolean
$vaidcode string 验证码数值
$id string 命名事件
리턴 boolean

CloseConnect() 공개 메소드

关闭数据库连接
public CloseConnect ( )

Config() 공개 메소드

获取Configs表值
public Config ( string $name ) : mixed
$name string Configs表名
리턴 mixed

ConvertTableAndDatainfo() 공개 메소드

对表名和数据结构进行预转换

ConvertTagIDtoString() 공개 메소드

通过数组array[111,333,444,555,666]转换成存储串
public ConvertTagIDtoString ( array $array ) : string
$array array 标签ID数组
리턴 string

DelBuildModule() 공개 메소드

删除模块
public DelBuildModule ( string $modfilename )
$modfilename string 模块名

DelConfig() 공개 메소드

删除Configs表
public DelConfig ( string $name ) : boolean
$name string Configs表名
리턴 boolean

DelItemToNavbar() 공개 메소드

删除导航菜单中相应条目
public DelItemToNavbar ( string $type = 'item', $id )
$type string
$id

EndSession() 공개 메소드

终止session
public EndSession ( ) : boolean
리턴 boolean

GetAction_Title() 공개 메소드

public GetAction_Title ( $name )

GetArticleList() 공개 메소드

public GetArticleList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null, boolean $readtags = true ) : array
$select null
$where null
$order null
$limit null
$option null
$readtags boolean
리턴 array

GetCategoryByAlias() 공개 메소드

通过分类别名获取分类实例
public GetCategoryByAlias ( string $name, $backKey = null ) : Category
$name string
리턴 Category

GetCategoryByAliasOrName() 공개 메소드

与老版本保持兼容函数
public GetCategoryByAliasOrName ( string $name ) : Category
$name string
리턴 Category

GetCategoryByID() 공개 메소드

通过ID获取分类实例
public GetCategoryByID ( integer $id ) : Category
$id integer
리턴 Category

GetCategoryByName() 공개 메소드

通过分类名获取分类实例
public GetCategoryByName ( string $name ) : Category
$name string
리턴 Category

GetCategoryList() 공개 메소드

public GetCategoryList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetCmtKey() 공개 메소드

获取评论key
public GetCmtKey ( $id ) : string
$id
리턴 string

GetCommentByID() 공개 메소드

通过ID获取评论实例
public GetCommentByID ( integer $id ) : Comment
$id integer
리턴 Comment

GetCommentList() 공개 메소드

public GetCommentList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetHint() 공개 메소드

提取Cookie中的提示消息
public GetHint ( )

GetInstance() 공개 정적인 메소드

获取唯一实例
public static GetInstance ( ) : null | ZBlogPHP
리턴 null | ZBlogPHP

GetListCustom() 공개 메소드

查询指定数据结构的sql并返回Base对象列表
public GetListCustom ( string $table, string $datainfo, string $sql ) : array
$table string 数据表
$datainfo string 数据字段
$sql string SQL操作语句
리턴 array

GetListCustomByArray() 공개 메소드

查询ID数据的指定数据结构的sql并返回Base对象列表
public GetListCustomByArray ( string $table, string $datainfo, array $array ) : array
$table string 数据表
$datainfo string 数据字段
$array array ID数组
리턴 array

GetListType() 공개 메소드

已改名GetListType,1.5版中扔掉有歧义的GetList
public GetListType ( $type, $sql ) : array
$type
$sql
리턴 array

GetListTypeByArray() 공개 메소드

查询ID数据的指定类型的sql并返回指定类型对象列表
public GetListTypeByArray ( string $type, array $array ) : array
$type string 类型
$array array ID数组
리턴 array

GetMemberByID() 공개 메소드

通过ID获取用户实例
public GetMemberByID ( integer $id ) : Member
$id integer
리턴 Member

GetMemberByName() 공개 메소드

通过用户名获取用户实例(不区分大小写)
public GetMemberByName ( string $name ) : Member
$name string
리턴 Member

GetMemberByNameOrAlias() 공개 메소드

通过获取用户名或别名实例(不区分大小写)
public GetMemberByNameOrAlias ( string $name ) : Member
$name string
리턴 Member

GetMemberList() 공개 메소드

public GetMemberList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetModuleByFileName() 공개 메소드

通过FileName获取模块实例
public GetModuleByFileName ( string $fn ) : Module
$fn string
리턴 Module

GetModuleByID() 공개 메소드

通过ID获取模块实例
public GetModuleByID ( integer $id ) : Module
$id integer
리턴 Module

GetModuleList() 공개 메소드

public GetModuleList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetPageList() 공개 메소드

public GetPageList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetPostByArray() 공개 메소드

通过ID数组获取文章实例
public GetPostByArray ( array $array ) : array
$array array
리턴 array Posts

GetPostByID() 공개 메소드

通过ID获取文章实例
public GetPostByID ( integer $id ) : Post
$id integer
리턴 Post

GetPostList() 공개 메소드

public GetPostList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetPostType_Name() 공개 메소드

public GetPostType_Name ( $typeid )

GetPostType_Template() 공개 메소드

public GetPostType_Template ( $typeid )

GetPostType_UrlRule() 공개 메소드

public GetPostType_UrlRule ( $typeid )

GetPreActivePlugin() 공개 메소드

获取预激活插件名数组
public GetPreActivePlugin ( )

GetSomeThing() 공개 메소드

获取数据通用函数
public GetSomeThing ( $object, $attr, $argu, $className = null )
$object 缓存对象(string / object)
$attr 欲查找的属性
$argu 查找内容
$className 对象未找到初始化内容

GetTagByAlias() 공개 메소드

通过tag名获取tag实例
public GetTagByAlias ( string $name, $backKey = null ) : Tag
$name string
리턴 Tag

GetTagByAliasOrName() 공개 메소드

通过tag名获取tag实例
public GetTagByAliasOrName ( string $name ) : Tag
$name string
리턴 Tag

GetTagByID() 공개 메소드

通过ID获取tag实例
public GetTagByID ( integer $id ) : Tag
$id integer
리턴 Tag

GetTagList() 공개 메소드

public GetTagList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

GetToken() 공개 메소드

获取会话Token
public GetToken ( $s = '' ) : string
$s
리턴 string

GetTopArticle() 공개 메소드

获取全部置顶文章(优先从cache里读数组)
public GetTopArticle ( )

GetUploadByID() 공개 메소드

通过ID获取附件实例
public GetUploadByID ( integer $id ) : Upload
$id integer
리턴 Upload

GetUploadList() 공개 메소드

public GetUploadList ( null $select = null, null $where = null, null $order = null, null $limit = null, null $option = null ) : array
$select null
$where null
$order null
$limit null
$option null
리턴 array

HasConfig() 공개 메소드

查某Config是否存在
public HasConfig ( string $name ) : boolean
$name string Configs表名
리턴 boolean

Initialize() 공개 메소드

初始化$zbp
public Initialize ( ) : boolean
리턴 boolean

InitializeDB() 공개 정적인 메소드

初始化数据库连接
public static InitializeDB ( string $type ) : object
$type string 数据连接类型
리턴 object or null

Load() 공개 메소드

载入
public Load ( ) : boolean
리턴 boolean

LoadApp() 공개 메소드

载入指定应用
public LoadApp ( string $type, string $id ) : App
$type string 应用类型(theme|plugin)
$id string 应用ID
리턴 App

LoadCache() 공개 메소드

加载缓存
public LoadCache ( ) : boolean
리턴 boolean

LoadCategorys() 공개 메소드

载入分类列表
public LoadCategorys ( ) : boolean
리턴 boolean

LoadConfigs() 공개 메소드

载入插件Configs表
public LoadConfigs ( )

LoadLanguage() 공개 메소드

载入指定应用语言包
public LoadLanguage ( string $type, string $id, $default = '' ) : null
$type string 应用类型(system|theme|plugin)
$id string 应用ID
리턴 null

LoadManage() 공개 메소드

载入管理
public LoadManage ( )

LoadMembers() 공개 메소드

载入用户列表
public LoadMembers ( $level )

LoadModules() 공개 메소드

载入模块列表
public LoadModules ( ) : null
리턴 null

LoadOption() 공개 메소드

载入配置
public LoadOption ( ) : boolean
리턴 boolean

LoadPlugins() 공개 메소드

载入插件列表
public LoadPlugins ( )

LoadTags() 공개 메소드

载入标签列表
public LoadTags ( )

LoadTagsByIDString() 공개 메소드

通过类似'{1}{2}{3}{4}'载入tags
public LoadTagsByIDString ( $s ) : array
$s
리턴 array

LoadTagsByNameString() 공개 메소드

通过类似'aaa,bbb,ccc,ddd'载入tags
public LoadTagsByNameString ( string $s ) : array
$s string 标签名字符串,如'aaa,bbb,ccc,ddd
리턴 array

LoadThemes() 공개 메소드

载入主题列表
public LoadThemes ( )

OpenConnect() 공개 메소드

连接数据库
public OpenConnect ( ) : boolean
리턴 boolean

PrepareTemplate() 공개 메소드

创建模板对象,预加载已编译模板
public PrepareTemplate ( string $theme = null ) : Template
$theme string 指定主题名
리턴 Template

RedirectInstall() 공개 메소드

跳转到安装页面
public RedirectInstall ( )

RedirectPermanentDomain() 공개 메소드

检测当前url,如果不符合设置就跳转到固定域名的链接

RegAction() 공개 메소드

注册Action
public RegAction ( $name, $level, $title )

RegBuildModule() 공개 메소드

重建模块
public RegBuildModule ( string $modfilename, string $userfunc )
$modfilename string 模块名
$userfunc string 用户函数

RegPostType() 공개 메소드

注册PostType int $typeid 系统定义在0-99,插件自定义100-255 string $urlrule 默认是取Page类型的Url Rule string $template 默认模板名page
public RegPostType ( $typeid, $name, $urlrule = '', $template = 'page' )

ReloadLanguages() 공개 메소드

重新读取语言包
public ReloadLanguages ( string $default ) : null
$default string 默认语言
리턴 null

SaveCache() 공개 메소드

保存缓存
public SaveCache ( ) : boolean
리턴 boolean

SaveConfig() 공개 메소드

保存Configs表
public SaveConfig ( string $name ) : boolean
$name string Configs表名
리턴 boolean

SaveOption() 공개 메소드

保存配置
public SaveOption ( ) : boolean
리턴 boolean

SetHint() 공개 메소드

设置提示消息并存入Cookie
public SetHint ( string $signal, string $content = '' )
$signal string 提示类型(good|bad|tips)
$content string 提示内容

ShowError() 공개 메소드

显示错误信息
public ShowError ( string/int $errorText, null $file = null, null $line = null ) : mixed
$errorText string/int
$file null
$line null
리턴 mixed

ShowHint() 공개 메소드

显示提示消息
public ShowHint ( string $signal, string $content = '' )
$signal string 提示类型(good|bad|tips)
$content string 提示内容

ShowValidCode() 공개 메소드

显示验证码
public ShowValidCode ( string $id = '' ) : mixed
$id string 命名事件
리턴 mixed

StartGzip() 공개 메소드

启用Gzip
public StartGzip ( )

StartSession() 공개 메소드

启用session
public StartSession ( ) : boolean
리턴 boolean

Terminate() 공개 메소드

终止连接,释放资源
public Terminate ( )

ValidCmtKey() 공개 메소드

验证评论key
public ValidCmtKey ( $id, $key ) : boolean
$id
$key
리턴 boolean

ValidToken() 공개 메소드

验证会话Token
public ValidToken ( $t, $s = '' ) : boolean
$t
$s
리턴 boolean

Verify() 공개 메소드

验证用户登录(COOKIE中的用户名密码)
public Verify ( ) : boolean
리턴 boolean

Verify_Final() 공개 메소드

验证用户登录(数据库保存的最终运算后密码)
public Verify_Final ( string $name, string $password, object &$member = null ) : boolean
$name string 用户名
$password string 二次加密后的密码
$member object 返回读取成功的member对象
리턴 boolean

Verify_MD5() 공개 메소드

验证用户登录(一次MD5密码)
public Verify_MD5 ( string $name, string $md5pw, object &$member = null ) : boolean
$name string 用户名
$md5pw string md5加密后的密码
$member object 返回读取成功的member对象
리턴 boolean

Verify_MD5Path() 공개 메소드

验证用户登录(MD5加zbp->guid盐后的密码)
public Verify_MD5Path ( string $name, string $ps_path_hash, object &$member = null ) : boolean
$name string 用户名
$ps_path_hash string MD5加zbp->guid盐后的密码
$member object 返回读取成功的member对象
리턴 boolean

Verify_Original() 공개 메소드

验证用户登录(原始明文密码)
public Verify_Original ( string $name, string $originalpw, object &$member = null ) : boolean
$name string 用户名
$originalpw string 密码明文
$member object 返回读取成功的member对象
리턴 boolean

__call() 공개 메소드

public __call ( $method, $args ) : mixed
$method
$args
리턴 mixed

__construct() 공개 메소드

构造函数,加载基本配置到$zbp
public __construct ( )

__destruct() 공개 메소드

析构函数,释放资源
public __destruct ( )

__get() 공개 메소드

获取参数值
public __get ( $name ) : mixed
$name
리턴 mixed

__set() 공개 메소드

设置参数值
public __set ( $name, $value ) : mixed
$name
$value
리턴 mixed

get_results() 공개 메소드

public get_results ( $sql ) : mixed
$sql
리턴 mixed

프로퍼티 상세

$action 공개적으로 프로퍼티

当前操作
public $action

$actions 공개적으로 프로퍼티

操作列表
public $actions

$activeapps 공개적으로 프로퍼티

public $activeapps

$activedapps 공개적으로 프로퍼티

激活的插件列表
public $activedapps

$ajaxurl 공개적으로 프로퍼티

public null $ajaxurl
리턴 null

$cache 공개적으로 프로퍼티

缓存
public $cache

$categories 공개적으로 프로퍼티

public $categories

$categoriesbyorder 공개적으로 프로퍼티

public $categoriesbyorder

$categorys 공개적으로 프로퍼티

分类数组
public $categorys

$categorysbyorder 공개적으로 프로퍼티

分类数组(已排序)
public $categorysbyorder

$commentdisplaycount 공개적으로 프로퍼티

评论显示数量
public $commentdisplaycount

$comments 공개적으로 프로퍼티

评论数组
public $comments

$configs 공개적으로 프로퍼티

配置选项
public $configs

$cookiespath 공개적으로 프로퍼티

cookie作用域
public $cookiespath

$currenturl 공개적으로 프로퍼티

当前链接
public $currenturl

$datainfo 공개적으로 프로퍼티

数据表信息
public $datainfo

$db 공개적으로 프로퍼티

数据库
public $db

$displaycount 공개적으로 프로퍼티

文章列表显示条数
public $displaycount

$feedurl 공개적으로 프로퍼티

public null $feedurl
리턴 null

$guid 공개적으로 프로퍼티

guid
public $guid

$header 공개적으로 프로퍼티

模板头部
public $header

$host 공개적으로 프로퍼티

域名
public $host

$ishttps 공개적으로 프로퍼티

#是否开启gzip
public $ishttps

$ismanage 공개적으로 프로퍼티

#是否使用session
public $ismanage

$lang 공개적으로 프로퍼티

语言
public $lang

$langpacklist 공개적으로 프로퍼티

语言包list
public $langpacklist

$managecount 공개적으로 프로퍼티

管理页面显示条数
public $managecount

$members 공개적으로 프로퍼티

用户数组
public $members

$membersbyname 공개적으로 프로퍼티

用户数组(以用户名为键)
public $membersbyname

$modules 공개적으로 프로퍼티

模块数组
public $modules

$modulesbyfilename 공개적으로 프로퍼티

模块数组(以文件名为键)
public $modulesbyfilename

$name 공개적으로 프로퍼티

网站名
public $name

$option 공개적으로 프로퍼티

配置选项
public $option

$pagebarcount 공개적으로 프로퍼티

页码显示条数
public $pagebarcount

$path 공개적으로 프로퍼티

路径
public $path

$posts 공개적으로 프로퍼티

文章列表数组
public $posts

$posttype 공개적으로 프로퍼티

类型序列
public $posttype

$searchcount 공개적으로 프로퍼티

搜索返回条数
public $searchcount

$searchurl 공개적으로 프로퍼티

public null $searchurl
리턴 null

$socialcomment 공개적으로 프로퍼티

社会化评论
public $socialcomment

$style 공개적으로 프로퍼티

当前主题风格
public $style

$subname 공개적으로 프로퍼티

网站子标题
public $subname

$table 공개적으로 프로퍼티

数据表
public $table

$tags 공개적으로 프로퍼티

标签数组
public $tags

$tagsbyname 공개적으로 프로퍼티

标签数组(以标签名为键)
public $tagsbyname

$template 공개적으로 프로퍼티

当前模板
public $template

$theme 공개적으로 프로퍼티

当前主题
public $theme

$themeinfo 공개적으로 프로퍼티

public $themeinfo

$title 공개적으로 프로퍼티

当前页面标题
public $title

$user 공개적으로 프로퍼티

当前用户
public $user

$usersdir 공개적으로 프로퍼티

用户目录
public $usersdir

$validcodeurl 공개적으로 프로퍼티

验证码地址
public $validcodeurl

$version 공개적으로 프로퍼티

版本号
public $version

$xmlrpcurl 공개적으로 프로퍼티

public null $xmlrpcurl
리턴 null