コード例 #1
0
ファイル: PresenterComponent.php プロジェクト: krecek/nrsn
	/**
	 * @return void
	 */
	protected function validateParent(IComponentContainer $parent)
	{
		parent::validateParent($parent);
		$this->monitor('NPresenter');
	}
コード例 #2
0
ファイル: nette.php プロジェクト: kacer/FakturoidPairing
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     $this->monitor('NPresenter');
     parent::__construct($parent, $name);
 }
コード例 #3
0
ファイル: Container.php プロジェクト: krecek/nrsn
	/**
	 * Adds the specified component to the IContainer.
	 * @param  IComponent
	 * @param  string
	 * @param  string
	 * @return self
	 * @throws InvalidStateException
	 */
	public function addComponent(IComponent $component, $name, $insertBefore = NULL)
	{
		parent::addComponent($component, $name, $insertBefore);
		if ($this->currentGroup !== NULL && $component instanceof IFormControl) {
			$this->currentGroup->add($component);
		}
		return $this;
	}