Example #1
0
	/**
	 * @return void
	 */
	protected function validateParent(IComponentContainer $parent)
	{
		parent::validateParent($parent);
		$this->monitor('NPresenter');
	}
Example #2
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     $this->monitor('NPresenter');
     parent::__construct($parent, $name);
 }
Example #3
0
	/**
	 * 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;
	}