Properties

$type

$type : string

Type

string — 应用类型,'plugin'表示插件,'theme'表示主题

$id

$id : string

Type

string — 应用ID,必须以应用文件目录为ID

$name

$name : string

Type

string — 应用名

$url

$url : string

Type

string — 应用发布链接

$note

$note : string

Type

string — 应用说明

$description

$description : string

Type

string — 应用详细信息

$path

$path : string

Type

string — 管理页面路径

$include

$include : string

Type

string — include文件

$level

$level : integer

Type

integer — 应用权限等级

$author_name

$author_name : string

Type

string — 应用作者

$author_email

$author_email : string

Type

string — 作者邮箱

$author_url

$author_url : string

Type

string — 作者链接

$source_name

$source_name : string

Type

string — 原作者名

$source_email

$source_email : string

Type

string — 原作者邮箱

$source_url

$source_url : string

Type

string — 原作者链接

$adapted

$adapted : string

Type

string — 适用版本

$version

$version : string

Type

string — 版本号

$pubdate

$pubdate : string

Type

string — 发布时间

$modified

$modified : string

Type

string — 最后更新时间

$price

$price : string

Type

string — 应用价格

$advanced_dependency

$advanced_dependency : string

Type

string — 高级选项:依赖插件列表(以|分隔)

$advanced_rewritefunctions

$advanced_rewritefunctions : string

Type

string — 高级选项:重写函数列表(以|分隔)

$advanced_existsfunctions

$advanced_existsfunctions : string

Type

string — 高级选项:必须函数列表(以|分隔)

$advanced_conflict

$advanced_conflict : string

Type

string — 高级选项:冲突插件列表(以|分隔)

$sidebars_sidebar1

$sidebars_sidebar1 : string

Type

string — 设置主题侧栏1

$sidebars_sidebar2

$sidebars_sidebar2 : string

Type

string — 定义主题侧栏2

$sidebars_sidebar3

$sidebars_sidebar3 : string

Type

string — 设置主题侧栏3

$sidebars_sidebar4

$sidebars_sidebar4 : string

Type

string — 设置主题侧栏4

$sidebars_sidebar5

$sidebars_sidebar5 : string

Type

string — 设置主题侧栏5

$sidebars_sidebar6

$sidebars_sidebar6 : string

Type

string — 设置主题侧栏6

$sidebars_sidebar7

$sidebars_sidebar7 : string

Type

string — 定义主题侧栏7

$sidebars_sidebar8

$sidebars_sidebar8 : string

Type

string — 设置主题侧栏8

$sidebars_sidebar9

$sidebars_sidebar9 : string

Type

string — 设置主题侧栏9

$phpver

$phpver : string

Type

string — PHP最低版本

$ignore_files

$ignore_files : array

Type

array — 禁止打包文件glob

$isloaded

$isloaded : boolean

Type

boolean — 加载xml成功否

$check_error_count

$check_error_count : 

Type

$unpack_app

$unpack_app : 

Type

$dirs

$dirs : array

Type

array — 所有目录列表

$files

$files : array

Type

array — 所有文件列表

Methods

__get()

__get(  $key) 

Parameters

$key

GetInfoArray()

GetInfoArray() : array

得到详细信息数组.

Returns

array

CanDel()

CanDel() : boolean

是否可删除.

Returns

boolean

CanManage()

CanManage() : boolean

是否带管理页面.

Returns

boolean

IsUsed()

IsUsed() : boolean

是否正在使用.

Returns

boolean

HasPlugin()

HasPlugin() : boolean

是否附带主题插件(针对主题应用).

Returns

boolean

GetHash()

GetHash() : string

获取应用ID的crc32Hash值

Returns

string

GetManageUrl()

GetManageUrl() : string

获取应用管理页面链接.

Returns

string

GetDir()

GetDir() : string

获取应用目录地址

Returns

string

GetLogo()

GetLogo() : string

获取应用Logo图片地址

Returns

string

GetScreenshot()

GetScreenshot() : string

获取应用截图地址

Returns

string

GetCssFiles()

GetCssFiles() : array

获取应用(主题)样式文件列表.

Returns

array

LoadInfoByXml()

LoadInfoByXml(string  $type, string  $id) : boolean

载入应用xml中的信息.

Parameters

string $type

应用类型

string $id

应用ID

Returns

boolean

SaveInfoByXml()

SaveInfoByXml() : boolean

保存应用信息到xml文件.

Returns

boolean

Pack()

Pack() : string

应用打包.

Returns

string

PackGZip()

PackGZip() 

UnPack()

UnPack(  $xml) : boolean

解开应用包.

Parameters

$xml

Returns

boolean

CheckCompatibility()

CheckCompatibility() 

Throws

\Exception

Del()

Del() 

Delete app.

DelCompiled()

DelCompiled() 

Delete Compiled theme.

LoadSideBars()

LoadSideBars() 

LoadSideBars 从xml和cache里.

SaveSideBars()

SaveSideBars() 

SaveSideBars 保存到cache.

GetAllFileDir()

GetAllFileDir(string  $dir) 

Parameters

string $dir

获取所有目录及文件列表

IsPathIgnored()

IsPathIgnored(  $path) 

Parameters

$path