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

Public Member Functions

 __construct ($identifier, $style="info", $value=0, $max=100, $min=0)
 
 setActive ($value)
 
 setStriped ($value)
 
 showCaption ($value)
 
 getValue ()
 
 stack (HtmlProgressbar $progressBar)
 
 setValue ($value)
 
 getMax ()
 
 setMax ($max)
 
 getMin ()
 
 setMin ($min)
 
 getStacked ()
 
 setStacked ($stacked)
 
 setStyle ($cssStyle)
 define the progressbar style avaible values : "success","info","warning","danger"
 
 compile (JsUtils $js=NULL, &$view=NULL)
 
 isStriped ()
 
 isActive ()
 
 fromDatabaseObject ($object, $function)
 
 getStyleLimits ()
 
 setStyleLimits ($styleLimits)
 Permet de modifier le style de la progressbar à partir de sa valeur actuelle $styleLimits est de la forme ["success"=>50, "warning"=>100] pour obtenir un style success de 0 à 50 et warning de 50 à 100.
 
- Public Member Functions inherited from HtmlBsDoubleElement
 addBadge ($caption, $leftSeparator=" ")
 
 addLabel ($caption, $style="label-default", $leftSeparator=" ")
 
 addGlyph ($glyphicon, $before=true)
 
 wrapContentWithGlyph ($glyphBefore, $glyphAfter="")
 
- Public Member Functions inherited from HtmlDoubleElement
 __construct ($identifier, $tagName="p")
 
 setContent ($content)
 
 getContent ()
 
 addContent ($content, $before=false)
 
 run (JsUtils $js)
 
Parameters
JsUtils$js
Returns
SimpleExtComponent
See also
\Ajax\common\html\BaseHtmlrun()

 
 wrapContent ($before, $after="")
 
 wrapWith (HtmlDoubleElement $container)
 Wraps the element with a container.
 
 getContentInstances ($class)
 
 asLink ($href=NULL, $target=NULL)
 Transforms the element into a link.
 
 getTextContent ()
 
 asEditable (HtmlFormField $field, $asForm=false, $setValueProperty="val()")
 
- Public Member Functions inherited from HtmlSingleElement
 setClass ($classNames)
 
 addClass ($classNames)
 
 setRole ($value)
 
 setTitle ($value)
 
 fromArray ($array)
 
 setSize ($size)
 
- Public Member Functions inherited from BaseHtml
 getTagName ()
 
 setTagName ($tagName)
 
 fromDatabaseObjects ($objects, $function)
 
 wrap ($before, $after="")
 
 getElementById ($identifier, $elements)
 
 getBsComponent ()
 
 setBsComponent ($bsComponent)
 
 setDraggable ($attr="id", $dropZone=null, $parameters=[])
 Sets the element draggable, and eventualy defines the dropzone (HTML5 drag and drop)
 
 asDropZone ($jsCallback="", $jqueryDone="append", $parameters=[])
 Declares the element as a drop zone (HTML5 drag and drop)
 
 asFileDropZone ($responseElement=null, $url=null, $progress=null, $jsCallback="", $parameters=[])
 Declares the element as a drop zone for file uploading (HTML5 drag and drop)
 
 __toString ()
 
 onPostCompile ($callback)
 
 onPreCompile ($callback)
 
- Public Member Functions inherited from BaseWidget
 __construct ($identifier)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 getLibraryId ()
 
 setLibraryId ($_libraryId)
 
- Public Member Functions inherited from BaseHtmlEventsTrait
 addEvent ($event, $jsCode, $stopPropagation=false, $preventDefault=false)
 
 trigger ($event, $params="[]")
 
 jsTrigger ($event, $params="[this]")
 
 _addEvent ($event, $jsCode)
 
 on ($event, $jsCode, $stopPropagation=false, $preventDefault=false)
 
 onClick ($jsCode, $stopPropagation=false, $preventDefault=true)
 
 setClick ($jsCode)
 
 onCreate ($jsCode)
 
 addEventsOnRun (JsUtils $js=NULL)
 
 _ajaxOn ($operation, $event, $url, $responseElement="", $parameters=array())
 
 getOn ($event, $url, $responseElement="", $parameters=array())
 Performs a get to $url on the event $event on $element and display it in $responseElement.
 
 getOnClick ($url, $responseElement="", $parameters=array())
 Performs a get to $url on the click event on $element and display it in $responseElement.
 
 postOn ($event, $url, $params="{}", $responseElement="", $parameters=array())
 Performs a post to $url on the event $event on $element and display it in $responseElement.
 
 postOnClick ($url, $params="{}", $responseElement="", $parameters=array())
 Performs a post to $url on the click event on $element and display it in $responseElement.
 
 postFormOn ($event, $url, $form, $responseElement="", $parameters=array())
 Performs a post form with ajax.
 
 postFormOnClick ($url, $form, $responseElement="", $parameters=array())
 Performs a post form with ajax on click.
 
 jsDoJquery ($jqueryCall, $param="")
 
 executeOnRun ($jsCode)
 
 jsHtml ($content="")
 
 jsShow ()
 
 jsHide ()
 
 jsToggle ($value)
 
 getEvents ()
 
- Public Member Functions inherited from BaseHtmlPropertiesTrait
 getProperties ()
 
 setProperties ($properties)
 
 setProperty ($name, $value)
 
 getProperty ($name)
 
 addToProperty ($name, $value, $separator=" ")
 
 addProperties ($properties)
 
 removePropertyValue ($name, $value)
 
 addToPropertyCtrl ($name, $value, $typeCtrl)
 
 addToPropertyCtrlCheck ($name, $value, $typeCtrl)
 
 removeProperty ($name)
 
 propertyContains ($propertyName, $value)
 

Protected Attributes

 $value
 
 $max
 
 $min
 
 $striped =""
 
 $active
 
 $caption
 
 $stacked =false
 
 $style =""
 
 $styleLimits =null
 
- Protected Attributes inherited from HtmlDoubleElement
 $content
 
 $wrapContentBefore = ""
 
 $wrapContentAfter = ""
 
 $_editableContent
 
- Protected Attributes inherited from BaseHtml
 $_template
 
 $tagName
 
 $_wrapBefore = array()
 
 $_wrapAfter = array()
 
 $_bsComponent
 
 $_compiled = false
 
 $_runned = false
 
 $_postCompile
 
 $_preCompile
 
- Protected Attributes inherited from BaseWidget
 $identifier
 
 $_identifier
 
 $_libraryId
 
 $_self
 
- Protected Attributes inherited from BaseHtmlEventsTrait
 $_events =array ()
 
- Protected Attributes inherited from BaseHtmlPropertiesTrait
 $properties =array ()
 

Additional Inherited Members

- Protected Member Functions inherited from HtmlDoubleElement
 _getContentInstances ($class, $content)
 
 compile_once (\Ajax\JsUtils $js=NULL, &$view=NULL)
 {}
 
- Protected Member Functions inherited from BaseHtml
 getTemplate (JsUtils $js=NULL, $view=null)
 
 ctrl ($name, $value, $typeCtrl)
 
 setMemberCtrl (&$name, $value, $typeCtrl)
 
 addToMemberUnique (&$name, $value, $typeCtrl, $separator=" ")
 
 addToMemberCtrl (&$name, $value, $typeCtrl, $separator=" ")
 
 addToMember (&$name, $value, $separator=' ')
 
 removeOldValues (&$oldValue, $allValues)
 
 _getElementBy ($callback, $elements)
 
 setWrapBefore ($wrapBefore)
 
 setWrapAfter ($wrapAfter)
 
 compile_once (JsUtils $js=NULL, &$view=NULL)
 
- Protected Member Functions inherited from BaseWidget
 cleanIdentifier ($id)
 
- Protected Member Functions inherited from BaseHtmlEventsTrait
 _eventsOnCreate (JsUtils $js=NULL)
 
- Protected Member Functions inherited from BaseHtmlPropertiesTrait
 removePropertyValues ($name, $values)
 
 addToPropertyUnique ($name, $value, $typeCtrl)
 
 setPropertyCtrl ($name, $value, $typeCtrl)
 
 getElementByPropertyValue ($propertyName, $value, $elements)
 

Detailed Description

Definition at line 11 of file HtmlProgressbar.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 22 of file HtmlProgressbar.php.

Member Function Documentation

◆ compile()

compile ( JsUtils  $js = NULL,
$view = NULL 
)

Reimplemented from BaseHtml.

Definition at line 135 of file HtmlProgressbar.php.

◆ fromDatabaseObject()

fromDatabaseObject (   $object,
  $function 
)

Reimplemented from BaseHtml.

Definition at line 163 of file HtmlProgressbar.php.

◆ getMax()

getMax ( )

Definition at line 94 of file HtmlProgressbar.php.

◆ getMin()

getMin ( )

Definition at line 103 of file HtmlProgressbar.php.

◆ getStacked()

getStacked ( )

Definition at line 112 of file HtmlProgressbar.php.

◆ getStyleLimits()

getStyleLimits ( )

Definition at line 167 of file HtmlProgressbar.php.

◆ getValue()

getValue ( )

Definition at line 73 of file HtmlProgressbar.php.

◆ isActive()

isActive ( )

Definition at line 156 of file HtmlProgressbar.php.

◆ isStriped()

isStriped ( )

Definition at line 152 of file HtmlProgressbar.php.

◆ setActive()

setActive (   $value)

Definition at line 31 of file HtmlProgressbar.php.

◆ setMax()

setMax (   $max)

Definition at line 98 of file HtmlProgressbar.php.

◆ setMin()

setMin (   $min)

Definition at line 107 of file HtmlProgressbar.php.

◆ setStacked()

setStacked (   $stacked)

Definition at line 116 of file HtmlProgressbar.php.

◆ setStriped()

setStriped (   $value)

Definition at line 45 of file HtmlProgressbar.php.

◆ setStyle()

setStyle (   $cssStyle)

define the progressbar style avaible values : "success","info","warning","danger"

Parameters
string | int$cssStyle
Returns
\Ajax\bootstrap\html\HtmlProgressbar default : ""

Reimplemented from HtmlSingleElement.

Definition at line 127 of file HtmlProgressbar.php.

◆ setStyleLimits()

setStyleLimits (   $styleLimits)

Permet de modifier le style de la progressbar à partir de sa valeur actuelle $styleLimits est de la forme ["success"=>50, "warning"=>100] pour obtenir un style success de 0 à 50 et warning de 50 à 100.

Parameters
array$styleLimitstableau associatif des couples style=>valeur possibles
Returns
\Ajax\bootstrap\html\HtmlProgressbar

Definition at line 177 of file HtmlProgressbar.php.

◆ setValue()

setValue (   $value)

Reimplemented from HtmlDoubleElement.

Definition at line 89 of file HtmlProgressbar.php.

◆ showCaption()

showCaption (   $value)

Definition at line 59 of file HtmlProgressbar.php.

◆ stack()

stack ( HtmlProgressbar  $progressBar)

Definition at line 77 of file HtmlProgressbar.php.

Field Documentation

◆ $active

$active
protected

Definition at line 16 of file HtmlProgressbar.php.

◆ $caption

$caption
protected

Definition at line 17 of file HtmlProgressbar.php.

◆ $max

$max
protected

Definition at line 13 of file HtmlProgressbar.php.

◆ $min

$min
protected

Definition at line 14 of file HtmlProgressbar.php.

◆ $stacked

$stacked =false
protected

Definition at line 18 of file HtmlProgressbar.php.

◆ $striped

$striped =""
protected

Definition at line 15 of file HtmlProgressbar.php.

◆ $style

$style =""
protected

Definition at line 19 of file HtmlProgressbar.php.

◆ $styleLimits

$styleLimits =null
protected

Definition at line 20 of file HtmlProgressbar.php.

◆ $value

$value
protected

Definition at line 12 of file HtmlProgressbar.php.


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