Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Magická továrna na komponenty
- *
- * @param string $name
- * @return Nette\Forms\Container
- */
- protected function createComponent($name)
- {
- $firstControl = current($this->getComponents(FALSE, 'Nette\Forms\IControl'));
- $control = new Container;
- $control->currentGroup = $this->currentGroup;
- $this->addComponent($name, $control, $firstControl);
- $this->factoryCallback->invoke($control);
- return $control;
- }
Advertisement
Add Comment
Please, Sign In to add comment