Actions

API15

Difference between revisions of "JButtonLink/fetchButton"

From Joomla! Documentation

< API15:JButtonLink
(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JButtonLink/fetc...)
 
m (removing red link to edit, no existant pages)
 
Line 1: Line 1:
 
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JButtonLink/fetchButton|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JButtonLink/fetchButton}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 56: Line 55:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JButtonLink/fetchButton|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JButtonLink/fetchButton}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 71: Line 70:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Latest revision as of 07:47, 12 May 2013

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.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Contents

Syntax

fetchButton($type='Link', $name= 'back', $text= '', $url=null)
Parameter Name Default Value Description
$type 'Link'
$name 'back'
$text
$url null

Defined in

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

Importing

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

Source Body

function fetchButton( $type='Link', $name = 'back', $text = '', $url = null )
{
        $text   = JText::_($text);
        $class  = $this->fetchIconClass($name);
        $doTask = $this->_getCommand($url);
 
        $html   = "<a href=\"$doTask\">\n";
        $html .= "<span class=\"$class\" title=\"$text\">\n";
        $html .= "</span>\n";
        $html   .= "$text\n";
        $html   .= "</a>\n";
 
        return $html;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />