Site logo file
API
Search
Phoca.cz Main Site
Phoca Cart
Phoca Cart Demo
Search
Search
Advanced Search
Projects
Joomla
Phoca Cart
Phoca Gallery
Phoca Download
Classes
AbstractAES
AbstractEvent
AbstractEvent
AbstractEvent
AbstractEvent
AbstractGroupButton
AbstractImmutableEvent
AbstractMenu
AbstractModuleDispatcher
AbstractRenderer
AbstractView
Access
Access
AccessiblemediaField
AccesslevelField
ActionButton
ActionsDropdown
Adapter
AdapterInstance
AddUserCommand
AddUserToGroupCommand
AdminController
AdministratorApplication
AdministratorMenu
AdministratorMenuItem
AdministratorRouter
AdminLanguage
AdminModel
Aes
AesInterface
AfterBindEvent
AfterCheckinEvent
AfterCheckoutEvent
AfterDeleteEvent
AfterExtensionBootEvent
AfterHitEvent
AfterLoadEvent
AfterMoveEvent
AfterPublishEvent
AfterReorderEvent
AfterResetEvent
AfterStoreEvent
AliastagField
ApcuStorage
ApiApplication
ApiController
ApiDispatcher
ApiMVCFactory
ApiRouter
ApiRouter
Application
ApplicationHelper
Argon2idHandler
Argon2iHandler
Asset
AssociationExtensionHelper
AssociationExtensionInterface
Associations
AssociationServiceInterface
AssociationServiceTrait
AtomParser
AtomRenderer
Authentication
Authentication
AuthenticationFailed
AuthenticationFailedExceptionHandler
AuthenticationHelper
AuthenticationResponse
AuthorField
Backgroundfill
Base32
BaseApplication
BaseController
BaseDatabaseModel
BaseLayout
BaseModel
BasicButton
BCryptHandler
BeforeBatchEvent
BeforeBindEvent
BeforeCheckinEvent
BeforeCheckoutEvent
BeforeDeleteEvent
BeforeExtensionBootEvent
BeforeHitEvent
BeforeLoadEvent
BeforeMoveEvent
BeforePublishEvent
BeforeReorderEvent
BeforeResetEvent
BeforeStoreEvent
Behavior
BooleanRule
BootableExtensionInterface
Bootstrap
Brightness
Browser
BufferStreamHandler
Cache
CacheConnectingException
CacheController
CacheController
CacheControllerFactory
CacheControllerFactoryInterface
CacheExceptionInterface
CachehandlerField
CacheStorage
CacheStorageHelper
CachingLanguageFactory
CalendarField
CalendarRule
CallbackController
CallbackLogger
Captcha
CaptchaField
CaptchaRule
Categories
CategoriesView
Category
Category
CategoryFactory
CategoryFactory
CategoryFactoryInterface
CategoryFeedView
CategoryField
CategoryInterface
CategoryNode
CategoryServiceInterface
CategoryServiceTrait
CategoryView
ChainedHandler
ChangeItem
Changelog
ChangeSet
ChangeUserPasswordCommand
CheckboxesField
CheckboxField
CheckEvent
CheckIfRehashNeededHandlerInterface
CheckinCheckout
CheckinCheckoutExceptionHandler
CheckJoomlaUpdatesCommand
CheckUpdatesCommand
ChromestyleField
ClassLoader
CleanCacheCommand
Cli
CliApplication
ClientHelper
CliInput
CliOutput
CliRenderer
CMSApplication
CMSApplicationInterface
CMSHelper
CMSObject
CMSPlugin
CMSWebApplicationInterface
CollectionAdapter
ColorField
ColorProcessor
ColorRule
ColorStyle
ComboField
Component
ComponentAdapter
ComponentDispatcher
ComponentDispatcherFactory
ComponentDispatcherFactory
ComponentDispatcherFactoryInterface
ComponentHelper
ComponentInterface
ComponentlayoutField
ComponentRecord
ComponentRenderer
ComponentsField
Config
ConfirmButton
Console
ConsoleApplication
ContainerAwareToolbarFactory
Content
Content
ContentHelper
ContentHistory
ContenthistoryField
ContentLanguage
ContentlanguageField
ContentType
ContenttypeField
Contrast
ControllerInterface
Cookie
CoreAssetItem
CoreButtonsTrait
CoreContent
Crypt
CryptoCipher
CssIdentifierRule
CssIdentifierSubstringRule
CurlTransport
CustomButton
DaemonApplication
Database
DatabaseAwareTrait
DatabaseconnectionField
DatabaseLogger
DatabaseModelInterface
Date
Date
Debug
DelegatingPsrLogger
DeleteUserCommand
Dispatcher
Dispatcher
DispatcherInterface
DisplayEvent
Document
Document
DocumentRenderer
DownloadSource
DraggableList
Dropdown
DropdownButton
DummyPlugin
EchoLogger
Edgedetect
Editor
EditorField
Email
EmailField
EmailRule
Emboss
EqualsRule
ErrorDocument
ErrorEvent
EventAware
EventAwareInterface
ExceptionHandler
ExistsRule
Extension
ExtensionAdapter
ExtensionDiscoverCommand
ExtensionDiscoverInstallCommand
ExtensionDiscoverListCommand
ExtensionHelper
ExtensionInstallCommand
ExtensionManagerInterface
ExtensionManagerTrait
ExtensionNamespaceMapper
ExtensionRemoveCommand
ExtensionsListCommand
Factory
Factory
FactoryInterface
FeaturedButton
Feed
FeedDocument
FeedEnclosure
FeedEntry
FeedFactory
FeedImage
FeedItem
FeedLink
FeedParser
FeedPerson
FeedRenderer
FieldsServiceInterface
File
FileAdapter
FileField
FileLayout
FilelistField
FilePathRule
Files
FileStorage
FilesystemHelper
FinderIndexCommand
Folder
FolderlistField
FolderPathExistsRule
Form
Form
Form
FormattedtextLogger
FormBehavior
FormBehaviorTrait
FormController
FormFactory
FormFactoryAwareInterface
FormFactoryAwareTrait
FormFactoryInterface
FormField
FormFilterInterface
FormHelper
FormModel
FormModelInterface
FormRule
FormValidateAssetItem
FormView
FrontendlanguageField
FtpClient
GenericDataException
GenericEvent
GetConfigurationCommand
Grayscale
Grid
GroupedlistField
HeadertagField
HeadRenderer
Help
HelpButton
HelperFactory
HelperFactory
HelperFactoryInterface
HiddenField
HtmlDocument
HTMLHelper
HTMLRegistry
HTMLRegistryAwareTrait
HtmlRenderer
HtmlView
Http
HttpBridgePostRequestMethod
HttpFactory
Icons
IdentityAware
Image
ImageDocument
ImageFilter
ImagelistField
ImmutableNodeInterface
ImmutableNodeTrait
InlinehelpButton
InMemoryLogger
Input
InputFilter
Installer
InstallerAdapter
InstallerExtension
InstallerHelper
InstallerScript
IntarrayFilter
IntegerField
InvalidActionException
InvalidParameterExceptionHandler
InvalidRouteExceptionHandler
ItemModel
ItemModelInterface
ItunesRssParser
JGrid
JoomlaSerializer
JoomlaStorage
Jquery
Json
JsonapiDocument
JsonapiRenderer
JsonApiView
JsonDocument
JsonRenderer
JsonResponse
JsonView
KeepaliveAssetItem
LangActiveAssetItem
Language
Language
Language
LanguageAdapter
LanguageFactory
LanguageFactoryInterface
LanguageField
LanguageHelper
LastvisitdaterangeField
LayoutHelper
LayoutInterface
LegacyComponent
LegacyComponentDispatcher
LegacyFactory
LegacyModelLoaderTrait
LibraryAdapter
LibraryHelper
LibraryManifest
LimitboxField
LinkButton
Links
ListField
ListHelper
ListModel
ListModelInterface
ListUserCommand
ListView
Log
LogEntry
Logger
Logger
LoggerRegistry
Mail
MailDisabledException
MailHelper
MailTemplate
Manifest
Mcrypt
MD5Handler
MediaField
MediaHelper
MediaRssParser
MemcachedStorage
Menu
Menu
Menu
MenuFactory
MenuFactoryInterface
MenuField
MenuItem
MenuitemField
MenuRules
MenuType
MessagequeueLogger
MessageRenderer
MetadataManager
MetadataManagerListener
MetasRenderer
MeterField
Microdata
MissingComponentException
ModelInterface
Module
Module
Module
ModuleAdapter
ModuleDispatcher
ModuleDispatcherFactory
ModuleDispatcherFactory
ModuleDispatcherFactoryInterface
ModuleHelper
ModuleInterface
ModulelayoutField
ModuleLayoutRule
ModuleorderField
ModulepositionField
ModuleRenderer
ModulesRenderer
ModuletagField
Multilanguage
MVCComponent
MVCFactory
MVCFactory
MVCFactoryAwareTrait
MVCFactoryInterface
MVCFactoryServiceInterface
MVCFactoryServiceTrait
MysqlChangeItem
NamespaceParserInterface
Negate
Nested
NodeInterface
NodeTrait
NomenuRules
NotAcceptable
NotAcceptableExceptionHandler
NotAllowed
NotAllowedExceptionHandler
NoteField
NotequalsRule
Number
NumberField
NumberRule
ObjectCreateEvent
OnGetApiAttributes
OnGetApiFields
OnGetApiRelation
OpensearchDocument
OpensearchImage
OpensearchUrl
OpenSSL
OptionsRule
OrderingField
OutputController
OutputFilter
PackageAdapter
PackageManifest
PageController
Pagination
PaginationObject
PasswordField
PasswordRule
Patcher
Path
Pathway
Pathway
PHPassHandler
PluginAdapter
PluginHelper
PluginInterface
PluginsField
PluginstatusField
PopupButton
PostgresqlChangeItem
PredefinedlistField
PreloadManager
PreloadManagerInterface
ProcessorInterface
Profiler
ProviderAwareAuthenticationPluginInterface
PublishedButton
PunycodeHelper
RadiobasicField
RadioField
Randval
RandValInterface
RangeField
RawDocument
RawFilter
RedirectStatusField
RedisStorage
RegistrationdaterangeField
Registry
RemoveOldFilesCommand
RemoveUserFromGroupCommand
RendererInterface
RendererInterface
ResourceNotFound
ResourceNotFoundExceptionHandler
Response
Route
RouteHelper
RouteNotFoundException
Router
RouterBase
RouterFactory
RouterFactory
RouterFactoryInterface
RouterInterface
RouterLegacy
RouterServiceInterface
RouterServiceTrait
RouterView
RouterViewConfiguration
RssParser
RssRenderer
Rule
Rules
RulesField
RulesFilter
RulesInterface
RulesRule
SafehtmlFilter
Save
SaveExceptionHandler
ScriptsRenderer
SearchTools
SectionNotFoundException
Select
SendEmail
SendEmailExceptionHandler
SeparatorButton
Session
Session
SessionFactory
SessionGcCommand
SessionhandlerField
SessionManager
SessionMetadataGcCommand
SetConfigurationCommand
SetNewTagsEvent
Sidebar
SiteApplication
SiteDownCommand
SiteMenu
SitePathway
SiteRouter
SiteUpCommand
Sketchy
Smooth
SocketTransport
SodiumCipher
SortableList
SpacerField
SqlField
SqlsrvChangeItem
StandardButton
StandardRules
StateBehaviorTrait
StatefulModelInterface
StatusField
Stdout
Stream
StreamString
StreamTransport
StringController
StringHelper
StylesRenderer
SubformField
SubformRule
SyslogLogger
Table
TableInterface
Tag
TagApiSerializerTrait
TagField
TaggableTableInterface
TaggableTableTrait
TagServiceInterface
TagServiceTrait
TagsHelper
TasksListCommand
TasksRunCommand
TasksStateCommand
Telephone
TelephoneField
TelFilter
TelRule
TemplateAdapter
TemplatestyleField
Text
TextareaField
TextField
TimeField
TimeRule
TimezoneField
Toolbar
Toolbar
ToolbarButton
ToolbarFactoryInterface
ToolbarHelper
Totp
TransitionButton
TransitionField
Transliterate
TransportInterface
Ucm
UCM
UCMBase
UCMContent
UCMType
UiTab
UnknownAssetException
UnparsableImageException
UnsatisfiedDependencyException
UnsetFilter
UnsupportedCacheException
UnsupportedStorageException
Update
Update
UpdateAdapter
UpdateCoreCommand
Updater
UpdateSite
Uri
UrlField
UrlFilter
UrlRule
User
User
User
User
UseractiveField
UserFactory
UserFactoryInterface
UserField
Usergroup
UsergrouplistField
UserGroupsHelper
UserHelper
UserIdRule
UsernameRule
UserstateField
Utility
Version
VersionableControllerTrait
VersionableModelTrait
VersionableTableInterface
Versioning
ViewController
ViewInterface
ViewLevel
W3cLogger
WebApplication
WebAssetAttachBehaviorInterface
WebAssetExceptionInterface
WebAssetItem
WebAssetItemInterface
WebAssetManager
WebAssetManagerInterface
WebAssetRegistry
WebAssetRegistry
WebAssetRegistryAssetChanged
WebAssetRegistryInterface
WincacheStorage
Workflow
WorkflowBehaviorTrait
WorkflowComponentSectionsField
WorkflowconditionField
WorkflowFunctionalityUsedEvent
WorkflowModelInterface
WorkflowPluginTrait
WorkflowServiceInterface
WorkflowServiceTrait
WorkflowStage
WorkflowstageField
WorkflowTransitionEvent
WritableContainerLoader
WritableLoaderInterface
Xml
XmlDocument
XmlRenderer
Methods
divider
preview
jooa11y
help
back
link
mediaManager
makeDefault
assign
addNew
publish
unpublish
archive
unarchive
edit
editHtml
editCss
delete
trash
apply
save
save2new
save2copy
checkin
cancel
preferences
versions
customHtml
You are here:
Home
Joomla
CoreButtonsTrait
⇦
Back to Joomla project (class list)
Class CoreButtonsTrait - list of methods
Enhance Toolbar class to add more pre-defined methods.
Package:
Joomla\CMS\Toolbar
Copyright:
(C) 2018 Open Source Matters, Inc.
License:
GNU General Public License version 2 or later; see LICENSE.txt
Located at:
Joomla/Toolbar/CoreButtonsTrait.php
Project:
Joomla
Method Summary
public \Joomla\CMS\Toolbar\Button\SeparatorButton
divider
(string
$text
=
''
)
Writes a divider between dropdown menu items.
Parameters
string
$text
The text of button.
Returns
\Joomla\CMS\Toolbar\Button\SeparatorButton
Since
4.0.0
Show source code of this method:
divider Source Code
public \Joomla\CMS\Toolbar\Button\PopupButton|\Joomla\CMS\Toolbar\Button\LinkButton
preview
(string
$url
, string
$text
=
'JGLOBAL_PREVIEW'
, mixed
$newWindow
=
false
)
Writes a preview button for a given option (opens a popup window).
Parameters
string
$url
The name of the popup file (excluding the file extension)
string
$text
The text of button.
bool
$newWindow
Whether to open the preview in _blank or just a modal
Returns
\Joomla\CMS\Toolbar\Button\PopupButton|\Joomla\CMS\Toolbar\Button\LinkButton
Since
4.0.0
Show source code of this method:
preview Source Code
public \Joomla\CMS\Toolbar\Button\PopupButton|\Joomla\CMS\Toolbar\Button\LinkButton
jooa11y
(string
$url
, string
$text
=
'JGLOBAL_JOOA11Y'
, mixed
$newWindow
=
false
)
Writes a jooa11y accessibility checker button for a given option (opens a popup window).
Parameters
string
$url
The url to open
string
$text
The text of button.
bool
$newWindow
Whether to open the preview in _blank or just a modal
Returns
\Joomla\CMS\Toolbar\Button\PopupButton|\Joomla\CMS\Toolbar\Button\LinkButton
Since
4.1.0
Show source code of this method:
jooa11y Source Code
public \Joomla\CMS\Toolbar\Button\HelpButton
help
(mixed
$ref
, mixed
$useComponent
=
false
, mixed
$url
=
null
, mixed
$component
=
null
)
Writes a help button for a given option (opens a popup window).
Parameters
string
$ref
The name of the popup file (excluding the file extension for an xml file).
bool
$useComponent
Use the help file in the component directory.
string
$url
Use this URL instead of any other.
string
$component
Name of component to get Help (null for current component)
Returns
\Joomla\CMS\Toolbar\Button\HelpButton
Since
4.0.0
Show source code of this method:
help Source Code
public \Joomla\CMS\Toolbar\Button\LinkButton
back
(string
$text
=
'JTOOLBAR_BACK'
)
Writes a cancel button that will go back to the previous page without doing any other operation.
Parameters
string
$text
The text of button.
Returns
\Joomla\CMS\Toolbar\Button\LinkButton
Since
4.0.0
Show source code of this method:
back Source Code
public \Joomla\CMS\Toolbar\Button\LinkButton
link
(string
$text
, string
$url
)
Creates a button to redirect to a link.
Parameters
string
$text
Button text.
string
$url
The link url.
Returns
\Joomla\CMS\Toolbar\Button\LinkButton
Since
4.0.0
Show source code of this method:
link Source Code
public \Joomla\CMS\Toolbar\Button\PopupButton
mediaManager
(string
$directory
, string
$text
=
'JTOOLBAR_UPLOAD'
)
Writes a media_manager button.
Parameters
string
$directory
The subdirectory to upload the media to.
string
$text
An override for the alt text.
Returns
\Joomla\CMS\Toolbar\Button\PopupButton
Since
4.0.0
Show source code of this method:
mediaManager Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
makeDefault
(string
$task
, string
$text
=
'JTOOLBAR_DEFAULT'
)
Writes a common 'default' button for a record.
Parameters
string
$task
An override for the task.
string
$text
An override for the alt text.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
makeDefault Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
assign
(string
$task
, string
$text
=
'JTOOLBAR_ASSIGN'
)
Writes a common 'assign' button for a record.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
assign Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
addNew
(string
$task
, string
$text
=
'JTOOLBAR_NEW'
)
Writes the common 'new' icon for the button bar.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
addNew Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
publish
(string
$task
, string
$text
=
'JTOOLBAR_PUBLISH'
)
Writes a common 'publish' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
publish Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
unpublish
(string
$task
, string
$text
=
'JTOOLBAR_UNPUBLISH'
)
Writes a common 'unpublish' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
unpublish Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
archive
(string
$task
, string
$text
=
'JTOOLBAR_ARCHIVE'
)
Writes a common 'archive' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
archive Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
unarchive
(string
$task
, string
$text
=
'JTOOLBAR_UNARCHIVE'
)
Writes a common 'unarchive' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
unarchive Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
edit
(string
$task
, string
$text
=
'JTOOLBAR_EDIT'
)
Writes a common 'edit' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
edit Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
editHtml
(string
$task
, string
$text
=
'JTOOLBAR_EDIT_HTML'
)
Writes a common 'editHtml' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
editHtml Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
editCss
(string
$task
, string
$text
=
'JTOOLBAR_EDIT_CSS'
)
Writes a common 'editCss' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
editCss Source Code
public \Joomla\CMS\Toolbar\Button\ConfirmButton
delete
(string
$task
, string
$text
=
'JTOOLBAR_DELETE'
)
Writes a common 'delete' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\ConfirmButton
Since
4.0.0
Show source code of this method:
delete Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
trash
(string
$task
, string
$text
=
'JTOOLBAR_TRASH'
)
Writes a common 'trash' button.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
trash Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
apply
(string
$task
, string
$text
=
'JTOOLBAR_APPLY'
)
Writes a save button for a given option.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
apply Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
save
(string
$task
, string
$text
=
'JTOOLBAR_SAVE'
)
Writes a save button for a given option.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
save Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
save2new
(string
$task
, string
$text
=
'JTOOLBAR_SAVE_AND_NEW'
)
Writes a save and create new button for a given option.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
save2new Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
save2copy
(string
$task
, string
$text
=
'JTOOLBAR_SAVE_AS_COPY'
)
Writes a save as copy button for a given option.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
save2copy Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
checkin
(string
$task
, string
$text
=
'JTOOLBAR_CHECKIN'
)
Writes a checkin button for a given option.
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
checkin Source Code
public \Joomla\CMS\Toolbar\Button\StandardButton
cancel
(string
$task
, string
$text
=
'JTOOLBAR_CLOSE'
)
Writes a cancel button and invokes a cancel operation (eg a checkin).
Parameters
string
$task
The task name of this button.
string
$text
The text of this button.
Returns
\Joomla\CMS\Toolbar\Button\StandardButton
Since
4.0.0
Show source code of this method:
cancel Source Code
public \Joomla\CMS\Toolbar\Button\LinkButton
preferences
(string
$component
, string
$text
=
'JTOOLBAR_OPTIONS'
, string
$path
=
''
)
Writes a configuration button and invokes a cancel operation (eg a checkin).
Parameters
string
$component
The name of the component, eg, com_content.
string
$text
The text of this button.
string
$path
An alternative path for the configuration xml relative to JPATH_SITE.
Returns
\Joomla\CMS\Toolbar\Button\LinkButton
Since
4.0.0
Show source code of this method:
preferences Source Code
public \Joomla\CMS\Toolbar\Button\CustomButton
versions
(string
$typeAlias
, int
$itemId
, int
$height
=
800
, int
$width
=
500
, string
$text
=
'JTOOLBAR_VERSIONS'
)
Writes a version history
Parameters
string
$typeAlias
The component and type, for example 'com_content.article'
int
$itemId
The id of the item, for example the article id.
int
$height
The height of the popup.
int
$width
The width of the popup.
string
$text
The name of the button.
Returns
\Joomla\CMS\Toolbar\Button\CustomButton
Since
4.0.0
Show source code of this method:
versions Source Code
public \Joomla\CMS\Toolbar\Button\CustomButton
customHtml
(string
$html
, string
$name
=
'custom'
)
Writes a custom HTML to toolbar.
Parameters
string
$html
The HTML string to write.
string
$name
The button name.
Returns
\Joomla\CMS\Toolbar\Button\CustomButton
Since
4.0.0
Show source code of this method:
customHtml Source Code
Tags Summary
Since
4.0.0