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
__construct
prepareOptions
render
renderButton
fetchId
fetchIconClass
fetchButton
getParent
setParent
getOptions
setOptions
getOption
setOption
getName
name
getLayout
layout
ensureUniqueId
__call
findOptionName
getAccessors
You are here:
Home
Joomla
ToolbarButton
⇦
Back to Joomla project (class list)
Class ToolbarButton - list of methods
The ToolbarButton class.
Direct known subclasses
BasicButton
CustomButton
LinkButton
PopupButton
SeparatorButton
Package:
Joomla\CMS\Toolbar
Copyright:
(C) 2006 Open Source Matters, Inc.
License:
GNU General Public License version 2 or later; see LICENSE.txt
Located at:
Joomla/Toolbar/ToolbarButton.php
Project:
Joomla
Method Summary
public
__construct
(string
$name
=
''
, string
$text
=
''
, array
$options
=
[]
)
Init this class.
Parameters
string
$name
Name of this button.
string
$text
The button text, will auto translate.
array
$options
Button options.
Since
4.0.0
-
\InvalidArgumentException
Show source code of this method:
__construct Source Code
protected void
prepareOptions
(array
&$options
)
Prepare options for this button.
Parameters
array
&
$options
The options about this button.
Returns
void
Since
4.0.0
Show source code of this method:
prepareOptions Source Code
public string
render
(mixed
&$definition
=
null
)
Get the HTML to render the button
Parameters
array
&
$definition
Parameters to be passed
Returns
string
Since
3.0
-
\Exception
Show source code of this method:
render Source Code
protected string
renderButton
(array
&$options
)
Render button HTML.
Parameters
array
&
$options
The button options.
Returns
string
The button HTML.
Since
4.0.0
Show source code of this method:
renderButton Source Code
protected string
fetchId
()
Get the button CSS Id.
Returns
string
Button CSS Id
Since
3.0
Show source code of this method:
fetchId Source Code
public string
fetchIconClass
(mixed
$identifier
)
Method to get the CSS class name for an icon identifier
Parameters
string
$identifier
Icon identification string
Returns
string
CSS class name
Since
3.0
Show source code of this method:
fetchIconClass Source Code
public string
fetchButton
()
Get the button
Returns
string
Since
3.0
Deprecated
5.0
Show source code of this method:
fetchButton Source Code
public \Joomla\CMS\Toolbar\Toolbar
getParent
()
Get parent toolbar instance.
Returns
\Joomla\CMS\Toolbar\Toolbar
Since
4.0.0
Show source code of this method:
getParent Source Code
public static
setParent
(\Joomla\CMS\Toolbar\Toolbar
$parent
)
Set parent Toolbar instance.
Parameters
\Joomla\CMS\Toolbar\Toolbar
$parent
The parent Toolbar instance to set.
Returns
static Return self to support chaining.
Since
4.0.0
Show source code of this method:
setParent Source Code
public array
getOptions
()
Get button options.
Returns
array
Since
4.0.0
Show source code of this method:
getOptions Source Code
public static
setOptions
(array
$options
)
Set all options.
Parameters
array
$options
The button options.
Returns
static Return self to support chaining.
Since
4.0.0
Show source code of this method:
setOptions Source Code
public mixed
getOption
(string
$name
, mixed
$default
=
null
)
Get single option value.
Parameters
string
$name
The option name.
mixed
$default
The default value if this name not exists.
Returns
mixed
Since
4.0.0
Show source code of this method:
getOption Source Code
public static
setOption
(string
$name
, mixed
$value
)
Set option value.
Parameters
string
$name
The option name to store value.
mixed
$value
The option value.
Returns
static
Since
4.0.0
Show source code of this method:
setOption Source Code
public string
getName
()
Get button name.
Returns
string
Since
4.0.0
Show source code of this method:
getName Source Code
public static
name
(string
$name
)
Set button name.
Parameters
string
$name
The button name.
Returns
static Return self to support chaining.
Since
4.0.0
Show source code of this method:
name Source Code
public string
getLayout
()
Get layout path.
Returns
string
Since
4.0.0
Show source code of this method:
getLayout Source Code
public static
layout
(string
$layout
)
Set layout path.
Parameters
string
$layout
The layout path name to render.
Returns
static Return self to support chaining.
Since
4.0.0
Show source code of this method:
layout Source Code
protected string
ensureUniqueId
(string
$id
)
Make sure the id is unique
Parameters
string
$id
The id string.
Returns
string
Since
4.0.0
Show source code of this method:
ensureUniqueId Source Code
public mixed
__call
(string
$name
, array
$args
)
Magiix method to adapt option accessors.
Parameters
string
$name
The method name.
array
$args
The method arguments.
Returns
mixed
Since
4.0.0
-
\LogicException
Show source code of this method:
__call Source Code
private static bool|string
findOptionName
(string
$name
)
Find field option name from accessors.
Parameters
string
$name
The field name.
Returns
bool
|
string
Since
4.0.0
Show source code of this method:
findOptionName Source Code
protected static array
getAccessors
()
Method to configure available option accessors.
Returns
array
Since
4.0.0
Show source code of this method:
getAccessors Source Code
Properties Summary
protected
string
$name
Name of this button.
Since
4.0.0
protected \Joomla\CMS\Toolbar\Toolbar
$parent
Reference to the object that instantiated the element
Since
4.0.0
protected
string
$layout
The layout path to render this button.
Since
4.0.0
protected
array
$options
Button options.
Since
4.0.0
protected static
array
$idCounter
Used to track an ids, to avoid duplication
Since
4.0.0
Tags Summary
public self
text (
string
$value
)
public self
task (
string
$value
)
public self
icon (
string
$value
)
public self
buttonClass (
string
$value
)
public self
attributes (
array
$value
)
public self
onclick (
array
$value
)
public self
listCheck (
bool
$value
)
public self
listCheckMessage (
string
$value
)
public self
form (
string
$value
)
public self
formValidation (
bool
$value
)
public string
getText ()
public string
getTask ()
public string
getIcon ()
public string
getButtonClass ()
public array
getAttributes ()
public string
getOnclick ()
public bool
getListCheck ()
public string
getListCheckMessage ()
public string
getForm ()
public bool
getFormValidation ()
Since
4.0.0
Otomatik - 213.211.34.110
CloudFlare DNS
Türk Telekom DNS
Google DNS
Open DNS
OSZAR »