CrossArray
in package
Tags
Table of Contents
- $data : array<string|int, mixed>
- $instance : self
- arrayToObject() : object|string
- 数组转对象
- get() : bool|string|array<string|int, mixed>
- 获取配置参数
- getAll() : array<string|int, mixed>|object
- 返回全部数据
- init() : CrossArray
- set() : void
- 更新成员或赋值
- __construct() : mixed
- CrossArray
Properties
$data
protected
array<string|int, mixed>
$data
$instance
protected
static self
$instance
Methods
arrayToObject()
数组转对象
public
static arrayToObject( $data) : object|string
Parameters
Return values
object|string —get()
获取配置参数
public
get(string $config[, string|array<string|int, mixed> $name = '' ]) : bool|string|array<string|int, mixed>
Parameters
- $config : string
- $name : string|array<string|int, mixed> = ''
Return values
bool|string|array<string|int, mixed> —getAll()
返回全部数据
public
getAll([bool $obj = false ]) : array<string|int, mixed>|object
Parameters
- $obj : bool = false
-
是否返回对象
Return values
array<string|int, mixed>|object —init()
public
static init(array<string|int, mixed> &$data[, string|null $cacheKey = null ]) : CrossArray
Parameters
- $data : array<string|int, mixed>
- $cacheKey : string|null = null
Return values
CrossArray —set()
更新成员或赋值
public
set(string $index[, string|array<string|int, mixed> $values = '' ]) : void
Parameters
- $index : string
- $values : string|array<string|int, mixed> = ''
Return values
void —__construct()
CrossArray
private
__construct(array<string|int, mixed> &$data) : mixed
Parameters
- $data : array<string|int, mixed>