StructureBackwardConverter
Table of Contents
Methods
-
__construct()
: mixed
-
checkInactiveEmployees()
: string
-
checkParent()
: Node|null
-
clearOldStructureCache()
: void
-
convert()
: bool
-
createBackwardAccessCode()
: void
-
getCompanyStructureId()
: int|null
-
installDeputyHeadRole()
: string
-
moveEmployees()
: string
-
moveEmployeesToDepartments()
: bool
-
reSyncStructureTree()
: void
-
startDefaultConverting()
: string
-
updateInactiveEmployees()
: bool
__construct()
public
__construct([NodeService|null $nodeService = null ][, StructureRepository|null $structureRepository = null ][, NodeMemberRepository|null $nodeMemberRepository = null ][, RoleRepository|null $roleRepository = null ][, NodeRepository|null $nodeRepository = null ][, StructureWalkerService|null $structureWalkerService = null ][, Logger|null $logger = null ]) : mixed
Parameters
-
$nodeService
: NodeService|null
= null
-
-
$structureRepository
: StructureRepository|null
= null
-
-
$nodeMemberRepository
: NodeMemberRepository|null
= null
-
-
$roleRepository
: RoleRepository|null
= null
-
-
$nodeRepository
: NodeRepository|null
= null
-
-
$structureWalkerService
: StructureWalkerService|null
= null
-
-
$logger
: Logger|null
= null
-
checkInactiveEmployees()
public
static checkInactiveEmployees([int $limit = 20 ][, int $offset = 0 ]) : string
Parameters
-
$limit
: int
= 20
-
-
$offset
: int
= 0
-
checkParent()
public
checkParent(mixed $oldDepartmentId, mixed $oldStructure, Structure|null $structure) : Node|null
Parameters
-
$oldDepartmentId
: mixed
-
-
$oldStructure
: mixed
-
-
$structure
: Structure|null
-
-
throws
-
CreationFailedException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
clearOldStructureCache()
public
clearOldStructureCache() : void
convert()
public
convert() : bool
-
throws
-
CreationFailedException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
createBackwardAccessCode()
public
createBackwardAccessCode(Node $newNode, int $oldNodeId) : void
Parameters
-
$newNode
: Node
-
-
$oldNodeId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
getCompanyStructureId()
public
getCompanyStructureId() : int|null
-
throws
-
ElementNotFoundException
installDeputyHeadRole()
public
static installDeputyHeadRole() : string
moveEmployees()
public
static moveEmployees([int $limit = 20 ][, int $offset = 0 ]) : string
Parameters
-
$limit
: int
= 20
-
-
$offset
: int
= 0
-
moveEmployeesToDepartments()
public
moveEmployeesToDepartments([int $limit = 20 ][, int $offset = 0 ]) : bool
Parameters
-
$limit
: int
= 20
-
-
$offset
: int
= 0
-
-
throws
-
CompanyStructureNotFoundException
-
throws
-
CreationFailedException
-
throws
-
ElementNotFoundException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
reSyncStructureTree()
public
reSyncStructureTree() : void
startDefaultConverting()
public
static startDefaultConverting() : string
updateInactiveEmployees()
public
updateInactiveEmployees([int $limit = 20 ][, int $offset = 0 ]) : bool
Parameters
-
$limit
: int
= 20
-
-
$offset
: int
= 0
-
-
throws
-
CompanyStructureNotFoundException
-
throws
-
CreationFailedException
-
throws
-
ElementNotFoundException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException