/** * naplni control optiony * @param LBoxFormControlChoose $control * @param LBoxConfigItemStructure $root * @param string $pre */ protected function fillControlChooseMoveBefore(LBoxFormControlChoose $control) { try { $iterator = $this->getPage() && $this->getPage()->config->hasParent() ? $this->getPage()->config->getParent()->getChildNodesIterator() : LBoxConfigManagerStructure::getInstance()->getIterator(); $control->addOption(new LBoxFormControlOption(0, " ")); foreach ($iterator as $page) { if ($this->getPage() && $page->id == $this->getPage()->id) { continue; } $control->addOption(new LBoxFormControlOption($page->id, $page->heading . " - " . $page->url)); } } catch (Exception $e) { throw $e; } }