Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • 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

  • cCodeGeneratorAbstract
  • cCodeGeneratorFactory
  • cCodeGeneratorStandard
  • cContentTypeAbstract
  • cContentTypeAbstractTabbed
  • cContentTypeDate
  • cContentTypeFilelist
  • cContentTypeHead
  • cContentTypeHtml
  • cContentTypeHtmlhead
  • cContentTypeImg
  • cContentTypeImgdescr
  • cContentTypeImgeditor
  • cContentTypeLink
  • cContentTypeLinkdescr
  • cContentTypeLinkeditor
  • cContentTypeLinktarget
  • cContentTypeTeaser
  • cContentTypeText
  • cTypeGenerator
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cContentTypeLinkeditor

Content type CMS_LINKEDITOR which lets the editor select a link.

cContentTypeAbstract
Extended by cContentTypeAbstractTabbed
Extended by cContentTypeLinkeditor

Direct known subclasses

cContentTypeLink, cContentTypeLinkdescr, cContentTypeLinktarget
Package: Core\ContentType
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Fulai Zhang, Simon Sprankel
Located at classes/content_types/class.content.type.linkeditor.php
Methods summary
public
# __construct( string $rawSettings, integer $id, array $contentTypes )

Initialises class attributes and handles store events.

Initialises class attributes and handles store events.

Parameters

$rawSettings
string
$rawSettings the raw settings in an XML structure or as plaintext
$id
integer
$id ID of the content type, e.g. 3 if CMS_DATE[3] is used
$contentTypes
array
$contentTypes array containing the values of all content types

Overrides

cContentTypeAbstract::__construct()
public array
# getConfiguredData( )

Returns array with configured data (keys: type, externallink, title, newwindow, idart, filename). Additionally the key href contains the actual hyperreference.

Returns array with configured data (keys: type, externallink, title, newwindow, idart, filename). Additionally the key href contains the actual hyperreference.

Returns

array
public string
# generateViewCode( )

Generates the code which should be shown if this content type is shown in the frontend.

Generates the code which should be shown if this content type is shown in the frontend.

Returns

string
escaped HTML code which sould be shown if content type is shown in frontend
protected string
# _generateHref( )

Generates the actual link depending on the link type.

Generates the actual link depending on the link type.

Returns

string
the generated link
public string
# generateEditCode( )

Generates the code which should be shown if this content type is edited.

Generates the code which should be shown if this content type is edited.

Returns

string
escaped HTML code which should be shown if content type is edited
private string
# _generateTabExternal( )

Generates code for the external link tab in which links to external sites can be specified.

Generates code for the external link tab in which links to external sites can be specified.

Returns

string
- the code for the external link tab
private string
# _generateBasicSettings( )

Generates code for the basic settings "tab" in which the link title and target can be specified. This tab is always shown.

Generates code for the basic settings "tab" in which the link title and target can be specified. This tab is always shown.

Returns

string
- the code for the basic settings tab
private string
# _generateTabInternal( )

Generates code for the internal link tab in which links to internal sites can be specified.

Generates code for the internal link tab in which links to internal sites can be specified.

Returns

string
- the code for the internal link tab
public array
# buildCategoryArray( integer $level = 0, integer $parentid = 0 )

Builds an array with category information.

Builds an array with category information.

Parameters

$level
integer
$level
$parentid
integer
$parentid

Returns

array
with directory information
public string
# getCategoryList( array $categories )

Generates a category list from the given category information (which is typically built by cContentTypeLinkeditor::buildCategoryArray()).

Generates a category list from the given category information (which is typically built by cContentTypeLinkeditor::buildCategoryArray()).

Parameters

$categories
array
$dirs directory information

Returns

string
HTML code showing a directory list
private array
# _getActiveIdcats( )

Computes all active idcats.

Computes all active idcats.

Returns

array
containing all active idcats
private array
# _getParentIdcats( integer $idcat, array $idcats = array() )

Computes all parent idcats of the given idcat and returns them.

Computes all parent idcats of the given idcat and returns them.

Parameters

$idcat
integer
$idcat the current idcat
$idcats
array
$idcats the array of idcats to which all idcats should be added

Returns

array
the given idcats array with the given idcat and all parent idcats
public string
# generateArticleSelect( integer $idCat = 0 )

Generate a select box for all articles of the given idcat.

Generate a select box for all articles of the given idcat.

Parameters

$idCat
integer
$idCat idcat of the category from which all articles should be shown

Returns

string
rendered cHTMLSelectElement
private string
# _generateTabFile( )

Generates code for the link to file tab in which links to files can be specified.

Generates code for the link to file tab in which links to files can be specified.

Returns

string
- the code for the link to file tab
public string
# getUploadFileSelect( string $directoryPath = '' )

Generates a select box for the manual files.

Generates a select box for the manual files.

Parameters

$directoryPath
string
$directoryPath to directory of the files

Returns

string
cHTMLSelectElement
protected boolean
# _isActiveDirectory( array $dirData )

Checks whether the directory defined by the given directory information is the currently active directory. Overwrite in subclasses if you use getDirectoryList!

Checks whether the directory defined by the given directory information is the currently active directory. Overwrite in subclasses if you use getDirectoryList!

Parameters

$dirData
array
$dirData directory information

Returns

boolean
whether the directory is the currently active directory

Overrides

cContentTypeAbstract::_isActiveDirectory()
protected boolean
# _shouldDirectoryBeExpanded( array $dirData )

Checks whether the directory defined by the given directory information should be shown expanded. Overwrite in subclasses if you use getDirectoryList!

Checks whether the directory defined by the given directory information should be shown expanded. Overwrite in subclasses if you use getDirectoryList!

Parameters

$dirData
array
$dirData directory information

Returns

boolean
whether the directory should be shown expanded

Overrides

cContentTypeAbstract::_shouldDirectoryBeExpanded()
Methods inherited from cContentTypeAbstractTabbed
_generateActionCode(), _generateTabMenuCode()
Methods inherited from cContentTypeAbstract
_encodeForOutput(), _isSubdirectory(), _readSettings(), _storeSettings(), buildDirectoryList(), generateDirectoryList(), getConfiguration()
Constants inherited from cContentTypeAbstract
SETTINGS_TYPE_PLAINTEXT, SETTINGS_TYPE_XML
Properties inherited from cContentTypeAbstract
$_cfg, $_cfgClient, $_client, $_contentTypes, $_formFields, $_id, $_idArt, $_idArtLang, $_idCat, $_lang, $_prefix, $_rawSettings, $_session, $_settings, $_settingsType, $_type, $_uploadPath, $_useXHTML
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0