protected function prepareCheckboxes(array $boxes, $prefix)
    {
        foreach ($boxes as $box) {
            if (is_array($box)) {
                $this->prepareCheckboxes($box, $prefix);
            } else {
                /* @var $box Checkbox */
                $box->setName($prefix . $box->getName());
            }
        }
    }
protected function prepareCheckboxes(array $boxes, $prefix)
    {
        foreach ($boxes as $box) {
            if (is_array($box)) {
                $this->prepareCheckboxes($box, $prefix);
            } else {
                /* @var $box Checkbox */
                $box->setName($prefix . $box->getName());
            }
        }
    }
protected function prepareCheckboxes ( array $ boxes , $ prefix ) { foreach ( $ boxes as $ box ) { if ( is_array ( $ box ) ) { $ this -> prepareCheckboxes ( $ box , $ prefix ) ; } else { /* @var $box Checkbox */ $ box -> setName ( $ prefix . $ box -> getName ( ) ) ; } } }
Prepares the checkboxes prior to the rendering.

@internal This method is called recursivly for each array level.

@param array $boxes
@param       $prefix
Prepares the checkboxes prior to the rendering .