Swat/SwatWidgetCellRenderer.php
public function init()
    {
        $replicators = null;

        $form = $this->getForm();
        if ($form !== null && $form->isSubmitted()) {
            $replicators = $form->getHiddenField(
                $this->getReplicatorFieldName()
            );

            if ($replicators !== null) {
                foreach ($replicators as $replicator) {
                    $this->createClonedWidget($replicator);
                }
            }
        }

        if ($replicators === null) {
            $this->prototype_widget->init();
        }
    }
public function init()
    {
        $replicators = null;

        $form = $this->getForm();
        if ($form !== null && $form->isSubmitted()) {
            $replicators = $form->getHiddenField(
                $this->getReplicatorFieldName()
            );

            if ($replicators !== null) {
                foreach ($replicators as $replicator) {
                    $this->createClonedWidget($replicator);
                }
            }
        }

        if ($replicators === null) {
            $this->prototype_widget->init();
        }
    }
public function init ( ) { $ replicators = null ; $ form = $ this -> getForm ( ) ; if ( $ form !== null && $ form -> isSubmitted ( ) ) { $ replicators = $ form -> getHiddenField ( $ this -> getReplicatorFieldName ( ) ) ; if ( $ replicators !== null ) { foreach ( $ replicators as $ replicator ) { $ this -> createClonedWidget ( $ replicator ) ; } } } if ( $ replicators === null ) { $ this -> prototype_widget -> init ( ) ; } }
Initializes this cell renderer

This calls {@link SwatWidget::init()} on this renderer's widget.
Initializes this cell renderer