/** * Application form constructor. */ public function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct(); $this->monitor('NPresenter'); if ($parent !== NULL) { $parent->addComponent($this, $name); } }
/** */ public function __construct(IComponentContainer $parent = NULL, $name = NULL) { if ($parent !== NULL) { $parent->addComponent($this, $name); } elseif (is_string($name)) { $this->name = $name; } }