PHP Class Model\Node

Inheritance: extends Core\Model\Model
Show 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 property

状态
public $custom_method

$id public property

public $id

$info public property

加密方式
public $info

$method public property

Server地址
public $method

$name public property

节点id
public $name

$order public property

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

$server public property

类型 0 普通 1 vip
public $server

$status public property

节点信息备注
public $status

$type public property

节点名称
public $type