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
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cApiPathresolveCacheHelper
  • cArray
  • cArticleCollector
  • cDirHandler
  • cFileHandler
  • cHTMLInputSelectElement
  • cIterator
  • cString
  • cStringMultiByteWrapper
  • cZipArchive
  • UI_Config_Table
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cHTMLInputSelectElement

Select box with additional functionality for category and article selection

cHTML
Extended by cHTMLFormElement
Extended by cHTMLSelectElement
Extended by cHTMLInputSelectElement
Package: Core\Util
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Bjoern Behrens
Located at classes/class.input.helper.php
Methods summary
public
# __construct( string $sName, string $iWidth = '', string $sID = '', boolean $bDisabled = false, integer $iTabIndex = NULL, string $sAccessKey = '' )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

Creates an HTML select field (aka 'DropDown').

Parameters

$sName
string
$sName Name of the select element
$iWidth
string
$iWidth [optional] Width of the select element
$sID
string
$sID [optional] ID of the select element
$bDisabled
boolean
$bDisabled [optional] Item disabled flag (non-empty to set disabled)
$iTabIndex
integer
$iTabIndex [optional] Tab index for form elements
$sAccessKey
string
$sAccessKey [optional] Key to access the field

Overrides

cHTMLSelectElement::__construct()
public integer
# addArticles( integer $iIDCat, boolean $bColored = false, boolean $bArtOnline = true, string $sSpaces = '' )

Adds articles to select options.

Adds articles to select options.

Parameters

$iIDCat
integer
$iIDCat idcat of the category to be listed
$bColored
boolean
$bColored Add color information to option elements
$bArtOnline
boolean
$bArtOnline If true, only online articles will be added
$sSpaces
string
$sSpaces Just some ' ' to show data hierarchically (used in conjunction with addCategories)

Returns

integer
Number of items added

Throws

cDbException
public integer
# addCategories( integer $iMaxLevel = 0, boolean $bColored = false, boolean $bCatVisible = true, boolean $bCatPublic = true, boolean $bWithArt = false, boolean $bArtOnline = true )

Adds categories (optionally including articles) as options to select box.

Adds categories (optionally including articles) as options to select box.

Note: Using 'with articles' also adds articles - but the categories will get negative values cause otherwise there is no way to distinguish between a category id and an article id.

Parameters

$iMaxLevel
integer
$iMaxLevel Max. level shown (to be exact: except this level)
$bColored
boolean
$bColored Add color information to option elements
$bCatVisible
boolean
$bCatVisible If true, only add idcat as value, if cat is visible
$bCatPublic
boolean
$bCatPublic If true, only add idcat as value, if cat is public
$bWithArt
boolean
$bWithArt Add also articles per category
$bArtOnline
boolean
$bArtOnline If true, show only online articles

Returns

integer
Number of items added

Throws

cDbException
public integer
# addTypesFromArt( integer $iIDCatArt, string $sTypeRange = '' )

Function addTypesFromArt. Adds types and type ids which are available for the specified article

Function addTypesFromArt. Adds types and type ids which are available for the specified article

Parameters

$iIDCatArt
integer
$iIDCatArt Article id
$sTypeRange
string
$sTypeRange Comma separated list of CONTENIDO type ids which may be in the resulting list (e.g. '1', '17', '28')

Returns

integer
Number of items added

Throws

cDbException
Methods inherited from cHTMLSelectElement
addOptionElement(), appendOptionElement(), autoFill(), getDefault(), setDefault(), setMultiselect(), setSelected(), setSize(), toHtml()
Methods inherited from cHTMLFormElement
setAccessKey(), setDisabled(), setTabindex()
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 inherited from cHTMLSelectElement
$_options
Properties inherited from cHTML
$_attributes, $_content, $_contentlessTag, $_eventDefinitions, $_generateXHTML, $_idCounter, $_requiredScripts, $_skeletonClose, $_skeletonOpen, $_skeletonSingle, $_styleDefinitions, $_styleDefs, $_tag
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0