API15:JButtonLink/fetchButton/ja
出典: Joomla! ドキュメンテーション
目次 |
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; }
Examples
<CodeExamplesForm />
