コード例 #1
0
	/**
	 */
	public function __construct(Nette\IComponentContainer $parent = NULL, $name = NULL)
	{
		$this->monitor('Nette\Application\Presenter');
		parent::__construct($parent, $name);
	}
コード例 #2
0
ファイル: FormContainer.php プロジェクト: JanTvrdik/nette
 /**
  * Adds the specified component to the IComponentContainer.
  * @param  IComponent
  * @param  string
  * @param  string
  * @return void
  * @throws \InvalidStateException
  */
 public function addComponent(Nette\IComponent $component, $name, $insertBefore = NULL)
 {
     parent::addComponent($component, $name, $insertBefore);
     if ($this->currentGroup !== NULL && $component instanceof IFormControl) {
         $this->currentGroup->add($component);
     }
 }