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

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

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

Constructor to create an instance of this class.

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
string
$sLevel Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
string
$sMessage The message to display
$iStyle
integer
$iStyle [optional] 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
string
$sLevel Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
string
$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
string
$sLevel Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
string
$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
string
$sLevel Message level, one of cGuiNotification::LEVEL_* constants
$sMessage
string
$sMessage The message to display
$iStyle
integer
$iStyle [optional] Flag tp use styles for display or not (feasible 1 or 0)
Constants summary
string LEVEL_ERROR 'error'
#

Error message level.

Error message level.

string LEVEL_WARNING 'warning'
#

Warning message level.

Warning message level.

string LEVEL_INFO 'info'
#

Info message level.

Info message level.

string LEVEL_OK 'ok'
#

Ok message level.

Ok message level.

string LEVEL_NOTIFICATION 'notification'
#

Notification message level.

Notification message level.

Properties summary
protected string $_sPathImages
#

HTML path to images.

HTML path to images.

CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0