protected function renderCheckboxes($checkboxes)
    {
        $markup = '';
        foreach ($checkboxes as $boxes) {
            $markup .= '<li class="disable-element">';
            if (is_array($boxes)) {
                if (isset($boxes['__all__'])) {
                    $markup .= $this->renderCheckbox($boxes['__all__'], 'disable-elements-toggle');
                    unset($boxes['__all__']);
                }

                $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>';
            } else {
                $markup .= $this->renderCheckbox($boxes);
            }
            $markup .= '</li>';
        }
        return $markup;
    }
protected function renderCheckboxes($checkboxes)
    {
        $markup = '';
        foreach ($checkboxes as $boxes) {
            $markup .= '<li class="disable-element">';
            if (is_array($boxes)) {
                if (isset($boxes['__all__'])) {
                    $markup .= $this->renderCheckbox($boxes['__all__'], 'disable-elements-toggle');
                    unset($boxes['__all__']);
                }

                $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>';
            } else {
                $markup .= $this->renderCheckbox($boxes);
            }
            $markup .= '</li>';
        }
        return $markup;
    }
protected function renderCheckboxes ( $ checkboxes ) { $ markup = '' ; foreach ( $ checkboxes as $ boxes ) { $ markup .= '<li class="disable-element">' ; if ( is_array ( $ boxes ) ) { if ( isset ( $ boxes [ '__all__' ] ) ) { $ markup .= $ this -> renderCheckbox ( $ boxes [ '__all__' ] , 'disable-elements-toggle' ) ; unset ( $ boxes [ '__all__' ] ) ; } $ markup .= '<ul class="disable-elements">' . $ this -> renderCheckboxes ( $ boxes ) . '</ul>' ; } else { $ markup .= $ this -> renderCheckbox ( $ boxes ) ; } $ markup .= '</li>' ; } return $ markup ; }
Recursively renders checkboxes.

@param array $checkboxes the checkboxes spec array

@return string
Recursively renders checkboxes .