phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Bootstrap Class Reference
+ Inheritance diagram for Bootstrap:

Public Member Functions

 __construct ($autoCompile=true)
 
 htmlButton ($identifier, $value="", $cssStyle=null, $onClick=null)
 Return a new Bootstrap Html Button.
 
 htmlGlyphButton ($identifier, $glyphIcon=0, $value="", $cssStyle=NULL, $onClick=NULL)
 Return a new Bootstrap Html Glyphbutton.
 
 htmlButtongroups ($identifier, $values=array(), $cssStyle=NULL, $size=NULL)
 Return a new Bootstrap Html Buttongroups.
 
 htmlDropdown ($identifier, $value="", $items=array(), $cssStyle=NULL, $size=NULL)
 Return a new Bootstrap Html Dropdown.
 
 htmlButtontoolbar ($identifier, $elements=array(), $cssStyle=NULL, $size=NULL)
 Return a new Bootstrap Html Dropdown.
 
 htmlNavbar ($identifier, $brand="Brand", $brandHref="#")
 Return a new Bootstrap Html Navbar.
 
 htmlProgressbar ($identifier, $style="info", $value=0, $max=100, $min=0)
 Return a new Bootstrap Html Progressbar.
 
 htmlPanel ($identifier, $content=NULL, $header=NULL, $footer=NULL)
 Return a new Bootstrap Html Panel.
 
 htmlAlert ($identifier, $message=NULL, $cssStyle="alert-warning")
 Return a new Bootstrap Html Alert.
 
 htmlAccordion ($identifier)
 Return a new Bootstrap Accordion.
 
 htmlCarousel ($identifier, $images=NULL)
 Return a new Bootstrap Html Carousel.
 
 htmlTabs ($identifier)
 Return a new Bootstrap Html tabs.
 
 htmlListgroup ($identifier, $items=array(), $tagName="ul")
 Return a new Bootstrap Html listGroup.
 
 htmlModal ($identifier, $title="", $content="", $buttonCaptions=array())
 Return a new Bootstrap Html modal dialog.
 
 htmlSplitbutton ($identifier, $value="", $items=array(), $cssStyle="btn-default", $onClick=NULL)
 Return a new Bootstrap Html SplitButton.
 
 htmlInputgroup ($identifier)
 Return a new Bootstrap Html InputGroup.
 
 htmlBreadcrumbs ($identifier, $elements=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL)
 Return a new Bootstrap Html Breadcrumbs.
 
 htmlPagination ($identifier, $from=1, $to=1, $active=NULL, $countVisible=NULL)
 Return a new Bootstrap Html Pagination.
 
 htmlGridSystem ($identifier, $numRows=1, $numCols=NULL)
 Return a new Bootstrap Html Grid system.
 
- Public Member Functions inherited from BaseGui
 isAutoCompile ()
 
 setAutoCompile ($autoCompile)
 
 compile ($internal=false)
 
 setJs (JsUtils $js)
 
 addComponent (SimpleComponent $component, $attachTo, $params)
 
 addHtmlComponent (BaseHtml $htmlComponent)
 
 compileHtml (JsUtils $js=NULL, &$view=NULL)
 
 matchHtmlComponents ($callback)
 
 getHtmlComponent ($identifier)
 
- Public Member Functions inherited from BootstrapComponentsTrait
 addComponent (SimpleComponent $component, $attachTo, $params)
 
 generic ($attachTo=NULL, $params=NULL)
 
 modal ($attachTo=NULL, $params=NULL)
 
 tooltip ($attachTo=NULL, $params=NULL)
 
 popover ($attachTo=NULL, $params=NULL)
 
 dropdown ($attachTo=NULL, $params=NULL)
 
 splitbutton ($attachTo=NULL, $params=NULL)
 
 tab ($attachTo=NULL, $params=NULL)
 
 collapse ($attachTo=NULL, $params=NULL)
 
 carousel ($attachTo=NULL, $params=NULL)
 

Additional Inherited Members

- Protected Attributes inherited from BaseGui
 $autoCompile
 
 $components
 
 $htmlComponents
 
 $js
 

Detailed Description

Definition at line 27 of file Bootstrap.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $autoCompile = true)

Reimplemented from BaseGui.

Definition at line 28 of file Bootstrap.php.

Member Function Documentation

◆ htmlAccordion()

htmlAccordion (   $identifier)

Return a new Bootstrap Accordion.

Parameters
string$identifier
Returns
HtmlAccordion

Definition at line 145 of file Bootstrap.php.

◆ htmlAlert()

htmlAlert (   $identifier,
  $message = NULL,
  $cssStyle = "alert-warning" 
)

Return a new Bootstrap Html Alert.

Parameters
string$identifier
string$message
string$cssStyle
Returns
HtmlAlert

Definition at line 136 of file Bootstrap.php.

◆ htmlBreadcrumbs()

htmlBreadcrumbs (   $identifier,
  $elements = array(),
  $autoActive = true,
  $startIndex = 0,
  $hrefFunction = NULL 
)

Return a new Bootstrap Html Breadcrumbs.

Parameters
string$identifier
array$elements
boolean$autoActivesets the last element's class to active if true. default : true
callable$hrefFunctionthe function who generates the href elements. default : function($e){return $e->getContent()}
Returns
HtmlBreadcrumbs

Definition at line 221 of file Bootstrap.php.

◆ htmlButton()

htmlButton (   $identifier,
  $value = "",
  $cssStyle = null,
  $onClick = null 
)

Return a new Bootstrap Html Button.

Parameters
string$identifier
string$value
string$cssStyle
string$onClick
Returns
HtmlButton

Definition at line 41 of file Bootstrap.php.

◆ htmlButtongroups()

htmlButtongroups (   $identifier,
  $values = array(),
  $cssStyle = NULL,
  $size = NULL 
)

Return a new Bootstrap Html Buttongroups.

Parameters
string$identifier
array$values
string$cssStyle
string$size
Returns
HtmlButtongroups

Definition at line 66 of file Bootstrap.php.

◆ htmlButtontoolbar()

htmlButtontoolbar (   $identifier,
  $elements = array(),
  $cssStyle = NULL,
  $size = NULL 
)

Return a new Bootstrap Html Dropdown.

Parameters
string$identifier
array$elements
string$cssStyle
string$size
Returns
HtmlButtontoolbar

Definition at line 90 of file Bootstrap.php.

◆ htmlCarousel()

htmlCarousel (   $identifier,
  $images = NULL 
)

Return a new Bootstrap Html Carousel.

Parameters
string$identifier
array$images[(src=>"",alt=>"",caption=>"",description=>""),...]
Returns
HtmlCarousel

Definition at line 155 of file Bootstrap.php.

◆ htmlDropdown()

htmlDropdown (   $identifier,
  $value = "",
  $items = array(),
  $cssStyle = NULL,
  $size = NULL 
)

Return a new Bootstrap Html Dropdown.

Parameters
string$identifier
array$items
string$cssStyle
string$size
Returns
HtmlDropdown

Definition at line 78 of file Bootstrap.php.

◆ htmlGlyphButton()

htmlGlyphButton (   $identifier,
  $glyphIcon = 0,
  $value = "",
  $cssStyle = NULL,
  $onClick = NULL 
)

Return a new Bootstrap Html Glyphbutton.

Parameters
string$identifier
mixed$glyphIcon
string$value
string$cssStyle
string$onClick
Returns
HtmlGlyphButton

Definition at line 54 of file Bootstrap.php.

◆ htmlGridSystem()

htmlGridSystem (   $identifier,
  $numRows = 1,
  $numCols = NULL 
)

Return a new Bootstrap Html Grid system.

See also
http://getbootstrap.com/css/#grid
Parameters
string$identifier
int$numRows
int$numCols
Returns
HtmlGridSystem

Definition at line 246 of file Bootstrap.php.

◆ htmlInputgroup()

htmlInputgroup (   $identifier)

Return a new Bootstrap Html InputGroup.

Parameters
string$identifier
Returns
HtmlInputgroup

Definition at line 209 of file Bootstrap.php.

◆ htmlListgroup()

htmlListgroup (   $identifier,
  $items = array(),
  $tagName = "ul" 
)

Return a new Bootstrap Html listGroup.

Parameters
string$identifier
array$itemsarray of items to add
string$tagNamecontainer tagName
Returns
HtmlListgroup

Definition at line 174 of file Bootstrap.php.

◆ htmlModal()

htmlModal (   $identifier,
  $title = "",
  $content = "",
  $buttonCaptions = array() 
)

Return a new Bootstrap Html modal dialog.

Parameters
string$identifier
string$title
string$content
array$buttonCaptions
Returns
HtmlModal

Definition at line 187 of file Bootstrap.php.

◆ htmlNavbar()

htmlNavbar (   $identifier,
  $brand = "Brand",
  $brandHref = "#" 
)

Return a new Bootstrap Html Navbar.

Parameters
string$identifier
string$brand
string$brandHref
Returns
HtmlNavbar

Definition at line 101 of file Bootstrap.php.

◆ htmlPagination()

htmlPagination (   $identifier,
  $from = 1,
  $to = 1,
  $active = NULL,
  $countVisible = NULL 
)

Return a new Bootstrap Html Pagination.

See also
http://getbootstrap.com/components/#pagination
Parameters
string$identifier
int$fromdefault : 1
int$todefault : 1
int$activeThe active page
Returns
HtmlPagination

Definition at line 234 of file Bootstrap.php.

◆ htmlPanel()

htmlPanel (   $identifier,
  $content = NULL,
  $header = NULL,
  $footer = NULL 
)

Return a new Bootstrap Html Panel.

Parameters
string$identifierthe Html identifier of the element
mixed$contentthe panel content (string or HtmlComponent)
string$headerthe header
string$footerthe footer
Returns
HtmlPanel

Definition at line 125 of file Bootstrap.php.

◆ htmlProgressbar()

htmlProgressbar (   $identifier,
  $style = "info",
  $value = 0,
  $max = 100,
  $min = 0 
)

Return a new Bootstrap Html Progressbar.

Parameters
string$identifier
string$value
string$max
string$min
Returns
HtmlProgressbar

Definition at line 113 of file Bootstrap.php.

◆ htmlSplitbutton()

htmlSplitbutton (   $identifier,
  $value = "",
  $items = array(),
  $cssStyle = "btn-default",
  $onClick = NULL 
)

Return a new Bootstrap Html SplitButton.

Parameters
string$identifier
string$value
array$items
string$cssStyle
string$onClick
Returns
HtmlSplitbutton

Definition at line 200 of file Bootstrap.php.

◆ htmlTabs()

htmlTabs (   $identifier)

Return a new Bootstrap Html tabs.

Parameters
string$identifier
Returns
HtmlTabs

Definition at line 164 of file Bootstrap.php.


The documentation for this class was generated from the following file: