Class JButtonStandard

Description

Renders a standard button

  • since: 11.1

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

JObject
   |
   --JButton
      |
      --JButtonStandard
Variable Summary
string $_name
Method Summary
string fetchButton ([string $type = 'Standard'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true])
string fetchId ([string $type = 'Standard'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
string _getCommand (string $name, string $task, boolean $list)
Variables
string $_name = 'Standard' (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 41)

Fetch the HTML for the button

  • return: HTML string for the button
  • since: 11.1
  • access: public
string fetchButton ([string $type = 'Standard'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true])
  • string $type: Unused string.
  • string $name: The name of the button icon class.
  • string $text: Button text.
  • string $task: Task associated with the button.
  • boolean $list: True to allow lists

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

Get the button CSS Id

  • return: Button CSS Id
  • since: 11.1
  • access: public
string fetchId ([string $type = 'Standard'], [string $name = ''], [string $text = ''], [string $task = ''], [boolean $list = true], [boolean $hideMenu = false])
  • string $type: Unused string.
  • 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 86)

Get the JavaScript command for the button

  • return: JavaScript command string
  • since: 11.1
  • access: protected
string _getCommand (string $name, string $task, boolean $list)
  • string $name: The task name as seen by the user
  • 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:59:46 -0500 by phpDocumentor 1.4.4