Class RtxDept
-
application\modules\message\utils\Rtx
-
application\modules\message\utils\RtxDept
Methods summary
public
|
#
__construct( type $server, type $port, type $logicName = 'USERMANAGER' )
构造rtx
Parameters
- $server
- rtx服务器地址
- $port
- 监听端口
- $logicName
- 逻辑名称,默认是:USERMANAGER
Overrides
|
public
boolean
|
#
addDept( type $parentDeptId, type $deptId, type $name, type $info )
新增加部门
Parameters
- $parentDeptId
- 父部门编号
- $deptId
- 部门编号
- $name
- 部门名称(中文需要GBK编码)
- $info
- 部门说明(中文需要GBK编码)
Returns
boolean 成功返回true
|
public
boolean
|
#
editDept( type $parentDeptId, type $deptId, type $name, type $info )
编辑部门
Parameters
- $parentDeptId
- 父部门编号
- $deptId
- 部门编号
- $name
- 部门名称(中文需要GBK编码)
- $info
- 部门说明(中文需要GBK编码)
Returns
boolean 成功返回true
|
public
boolean
|
#
deleteDept( integer $deptId )
删除部门
Parameters
Returns
boolean 成功返回true
|
public
boolean
|
#
isExistDept( type $deptName )
检查部门是否已经存在
Parameters
- $deptName
- 部门名称(中文需要GBK编码)
Returns
boolean 存在返回true
|