Actions

API15

JButtonConfirm/fetchButton

From Joomla! Documentation

< API15:JButtonConfirm
Revision as of 16:23, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton]

Description:JButtonConfirm/fetchButton

Contents

Syntax

fetchButton($type='Confirm', $msg='', $name= '', $text= '', $task= '', $list=true, $hideMenu=false)
Parameter Name Default Value Description
$type 'Confirm'
$msg
$name
$text
$task
$list true
$hideMenu false

Defined in

libraries/joomla/html/toolbar/button/confirm.php

Importing

jimport( 'joomla.html.toolbar.button.confirm' );

Source Body

function fetchButton( $type='Confirm', $msg='', $name = '', $text = '', $task = '', $list = true, $hideMenu = false )
{
        $text   = JText::_($text);
        $msg    = JText::_($msg, true);
        $class  = $this->fetchIconClass($name);
        $doTask = $this->_getCommand($msg, $name, $task, $list, $hideMenu);
 
        $html   = "<a href=\"#\" onclick=\"$doTask\" class=\"toolbar\">\n";
        $html .= "<span class=\"$class\" title=\"$text\">\n";
        $html .= "</span>\n";
        $html   .= "$text\n";
        $html   .= "</a>\n";
 
        return $html;
}

[Edit See Also] SeeAlso:JButtonConfirm/fetchButton

Examples

<CodeExamplesForm />