original_string: public function multiCheckbox($fieldName, $options, array $attributes = [])
      {
          $attributes += [
              'disabled' => null,
              'escape' => true,
              'hiddenField' => true,
              'secure' => true,
          ];
          $attributes = $this->_initInputField($fieldName, $attributes);
          $attributes['options'] = $options;
          $attributes['idPrefix'] = $this->_idPrefix;
  
          $hidden = '';
          if ($attributes['hiddenField']) {
              $hiddenAttributes = [
                  'name' => $attributes['name'],
                  'value' => '',
                  'secure' => false,
                  'disabled' => $attributes['disabled'] === true || $attributes['disabled'] === 'disabled',
              ];
              $hidden = $this->hidden($fieldName, $hiddenAttributes);
          }
          unset($attributes['hiddenField']);
  
          return $hidden . $this->widget('multicheckbox', $attributes);
      }
code: public function multiCheckbox($fieldName, $options, array $attributes = [])
      {
          $attributes += [
              'disabled' => null,
              'escape' => true,
              'hiddenField' => true,
              'secure' => true,
          ];
          $attributes = $this->_initInputField($fieldName, $attributes);
          $attributes['options'] = $options;
          $attributes['idPrefix'] = $this->_idPrefix;
  
          $hidden = '';
          if ($attributes['hiddenField']) {
              $hiddenAttributes = [
                  'name' => $attributes['name'],
                  'value' => '',
                  'secure' => false,
                  'disabled' => $attributes['disabled'] === true || $attributes['disabled'] === 'disabled',
              ];
              $hidden = $this->hidden($fieldName, $hiddenAttributes);
          }
          unset($attributes['hiddenField']);
  
          return $hidden . $this->widget('multicheckbox', $attributes);
      }
code_tokens: public function multiCheckbox ( $ fieldName , $ options , array $ attributes = [ ] ) { $ attributes += [ 'disabled' => null , 'escape' => true , 'hiddenField' => true , 'secure' => true , ] ; $ attributes = $ this -> _initInputField ( $ fieldName , $ attributes ) ; $ attributes [ 'options' ] = $ options ; $ attributes [ 'idPrefix' ] = $ this -> _idPrefix ; $ hidden = '' ; if ( $ attributes [ 'hiddenField' ] ) { $ hiddenAttributes = [ 'name' => $ attributes [ 'name' ] , 'value' => '' , 'secure' => false , 'disabled' => $ attributes [ 'disabled' ] === true || $ attributes [ 'disabled' ] === 'disabled' , ] ; $ hidden = $ this -> hidden ( $ fieldName , $ hiddenAttributes ) ; } unset ( $ attributes [ 'hiddenField' ] ) ; return $ hidden . $ this -> widget ( 'multicheckbox' , $ attributes ) ; }
docstring: Creates a set of checkboxes out of options.
  
  ### Options
  
  - `escape` - If true contents of options will be HTML entity encoded. Defaults to true.
  - `val` The selected value of the input.
  - `class` - When using multiple = checkbox the class name to apply to the divs. Defaults to 'checkbox'.
  - `disabled` - Control the disabled attribute. When creating checkboxes, `true` will disable all checkboxes.
  You can also set disabled to a list of values you want to disable when creating checkboxes.
  - `hiddenField` - Set to false to remove the hidden field that ensures a value
  is always submitted.
  - `label` - Either `false` to disable label around the widget or an array of attributes for
  the label tag. `selected` will be added to any classes e.g. `'class' => 'myclass'` where
  widget is checked
  
  Can be used in place of a select box with the multiple attribute.
  
  @param string $fieldName Name attribute of the SELECT
  @param array|\Traversable $options Array of the OPTION elements
  (as 'value'=>'Text' pairs) to be used in the checkboxes element.
  @param array $attributes The HTML attributes of the select element.
  @return string Formatted SELECT element
  @see \Cake\View\Helper\FormHelper::select() for supported option formats.
docstring_tokens: Creates a set of checkboxes out of options .