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

  • cGuiBackendHelpbox
  • cGuiFileOverview
  • cGuiFoldingRow
  • cGuiList
  • cGuiMenu
  • cGuiNavigation
  • cGuiNotification
  • cGuiObjectPager
  • cGuiPage
  • cGuiScrollList
  • cGuiSourceEditor
  • cGuiTableForm
  • cGuiTree
  • cPager
  • cTemplate
  • cTree
  • cTreeItem
  • NoteLink
  • NoteList
  • NoteListItem
  • NoteView
  • TODOBackendList
  • TODOLink
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cGuiNotification

Class for displaying notifications.

Usage:

// render a error directly
$oNotification = new cGuiNotification();
$oNotification->displayNotification(
    cGuiNotification::LEVEL_ERROR, 'Foobar does not exists'
);

// assign a notification to a variable
$oNotification = new cGuiNotification();
$sNotification = $oNotification->displayNotification(
    cGuiNotification::LEVEL_NOTIFICATION, 'Hey dude, you did it!'
);
Package: Core\GUI
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/gui/class.notification.php
Methods summary
public
# __construct( )

Constructor

Constructor

public string
# returnMessageBox( string $sLevel, string $sMessage, integer $iStyle = 1 )

Generates message box and returns it back.

Generates message box and returns it back.

Parameters

$sLevel
Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
The message to display
$iStyle
Flag tp use styles for display or not (feasible 1 or 0)

Returns

string
public string
# returnNotification( string $sLevel, string $sMessage )

Generates message box and returns it back, uses markup with table.

Generates message box and returns it back, uses markup with table.

Parameters

$sLevel
Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
The message to display

Returns

string
public
# displayNotification( string $sLevel, string $sMessage )

Displays small message box directly.

Displays small message box directly.

Parameters

$sLevel
Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
The message to display
public
# displayMessageBox( string $sLevel, string $sMessage, integer $iStyle = 1 )

Displays large message box directly.

Displays large message box directly.

Parameters

$sLevel
Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
The message to display
$iStyle
Flag tp use styles for display or not (feasible 1 or 0)
Constants summary
string LEVEL_ERROR

Error message level

Error message level

# 'error'
string LEVEL_WARNING

Warning message level

Warning message level

# 'warning'
string LEVEL_INFO

Info message level

Info message level

# 'info'
string LEVEL_NOTIFICATION

Notification message level

Notification message level

# 'notification'
Properties summary
protected string $_sPathImages

HTML path to images

HTML path to images

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen