Class JButtonConfirm

Description

Renders a standard button with a confirm dialog

  • since: 11.1

Located in /libraries/joomla/html/toolbar/button/confirm.php (line 19)

JObject
   |
   --JButton
      |
      --JButtonConfirm
Variable Summary
string $_name
Method Summary
string fetchButton ([string $type = 'Confirm'], [string $msg = ''], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
string fetchId ([string $type = 'Confirm'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
string _getCommand (object $msg, string $name, string $task, boolean $list)
Variables
string $_name = 'Confirm' (line 26)

Button type

  • access: protected

Redefinition of:
JButton::$_name
element name

Inherited Variables

Inherited from JButton

JButton::$_parent

Inherited from JObject

JObject::$_errors
Methods
fetchButton (line 43)

Fetch the HTML for the button

  • return: HTML string for the button
  • since: 11.1
  • access: public
string fetchButton ([string $type = 'Confirm'], [string $msg = ''], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
  • string $type: Unused string.
  • string $msg: Message to render
  • string $name: Name to be used as apart of the id
  • string $text: Button text
  • string $task: The task associated with the button
  • boolean $list: True to allow use of lists
  • boolean $hideMenu: True to hide the menu on click

Redefinition of:
JButton::fetchButton()
Get the button
fetchId (line 73)

Get the button CSS Id

  • return: Button CSS Id
  • since: 11.1
  • access: public
string fetchId ([string $type = 'Confirm'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
  • string $type: Button type
  • string $name: Name to be used as apart of the id
  • string $text: Button text
  • string $task: The task associated with the button
  • boolean $list: True to allow use of lists
  • boolean $hideMenu: True to hide the menu on click
_getCommand (line 90)

Get the JavaScript command for the button

  • return: JavaScript command string
  • since: 11.1
  • access: protected
string _getCommand (object $msg, string $name, string $task, boolean $list)
  • object $msg: The message to display.
  • string $name: Not used.
  • string $task: The task used by the application
  • boolean $list: True is requires a list confirmation.

Inherited Methods

Inherited From JButton

JButton::__construct()
JButton::fetchButton()
JButton::fetchIconClass()
JButton::getName()
JButton::render()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:53:15 -0500 by phpDocumentor 1.4.4