Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cHTML
  • cHTMLAlignmentTable
  • cHTMLArticle
  • cHTMLAside
  • cHTMLAudio
  • cHTMLButton
  • cHTMLCanvas
  • cHTMLCheckbox
  • cHTMLContentElement
  • cHTMLDiv
  • cHTMLFieldset
  • cHTMLFooter
  • cHTMLForm
  • cHTMLFormElement
  • cHTMLHeader
  • cHTMLHgroup
  • cHTMLHiddenField
  • cHTMLIFrame
  • cHTMLImage
  • cHTMLLabel
  • cHTMLLegend
  • cHTMLLink
  • cHTMLList
  • cHTMLListItem
  • cHTMLNav
  • cHTMLOptgroup
  • cHTMLOptionElement
  • cHTMLParagraph
  • cHTMLPasswordbox
  • cHTMLRadiobutton
  • cHTMLScript
  • cHTMLSection
  • cHTMLSelectElement
  • cHTMLSpan
  • cHTMLTable
  • cHTMLTableBody
  • cHTMLTableData
  • cHTMLTableHead
  • cHTMLTableHeader
  • cHTMLTableRow
  • cHTMLTextarea
  • cHTMLTextbox
  • cHTMLTime
  • cHTMLUpload
  • cHTMLVideo
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cHTMLLink

cHTMLLink class represents a link.

cHTML
Extended by cHTMLContentElement
Extended by cHTMLLink

Direct known subclasses

NoteLink, TODOLink
Package: Core\GUI\HTML
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Simon Sprankel
Located at classes/html/class.html.link.php
Methods summary
public
# __construct( string $href = '' )

Constructor. Creates an HTML link.

Constructor. Creates an HTML link.

Parameters

$href
String with the location to link to

Overrides

cHTMLContentElement::__construct()
public
# enableAutomaticParameterAppend( )
public
# disableAutomaticParameterAppend( )
public cHTMLLink
# setLink( string $href )

Sets the link to a specific location

Sets the link to a specific location

Parameters

$href
String with the location to link to

Returns

cHTMLLink
$this
public cHTMLLink
# setTargetFrame( string $target )

Sets the target frame

Sets the target frame

Parameters

$target
Target frame identifier

Returns

cHTMLLink
$this
public cHTMLLink
# setCLink( string $targetarea, string $targetframe, string $targetaction = '' )

Sets a CONTENIDO link (area, frame, action)

Sets a CONTENIDO link (area, frame, action)

Parameters

$targetarea
Target backend area
$targetframe
Target frame (1-4)
$targetaction
Target action

Returns

cHTMLLink
$this
public cHTMLLink
# setMultiLink( string $righttoparea, string $righttopaction, string $rightbottomarea, string $rightbottomaction )

Sets a multilink

Sets a multilink

Parameters

$righttoparea
Area (right top)
$righttopaction
Action (right top)
$rightbottomarea
Area (right bottom)
$rightbottomaction
Action (right bottom)

Returns

cHTMLLink
$this
public cHTMLLink
# setCustom( string $key, string $value )

Sets a custom attribute to be appended to the link

Sets a custom attribute to be appended to the link

Parameters

$key
Parameter name
$value
Parameter value

Returns

cHTMLLink
$this
public
# setImage( $src )
public cHTMLLink
# unsetCustom( string $key )

Unsets a previous set custom attribute

Unsets a previous set custom attribute

Parameters

$key
Parameter name

Returns

cHTMLLink
$this
public
# getHref( )
public cHTMLLink
# setAnchor( string $anchor )

Sets an anchor Only works for the link types Link and cLink.

Sets an anchor Only works for the link types Link and cLink.

Parameters

$anchor
$content Anchor name

Returns

cHTMLLink
$this
public string
# toHTML( )

Renders the link

Renders the link

Returns

string
Rendered HTML

Overrides

cHTML::toHTML()
Methods inherited from cHTMLContentElement
appendContent(), setContent()
Methods inherited from cHTML
__toString(), _appendContent(), _getAttrString(), _parseAttributes(), _setContent(), addRequiredScript(), advanceID(), appendStyleDefinition(), appendStyleDefinitions(), attachEventDefinition(), display(), fillCloseSkeleton(), fillSkeleton(), getAttribute(), getAttributes(), getID(), removeAttribute(), render(), setAlt(), setAttribute(), setAttributes(), setClass(), setEvent(), setGenerateXHTML(), setID(), setStyle(), setTag(), unsetEvent(), updateAttribute(), updateAttributes()
Properties summary
protected $_link
#
protected string $_content

The content itself

The content itself

#
protected $_anchor
#
protected $_custom
#
protected $_image
#
Properties inherited from cHTML
$_attributes, $_contentlessTag, $_eventDefinitions, $_generateXHTML, $_idCounter, $_requiredScripts, $_skeletonClose, $_skeletonOpen, $_skeletonSingle, $_styleDefinitions, $_styleDefs, $_tag
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen