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

  • cContentTypePifaForm
  • DefaultFormModule
  • DefaultFormProcessor
  • ExampleOptionsDatasource
  • MailedFormProcessor
  • Pifa
  • PifaAbstractFormModule
  • PifaAbstractFormProcessor
  • PifaAjaxHandler
  • PifaExternalOptionsDatasourceInterface
  • PifaField
  • PifaFieldCollection
  • PifaForm
  • PifaFormCollection
  • PifaLeftBottomPage
  • PifaRightBottomFormDataPage
  • PifaRightBottomFormFieldsPage
  • PifaRightBottomFormPage
  • SolrRightBottomPage

Exceptions

  • PifaDatabaseException
  • PifaException
  • PifaIllegalStateException
  • PifaMailException
  • PifaNotImplementedException
  • PifaNotYetStoredException
  • PifaValidationException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cContentTypePifaForm

Content type CMS_PIFAFORM which lets the editor configure a PIFA form to be displayed in frontend.

This content type offers several choices:

  • select a form of those created in the PIFA backend for the current client
  • select a module class located in plugins/form_assistant/extensions
  • select a processor class located in plugins/form_assistant/extensions
  • DOCME several client & system mail settings
cContentTypeAbstract
Extended by cContentTypeAbstractTabbed
Extended by cContentTypePifaForm
Package: Plugin\FormAssistant
Copyright: four for business AG
Author: marcus.gnass
Located at plugins/form_assistant/classes/class.content.type.pifa_form.php
Methods summary
public static number
# sortByLabel( array $a, array $b )

Callback function that is capable of sorting items that are arrays by comparing their value for the key 'label'.

Callback function that is capable of sorting items that are arrays by comparing their value for the key 'label'.

Parameters

$a
array
$a
$b
array
$b

Returns

number
as expected for a comparision function used for sorting
public
# __construct( string $rawSettings, integer $id, array $contentTypes )

Initialize class attributes and handles store events.

Initialize 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 string
# generateEditCode( )

Generate the escaped HTML code for editor.

Generate the escaped HTML code for editor.

Returns

string
escaped HTML code for editor
private string
# _getPanel( )

Generates code for the base panel in which all data can be specified.

Generates code for the base panel in which all data can be specified.

Returns

string
- the code for the base panel
private cHTMLDiv
# _getSelectForm( )

Builds a select element allowing to choose a single form that was created for the current client.

Builds a select element allowing to choose a single form that was created for the current client.

Returns

cHTMLDiv
private cHTMLDiv
# _getSelectModule( )

Builds a select element allowing to choose a single module that handles the chosen form.

Builds a select element allowing to choose a single module that handles the chosen form.

Returns

cHTMLDiv
private cHTMLDiv
# _getSelectProcessor( )

Builds a select element allowing to choose a single class that postprocesses the sent data.

Builds a select element allowing to choose a single class that postprocesses the sent data.

Returns

cHTMLDiv
private cHTMLDiv
# _getSelectTemplateGet( )

Builds a select element allowing to choose a single template to respond a GET request.

Builds a select element allowing to choose a single template to respond a GET request.

Returns

cHTMLDiv
private cHTMLDiv
# _getSelectTemplatePost( )

Builds a select element allowing to choose a single template to respond a POST request.

Builds a select element allowing to choose a single template to respond a POST request.

Returns

cHTMLDiv
private cHTMLDiv
# _getSelectMailClientTemplate( )

Builds a select element allowing to choose a single template for the client mail.

Builds a select element allowing to choose a single template for the client mail.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailClientFromEmail( )

Builds an input element allowing to set the client mail sender address.

Builds an input element allowing to set the client mail sender address.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailClientFromName( )

Builds an input element allowing to set the client mail sender name.

Builds an input element allowing to set the client mail sender name.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailClientSubject( )

Builds an input element allowing to set the client mail subject.

Builds an input element allowing to set the client mail subject.

Returns

cHTMLDiv
private cHTMLSelectElement
# _getSelectMailSystemTemplate( )

Builds a select element allowing to choose a single template the system mail.

Builds a select element allowing to choose a single template the system mail.

Returns

cHTMLSelectElement
private cHTMLDiv
# _getInputMailSystemFromEmail( )

Builds an input element allowing to set the system mail sender address.

Builds an input element allowing to set the system mail sender address.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailSystemFromName( )

Builds an input element allowing to set the system mail sender name.

Builds an input element allowing to set the system mail sender name.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailSystemRecipientEmail( )

Builds an input element allowing to set the system mail recipient address.

Builds an input element allowing to set the system mail recipient address.

Returns

cHTMLDiv
private cHTMLDiv
# _getInputMailSystemSubject( )

Builds an input element allowing to set the system mail subject.

Builds an input element allowing to set the system mail subject.

Returns

cHTMLDiv
public string
# generateViewCode( )

Generates the code which should be shown if this content type is shown in the frontend. This code is cached. Thatfor ist no more than the initialisation of this class and the call of its method buildCode(). Otherwise the generated HTML would have been cached.

Generates the code which should be shown if this content type is shown in the frontend. This code is cached. Thatfor ist no more than the initialisation of this class and the call of its method buildCode(). Otherwise the generated HTML would have been cached.

Returns

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

Get code of form (either GET or POST request).

Get code of form (either GET or POST request).

Returns

string
escaped HTML code which sould be shown if content type is shown in frontend
Methods inherited from cContentTypeAbstractTabbed
_generateActionCode(), _generateTabMenuCode()
Methods inherited from cContentTypeAbstract
_encodeForOutput(), _isActiveDirectory(), _isSubdirectory(), _readSettings(), _shouldDirectoryBeExpanded(), _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