Overview

Namespaces

  • Cakestrap
    • View
      • Helper

Classes

  • AlertHelper
  • AssetHelper
  • BadgeHelper
  • Basic
  • ButtonItemsHelper
  • CakestrapHelper
  • CallOutHelper
  • CollapseHelper
  • DropdownHelper
  • ListGroupHelper
  • ModalHelper
  • PanelHelper
  • TabHelper
  • TableHelper
  • Templates
  • WellHelper
  • Overview
  • Namespace
  • Class

Class CollapseHelper

Flexible plugin that utilizes a handful of classes for easy toggle behavior.

<?php
echo $this->Cakestrap->Collapse()
                     ->title("Menu 1")
                     ->body("Menu 1 Content")
                     ->prepare()

                     ->title("Menu 2")
                     ->body("Menu 2 Content")
                     ->prepare()

                     ->set()
?>
Cake\View\Helper
Extended by Cakestrap\View\Helper\Basic
Extended by Cakestrap\View\Helper\CollapseHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/javascript/#collapse
Located at CollapseHelper.php
Methods summary
public string
# set( )

Set all defined values. This will return the final html template.

Set all defined values. This will return the final html template.

Returns

string
public object
# prepare( boolean $isActive = false )

Prepare the template content

Prepare the template content

Parameters

$isActive
Set item active or inactive

Returns

object
$this
protected
# _addToContainer( )

Add collapse items to parent container

Add collapse items to parent container

protected string
# _createId( )

Create string id based on collapse title

Create string id based on collapse title

Returns

string
$id
protected
# _setTitle( )

Set the Bootstrap collapse title

Set the Bootstrap collapse title

protected
# _setBody( )

Set the Bootstrap collapse body

Set the Bootstrap collapse body

protected array
# _contents( )

Set the Bootstrap collapse contents

Set the Bootstrap collapse contents

Returns

array
$contents
protected array
# _href( )

Set the href attribute of an element

Set the href attribute of an element

Returns

array
$href
Methods inherited from Cakestrap\View\Helper\Basic
__call(), _reset(), assignTemplate(), body(), options()
Magic methods summary
public
# title( string $title )

Parameters

$title

Returns

public
# body( string $body )

Parameters

$body

Returns

Properties summary
protected array $_options

Additional options for this helper

Additional options for this helper

# []
protected array $_prepare

Mark the content as new set

Mark the content as new set

# []
protected string $_active

Contain active string value

Contain active string value

# null
protected $_in
# null
Properties inherited from Cakestrap\View\Helper\Basic
$_clone, $_contents, $_stringTemplate, $_template
API documentation generated by ApiGen