getData('unitTree'); $depTree = $this->getData('departmentTree'); $posTree = $this->getData('positionTree'); $unitRoot = $unitTree[null][0]['children']; // units // departments // positions ?>
getParent()->getId()]['index'] = $unitTree[null][$unitEle['obj']->getParent()->getId()]['index'] + 1; ?> getId(); ?>
getName(); ?>
getParent()->getId()]['index'] = $depTree[$unitId][$depEle['obj']->getParent()->getId()]['index'] + 1; ?>
getName(); ?>
    getId(); $posRoot = !isset($posTree[$depId]) ? [] : $posTree[$depId]; foreach ($posRoot as $posEle) : ?> getParent()->getId()])) { // here is a bug or somewhere else... the index is not moved correctly $c is always 0 $posTree[$depId][$posEle['obj']->getParent()->getId()]['index'] = $posTree[$depId][$posEle['obj']->getParent()->getId()]['index'] + $c + 1; } $c = 0; while (!empty($posEle)) { ?>
  • getName(); ?>
getParent(); $parentDepId = $parentDep->getId(); } while ($parentDepId !== 0 && !isset($depTree[$unitId][$parentDepId]['children'][($depTree[$unitId][$parentDepId]['index'] ?? 0) + 1]) ); } $depEle = $depEle['children'][0] ?? []; } // if no more children go back to parrent?> ', $toCloseDep*2); ?>
getParent(); $parentUnitId = $parentUnit->getId(); } while ($parentUnitId !== 0 && !isset($unitTree[null][$parentUnitId]['children'][($unitTree[null][$parentUnitId]['index'] ?? 0) + 1]) ); } $unitEle = $unitEle['children'][0] ?? []; } // if no more children go back to parrent?> ', $toCloseUnit*2); ?>