namespace \webfiori\ui
class Anchor
Class Methods Summary
public function __construct(string$href, string|HTMLNode$body, string$target)Constructs a new instance of the class.public function setHref(string$link)Sets the value of the property 'href' of the link tag.public function setTarget(string$name)Sets the value of the property 'target' of the link tag.public function setText(string$text, boolean$escHtmlEntities)Sets the text that will be seen by the user.Class Methods Details
public function __construct(string$href, string|HTMLNode$body, string$target)Constructs a new instance of the class. Parameters:
- string $href The link.
- string|HTMLNode $body The label to display. Also, this can be an object of type 'HTMLNode'. Note that if text is given and the text contains HTML code, the method will not replace the code by HTML entities.
- string $target The value to set for the attribute 'target'. Default is '_self'.
public function setHref(string$link)Sets the value of the property 'href' of the link tag. Parameters:
- string $link The value to set. It must be non-empty string.
public function setTarget(string$name)Sets the value of the property 'target' of the link tag. Parameters:
- string $name The value to set.
public function setText(string$text, boolean$escHtmlEntities)Sets the text that will be seen by the user. Note that this method is only applicable if the first child of the anchor is of type '#TEXT'.Parameters:
- string $text The text to set.
- boolean $escHtmlEntities If set to true, the method will replace the characters '<', '>' and '&' with the following HTML entities: '<', '>' and '&' in the given text. Default is false.
mdi-menuAll Classesmdi-chevron-left\webfiori\uiAnchorBrCodeSnippetHTMLDocHTMLListHTMLNodeHTMLTableHeadNodeInputJsCodeLabelListItemOrderedListParagraphRadioGroupTableCellTableRowUnorderedList\webfiori\ui\exceptionsInvalidNodeNameExceptionTemplateNotFoundException\webfiori\jsonCaseConverterJsonJsonConverterJsonIJsonTypesProperty\webfiori\httpAPIFilterAbstractWebServiceManagerInfoServiceParamTypesRequestRequestParameterResponseUriWebServicesManager\webfiori\frameworkAccessAutoLoaderConfigConfigControllerDBEAbstractWebServiceExtendedWebServicesManagerFileLoggerPrivilegePrivilegesGroupThemeThemeLoaderUploadFileUploaderUserUtilWebFioriApp\webfiori\framework\i18nLanguage\webfiori\framework\uiErrorBoxHTTPCodeViewMessageBoxServerErrViewStarterPageWebPage\webfiori\framework\sessionDatabaseSessionStorageDefaultSessionStorageMSSQLSessionDataTableMSSQLSessionsTableMySQLSessionDataTableMySQLSessionsTableSessionSessionOperationsSessionStorageSessionsManager\webfiori\framework\routerRouterRouterUri\webfiori\framework\middlewareAbstractMiddlewareMiddlewareManager\webfiori\framework\mailEmailMessageSMTPAccountSMTPServer\webfiori\framework\exceptionsClassLoaderExceptionFileExceptionInitializationExceptionInvalidCRONExprExceptionMissingLangExceptionNoSuchThemeExceptionRoutingExceptionSMTPExceptionSessionExceptionUIException\webfiori\framework\cronAbstractJobCronCronEmailCronJobJobArgument\webfiori\framework\cron\webUICronLoginViewCronTasksViewCronView\webfiori\framework\cron\webServicesCronLoginServiceCronLogoutServiceCronServicesManagerForceCronExecutionServiceGetJobsService\webfiori\framework\cliCLICLICommandInputStreamOutputStreamStdInStdOut\webfiori\framework\cli\writersClassWriterLangClassWriterQueryClassWriterServiceHolderThemeClassWriterWebServiceWriter\webfiori\framework\cli\helpersCreateCLIClassHelperCreateCronJobCreateMiddlewareCreateTableCreateTableObjCreateThemeHelperCreateWebService\webfiori\framework\cli\commandsAddCommandCreateCommandCronCommandHelpCommandListCronCommandListRoutesCommandListThemesCommandRunSQLQueryCommandSettingsCommandTestRouteCommandUpdateSettingsCommandUpdateTableCommandVersionCommand\webfiori\databaseAbstractQueryColumnColumnFactoryConditionConnectionConnectionInfoDatabaseDatabaseExceptionDateTimeValidatorEntityMapperExpressionForeignKeyJoinTableResultSetSelectExpressionTableWhereExpression\webfiori\database\mysqlMySQLColumnMySQLConnectionMySQLQueryMySQLTable\webfiori\database\mssqlMSSQLColumnMSSQLConnectionMSSQLQueryMSSQLTable\webfiori\collectionsAbstractCollectionComparableLinkedListNodeQueueStackLearnmdi-information-variantAPI Referencemdi-information-variantDownloadmdi-information-variantContributemdi-information-variant