function preRun ()
  {
    $firstRendering = !$this->renderCount++;
    if ($this->isVisible ()) {
      if ($firstRendering) {
        $this->applyPresetsOnSelf ();
        $this->setupFirstRun ();
      }
      else $this->setupRepeatedRun ();
      $this->databind ();       // This is done on the data binding context of the component's parent.
      if ($firstRendering) {
        $this->createView ();
        $this->setupView ();
      }
      $this->afterPreRun ();   // Here, composite components may setup its view model and data binder.
    }
  }
function preRun ()
  {
    $firstRendering = !$this->renderCount++;
    if ($this->isVisible ()) {
      if ($firstRendering) {
        $this->applyPresetsOnSelf ();
        $this->setupFirstRun ();
      }
      else $this->setupRepeatedRun ();
      $this->databind ();       // This is done on the data binding context of the component's parent.
      if ($firstRendering) {
        $this->createView ();
        $this->setupView ();
      }
      $this->afterPreRun ();   // Here, composite components may setup its view model and data binder.
    }
  }
function preRun ( ) { $ firstRendering = ! $ this -> renderCount ++ ; if ( $ this -> isVisible ( ) ) { if ( $ firstRendering ) { $ this -> applyPresetsOnSelf ( ) ; $ this -> setupFirstRun ( ) ; } else $ this -> setupRepeatedRun ( ) ; $ this -> databind ( ) ; // This is done on the data binding context of the component's parent. if ( $ firstRendering ) { $ this -> createView ( ) ; $ this -> setupView ( ) ; } $ this -> afterPreRun ( ) ; // Here, composite components may setup its view model and data binder. } }
Performs all setup required for rendering the component.

<p>After a call to this method, the component is ready to be rendered.
Performs all setup required for rendering the component .