attached() protected method

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.
protected attached ( $obj ) : void
return void
Ejemplo n.º 1
0
 /**
  * @param TreeViewNode $node
  */
 protected function attached($node)
 {
     if ($this->presenterComponent === NULL) {
         $this->presenterComponent = $node->presenter;
     }
     parent::attached($node);
 }
Ejemplo n.º 2
0
 protected function attached($presenter)
 {
     if ($presenter instanceof Presenter) {
         $this->form->add('_signal', 'Arachne\\Forms\\Extension\\Application\\Type\\SignalType', ['mapped' => false, 'data' => $this->lookupPath('Nette\\Application\\UI\\Presenter') . self::NAME_SEPARATOR . 'submit']);
     }
     parent::attached($presenter);
 }