Prado\Web\UI\WebControls\TWizard::addedWizardStep PHP Method

addedWizardStep() public method

This method should only be used by control developers. It is invoked when a step is added into the step collection of the wizard.
public addedWizardStep ( $step )
    public function addedWizardStep($step)
    {
        if (($wizard = $step->getWizard()) !== null) {
            $wizard->getWizardSteps()->remove($step);
        }
        $step->setWizard($this);
        $this->wizardStepsChanged();
    }

Usage Example

 /**
  * Inserts an item at the specified position.
  * This method overrides the parent implementation by checking if
  * the item being added is a {@link TWizardStep}.
  * @param integer the speicified position.
  * @param mixed new item
  * @throws TInvalidDataTypeException if the item being added is not TWizardStep.
  */
 public function insertAt($index, $item)
 {
     if ($item instanceof TWizardStep) {
         parent::insertAt($index, $item);
         $this->_wizard->getMultiView()->getViews()->insertAt($index, $item);
         $this->_wizard->addedWizardStep($item);
     } else {
         throw new TInvalidDataTypeException('wizardstepcollection_wizardstep_required');
     }
 }
TWizard