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

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
  • Tree
  • Deprecated
  • Todo

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 to create an instance of this class.

Constructor to create an instance of this class.

Creates an HTML link.

Parameters

$href
string
$href [optional] String with the location to link to

Overrides

cHTMLContentElement::__construct()
public cHTML
# enableAutomaticParameterAppend( )

Returns

cHTML
$this for chaining
public cHTML
# disableAutomaticParameterAppend( )

Returns

cHTML
$this for chaining
public cHTMLLink
# setLink( string $href )

Sets the link to a specific location

Sets the link to a specific location

Parameters

$href
string
$href String with the location to link to

Returns

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

Sets the target frame

Sets the target frame

Parameters

$target
string
$target Target frame identifier

Returns

cHTMLLink
$this for chaining
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
string
$targetarea Target backend area
$targetframe
string
$targetframe Target frame (1-4)
$targetaction
string
$targetaction [optional] Target action

Returns

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

Sets a multilink

Sets a multilink

Parameters

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

Returns

cHTMLLink
$this for chaining
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
string
$key Parameter name
$value
string
$value Parameter value

Returns

cHTMLLink
$this for chaining
public cHTMLLink
# setImage( string $src )

Parameters

$src
string
$src

Returns

cHTMLLink
$this for chaining
public cHTMLLink
# unsetCustom( string $key )

Unsets a previous set custom attribute

Unsets a previous set custom attribute

Parameters

$key
string
$key Parameter name

Returns

cHTMLLink
$this for chaining
public string
# getHref( )

Returns

string
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
string
$content Anchor name

Returns

cHTMLLink
$this for chaining
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 string $_link
#

Stores the link location

Stores the link location

protected unknown_type $_content
#

Stores the content

Stores the content

Todo

this property overloads cHTML::$_content and should be removed if unittests are available
protected string $_anchor
#

Stores the anchor

Stores the anchor

protected array $_custom
#

Stores the custom entries

Stores the custom entries

protected string $_image
#
protected string $_targetarea
#
protected string $_targetframe
#
protected string $_targetaction
#
protected string $_type
#
protected string $_targetarea2
#
protected string $_targetaction2
#
protected string $_targetframe2
#
Properties inherited from cHTML
$_attributes, $_contentlessTag, $_eventDefinitions, $_generateXHTML, $_idCounter, $_requiredScripts, $_skeletonClose, $_skeletonOpen, $_skeletonSingle, $_styleDefinitions, $_styleDefs, $_tag
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0