PHP Class ZBlogPHP

Mostrar archivo Open project: zblogcn/zblogphp Class Usage Examples

Public Properties

Property Type Description
$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

Public Methods

Method Description
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

Private Methods

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

Method Details

AddBuildModule() public method

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

AddBuildModuleAll() public method

所有模块重置
public AddBuildModuleAll ( )

AddItemToNavbar() public method

向导航菜单添加相应条目
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 method

生成模块
public BuildModule ( )

BuildTemplate() public method

模板解析
public BuildTemplate ( ) : boolean
return boolean

CheckApp() public method

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

CheckGzip() public method

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

CheckItemToNavbar() public method

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

CheckMemberByNameOrAliasExist() public method

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

CheckMemberNameExist() public method

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

CheckPlugin() public method

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

CheckRights() public method

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

CheckRightsByLevel() public method

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

CheckSiteClosed() public method

检测网站关闭
public CheckSiteClosed ( )

CheckTemplate() public method

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

CheckValidCode() public method

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

CloseConnect() public method

关闭数据库连接
public CloseConnect ( )

Config() public method

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

ConvertTableAndDatainfo() public method

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

ConvertTagIDtoString() public method

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

DelBuildModule() public method

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

DelConfig() public method

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

DelItemToNavbar() public method

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

EndSession() public method

终止session
public EndSession ( ) : boolean
return boolean

GetAction_Title() public method

public GetAction_Title ( $name )

GetArticleList() public method

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
return array

GetCategoryByAlias() public method

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

GetCategoryByAliasOrName() public method

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

GetCategoryByID() public method

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

GetCategoryByName() public method

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

GetCategoryList() public method

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
return array

GetCmtKey() public method

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

GetCommentByID() public method

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

GetCommentList() public method

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
return array

GetHint() public method

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

GetInstance() public static method

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

GetListCustom() public method

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

GetListCustomByArray() public method

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

GetListType() public method

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

GetListTypeByArray() public method

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

GetMemberByID() public method

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

GetMemberByName() public method

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

GetMemberByNameOrAlias() public method

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

GetMemberList() public method

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
return array

GetModuleByFileName() public method

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

GetModuleByID() public method

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

GetModuleList() public method

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
return array

GetPageList() public method

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
return array

GetPostByArray() public method

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

GetPostByID() public method

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

GetPostList() public method

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
return array

GetPostType_Name() public method

public GetPostType_Name ( $typeid )

GetPostType_Template() public method

public GetPostType_Template ( $typeid )

GetPostType_UrlRule() public method

public GetPostType_UrlRule ( $typeid )

GetPreActivePlugin() public method

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

GetSomeThing() public method

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

GetTagByAlias() public method

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

GetTagByAliasOrName() public method

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

GetTagByID() public method

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

GetTagList() public method

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
return array

GetToken() public method

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

GetTopArticle() public method

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

GetUploadByID() public method

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

GetUploadList() public method

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
return array

HasConfig() public method

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

Initialize() public method

初始化$zbp
public Initialize ( ) : boolean
return boolean

InitializeDB() public static method

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

Load() public method

载入
public Load ( ) : boolean
return boolean

LoadApp() public method

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

LoadCache() public method

加载缓存
public LoadCache ( ) : boolean
return boolean

LoadCategorys() public method

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

LoadConfigs() public method

载入插件Configs表
public LoadConfigs ( )

LoadLanguage() public method

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

LoadManage() public method

载入管理
public LoadManage ( )

LoadMembers() public method

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

LoadModules() public method

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

LoadOption() public method

载入配置
public LoadOption ( ) : boolean
return boolean

LoadPlugins() public method

载入插件列表
public LoadPlugins ( )

LoadTags() public method

载入标签列表
public LoadTags ( )

LoadTagsByIDString() public method

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

LoadTagsByNameString() public method

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

LoadThemes() public method

载入主题列表
public LoadThemes ( )

OpenConnect() public method

连接数据库
public OpenConnect ( ) : boolean
return boolean

PrepareTemplate() public method

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

RedirectInstall() public method

跳转到安装页面
public RedirectInstall ( )

RedirectPermanentDomain() public method

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

RegAction() public method

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

RegBuildModule() public method

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

RegPostType() public method

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

ReloadLanguages() public method

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

SaveCache() public method

保存缓存
public SaveCache ( ) : boolean
return boolean

SaveConfig() public method

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

SaveOption() public method

保存配置
public SaveOption ( ) : boolean
return boolean

SetHint() public method

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

ShowError() public method

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

ShowHint() public method

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

ShowValidCode() public method

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

StartGzip() public method

启用Gzip
public StartGzip ( )

StartSession() public method

启用session
public StartSession ( ) : boolean
return boolean

Terminate() public method

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

ValidCmtKey() public method

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

ValidToken() public method

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

Verify() public method

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

Verify_Final() public method

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

Verify_MD5() public method

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

Verify_MD5Path() public method

验证用户登录(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对象
return boolean

Verify_Original() public method

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

__call() public method

public __call ( $method, $args ) : mixed
$method
$args
return mixed

__construct() public method

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

__destruct() public method

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

__get() public method

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

__set() public method

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

get_results() public method

public get_results ( $sql ) : mixed
$sql
return mixed

Property Details

$action public_oe property

当前操作
public $action

$actions public_oe property

操作列表
public $actions

$activeapps public_oe property

public $activeapps

$activedapps public_oe property

激活的插件列表
public $activedapps

$ajaxurl public_oe property

public null $ajaxurl
return null

$cache public_oe property

缓存
public $cache

$categories public_oe property

public $categories

$categoriesbyorder public_oe property

public $categoriesbyorder

$categorys public_oe property

分类数组
public $categorys

$categorysbyorder public_oe property

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

$commentdisplaycount public_oe property

评论显示数量
public $commentdisplaycount

$comments public_oe property

评论数组
public $comments

$configs public_oe property

配置选项
public $configs

$cookiespath public_oe property

cookie作用域
public $cookiespath

$currenturl public_oe property

当前链接
public $currenturl

$datainfo public_oe property

数据表信息
public $datainfo

$db public_oe property

数据库
public $db

$displaycount public_oe property

文章列表显示条数
public $displaycount

$feedurl public_oe property

public null $feedurl
return null

$guid public_oe property

guid
public $guid

$header public_oe property

模板头部
public $header

$host public_oe property

域名
public $host

$ishttps public_oe property

#是否开启gzip
public $ishttps

$ismanage public_oe property

#是否使用session
public $ismanage

$lang public_oe property

语言
public $lang

$langpacklist public_oe property

语言包list
public $langpacklist

$managecount public_oe property

管理页面显示条数
public $managecount

$members public_oe property

用户数组
public $members

$membersbyname public_oe property

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

$modules public_oe property

模块数组
public $modules

$modulesbyfilename public_oe property

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

$name public_oe property

网站名
public $name

$option public_oe property

配置选项
public $option

$pagebarcount public_oe property

页码显示条数
public $pagebarcount

$path public_oe property

路径
public $path

$posts public_oe property

文章列表数组
public $posts

$posttype public_oe property

类型序列
public $posttype

$searchcount public_oe property

搜索返回条数
public $searchcount

$searchurl public_oe property

public null $searchurl
return null

$socialcomment public_oe property

社会化评论
public $socialcomment

$style public_oe property

当前主题风格
public $style

$subname public_oe property

网站子标题
public $subname

$table public_oe property

数据表
public $table

$tags public_oe property

标签数组
public $tags

$tagsbyname public_oe property

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

$template public_oe property

当前模板
public $template

$theme public_oe property

当前主题
public $theme

$themeinfo public_oe property

public $themeinfo

$title public_oe property

当前页面标题
public $title

$user public_oe property

当前用户
public $user

$usersdir public_oe property

用户目录
public $usersdir

$validcodeurl public_oe property

验证码地址
public $validcodeurl

$version public_oe property

版本号
public $version

$xmlrpcurl public_oe property

public null $xmlrpcurl
return null