PHP Class Model\Node

Inheritance: extends Core\Model\Model
Mostra file Open project: sendya/shadowsocks-panel Class Usage Examples

Public Properties

Property Type Description
$custom_method 状态
$id
$info 加密方式
$method Server地址
$name 节点id
$order 是否支持自定义加密 0-不可自定义 1-可自定义
$server 类型 0 普通 1 vip
$status 节点信息备注
$type 节点名称

Public Methods

Method Description
deleteNode ( $nodeId ) : boolean Delete node
getNodeArray ( $type ) : Node[] Get Node array
getNodeById ( $nodeId ) : mixed Get node by Id
getSupportCustomMethodArray ( ) : Node[] get support custom method node.

Method Details

deleteNode() public static method

Delete node
public static deleteNode ( $nodeId ) : boolean
$nodeId
return boolean

getNodeArray() public static method

Get Node array
public static getNodeArray ( $type ) : Node[]
$type
return Node[]

getNodeById() public static method

Get node by Id
public static getNodeById ( $nodeId ) : mixed
$nodeId
return mixed

getSupportCustomMethodArray() public static method

get support custom method node.
public static getSupportCustomMethodArray ( ) : Node[]
return Node[]

Property Details

$custom_method public_oe property

状态
public $custom_method

$id public_oe property

public $id

$info public_oe property

加密方式
public $info

$method public_oe property

Server地址
public $method

$name public_oe property

节点id
public $name

$order public_oe property

是否支持自定义加密 0-不可自定义 1-可自定义
public $order

$server public_oe property

类型 0 普通 1 vip
public $server

$status public_oe property

节点信息备注
public $status

$type public_oe property

节点名称
public $type