validateParent() protected method

Is called by a component when it is about to be set new parent. Descendant can override this method to disallow a parent change by throwing an Nette\InvalidStateException
protected validateParent ( Nette\ComponentModel\IContainer $parent ) : void
$parent Nette\ComponentModel\IContainer
return void
コード例 #1
0
ファイル: FormComponent.php プロジェクト: Arachne/Forms
 protected function validateParent(IContainer $parent)
 {
     parent::validateParent($parent);
     $this->monitor('Nette\\Application\\UI\\Presenter');
 }