Properties

$app

$app : \think\App

应用实例

Type

\think\App

$url

$url : string

Type

string

$page

$page : integer

Type

integer

$limit

$limit : integer

Type

integer

$order

$order : string

Type

string

$where

$where : array

Type

array

$contents

$contents : 

Type

$backtrack

$backtrack : 

Type

$key

$key : 

Type

$panel

$panel : 

Type

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

key()

key(string  $key) : $this

Parameters

string $key

Returns

$this

panel()

panel(string  $panel) : $this

Parameters

string $panel

Returns

$this

getCpuIoInfo()

getCpuIoInfo(string  $type = 'GetCpuIo', integer  $start_time, integer  $end_time) : mixed

获取监控信息

Parameters

string $type

类型 GetCpuIo = CPU信息/内存 GetDiskIo = 磁盘IO GetNetWorkIo = 网络IO

integer $start_time

开始时间

integer $end_time

结束时间

Returns

mixed

getSites()

getSites() : mixed

获取网站列表

Returns

mixed

getDatabases()

getDatabases() : mixed

获取数据库列表

Returns

mixed

getFirewalls()

getFirewalls() : mixed

获取防火墙

Returns

mixed

getLogs()

getLogs() : mixed

获取面板日志

Returns

mixed

getNews()

getNews() : mixed

获取消息通道

Returns

mixed

getCronTabs()

getCronTabs() : mixed

获取网站列表

Returns

mixed

getTypes()

getTypes() : mixed

获取网站分类

Returns

mixed

getSoFts()

getSoFts() : mixed

获取软件列表

Returns

mixed

getDiskInfo()

getDiskInfo() : mixed

获取硬盘信息

Returns

mixed

getSystemTotal()

getSystemTotal() : mixed

获取信息系统

Returns

mixed

getUserInfo()

getUserInfo() : mixed

获取用户信息

Returns

mixed

getNetWork()

getNetWork() : mixed

获取网络信息

Returns

mixed

getPlugin()

getPlugin() : mixed

获取插件信息

Returns

mixed

getSoft()

getSoft() : mixed

获取软件信息

Returns

mixed

getUpdatePanel()

getUpdatePanel() : mixed

获取更新信息

Returns

mixed

page()

page(integer  $is = 1) : $this

当前页码

Parameters

integer $is

Returns

$this

limit()

limit(integer  $is = 15) : $this

返回数量

Parameters

integer $is

Returns

$this

order()

order(string  $ss = 'id desc') : $this

排序

Parameters

string $ss

Returns

$this

toArray()

toArray() : array|mixed

返回Array

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

array|mixed

initialize()

initialize() : $this

初始化服务

Returns

$this

HttpPostCookie()

HttpPostCookie(string  $url, array  $data = array(), boolean  $is_json = true) : boolean|mixed|string

发起POST请求

Parameters

string $url

网址

array $data

数据

boolean $is_json

是否返回Json格式

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

boolean|mixed|string

getCountData()

getCountData(string  $str) : false|integer|string

获取总数

Parameters

string $str

Returns

false|integer|string

getConfig()

getConfig() : $this

获取配置信息

Returns

$this

getDataWithOrderOpt()

getDataWithOrderOpt() : $this

获取数据和总数

Returns

$this

getDataWithCount()

getDataWithCount() : $this

获取数据和总数

Returns

$this

getData()

getData() : $this

获取数据

Returns

$this

getHttp()

getHttp() : $this

发起网络请求

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this