Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
Lingo\MessageLog Class Reference

Public Member Functions

 addMessage ($message, $severity=self::MESSAGE_NOTICE)
 
 addError ($message)
 
 addWarning ($message)
 
 addNotice ($message)
 
 getMessagesFormatted ($severity=self::MESSAGE_WARNING, $header=null)
 

Public Attributes

const MESSAGE_ERROR = 1
 
const MESSAGE_WARNING = 2
 
const MESSAGE_NOTICE = 3
 

Detailed Description

This class holds messages (errors, warnings, notices) for Lingo

Contains a static function to initiate the parsing.

Member Function Documentation

Lingo\MessageLog::addError (   $message)
Parameters
$message
Lingo\MessageLog::addMessage (   $message,
  $severity = self::MESSAGE_NOTICE 
)
Parameters
$message
int$severity
Lingo\MessageLog::addNotice (   $message)
Parameters
$message
Lingo\MessageLog::addWarning (   $message)
Parameters
$message
Lingo\MessageLog::getMessagesFormatted (   $severity = self::MESSAGE_WARNING,
  $header = null 
)
Parameters
int$severity
null$header
Returns
null|string

Member Data Documentation

const Lingo\MessageLog::MESSAGE_ERROR = 1
const Lingo\MessageLog::MESSAGE_NOTICE = 3
const Lingo\MessageLog::MESSAGE_WARNING = 2

The documentation for this class was generated from the following file: