HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]

Class: HTML_Progress_DM

Source Location: /HTML_Progress-1.2.0RC3/Progress/DM.php

Class Overview


The HTML_Progress_DM class handles any mathematical issues arising from assigning faulty values.


Author(s):

Version:

  • 1.2.0

Methods


Child classes:

TimerProgress
The HTML_Progress_DM class handles any mathematical issues arising from assigning faulty values.

Inherited Variables

Inherited Methods


Class Details

[line 32]
The HTML_Progress_DM class handles any mathematical issues arising from assigning faulty values.


[ Top ]


Method Detail

HTML_Progress_DM (Constructor)   [line 117]

HTML_Progress_DM HTML_Progress_DM( )

The data model class constructor

Constructor Summary

  • Creates a progress mathematical model with a minimum value set to 0, a maximum value set to 100, and a increment value set to +1. By default, the value is initialized to be equal to the minimum value.
    1.    $html = new HTML_Progress_DM();
  • Creates a progress mathematical model with minimum and maximum set to specified values, and a increment value set to +1. By default, the value is initialized to be equal to the minimum value.
    1.    $html = new HTML_Progress_DM($min$max);
  • Creates a progress mathematical model with minimum, maximum and increment set to specified values. By default, the value is initialized to be equal to the minimum value.
    1.    $html = new HTML_Progress_DM($min$max$inc);

  • Since: 1.0
  • Throws: HTML_PROGRESS_ERROR_INVALID_INPUT
  • Access: public

[ Top ]

getIncrement   [line 356]

integer getIncrement( )

Returns the progress bar's increment value. The default value is +1.

[ Top ]

getMaximum   [line 299]

integer getMaximum( )

Returns the progress bar's maximum value. The default value is 100.

[ Top ]

getMinimum   [line 242]

integer getMinimum( )

Returns the progress bar's minimum value. The default value is 0.

[ Top ]

getPercentComplete   [line 474]

float getPercentComplete( )

Returns the percent complete for the progress bar. Note that this number is between 0.00 and 1.00.

[ Top ]

getValue   [line 403]

integer getValue( )

Returns the progress bar's current value. The value is always between the minimum and maximum values, inclusive.

By default, the value is initialized with the minimum value.


[ Top ]

incValue   [line 457]

void incValue( )

Updates the progress bar's current value by adding increment value.

[ Top ]

setIncrement   [line 373]

void setIncrement( integer $inc)

Sets the progress bar's increment value.

Parameters:

integer   $inc   —  progress bar's increment value

[ Top ]

setMaximum   [line 316]

void setMaximum( integer $max)

Sets the progress bar's maximum value.

Parameters:

integer   $max   —  progress bar's maximal value

[ Top ]

setMinimum   [line 259]

void setMinimum( integer $min)

Sets the progress bar's minimum value.

Parameters:

integer   $min   —  progress bar's minimal value

[ Top ]

setValue   [line 422]

void setValue( integer $val)

Sets the progress bar's current value.

If the new value is different from previous value, all change listeners are notified.


Parameters:

integer   $val   —  progress bar's current value

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:52:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.