Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\ProcessingErrorMsgHandler Class Reference

Public Member Functions

 __construct (DIWikiPage $subject)
 
 addToSemanticData (SemanticData $semanticData, DIContainer $container=null)
 
 newErrorContainerFromMsg ( $error, DIProperty $property=null)
 
 newErrorContainerFromDataValue (DataValue $dataValue)
 

Static Public Member Functions

static grepPropertyFromRestrictionErrorMsg ( $message)
 
static normalizeAndDecodeMessages (array $messages, $type=null, $language=null)
 
static getMessagesAsString (array $messages, $type=null, $language=null)
 

Detailed Description

The handler encodes errors into a representation that can be retrieved from the back-end and turn it into a string representation at a convenient time.

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\ProcessingErrorMsgHandler::__construct ( DIWikiPage  $subject)
Since
2.5
Parameters
DIWikiPage$subject

Member Function Documentation

◆ addToSemanticData()

SMW\ProcessingErrorMsgHandler::addToSemanticData ( SemanticData  $semanticData,
DIContainer  $container = null 
)
Since
2.5
Parameters
SemanticData$semanticData
DIContainer | null$container

◆ getMessagesAsString()

static SMW\ProcessingErrorMsgHandler::getMessagesAsString ( array  $messages,
  $type = null,
  $language = null 
)
static
Since
2.5
Parameters
array$messages
integer | null$type
integer | null$language
Returns
string

◆ grepPropertyFromRestrictionErrorMsg()

static SMW\ProcessingErrorMsgHandler::grepPropertyFromRestrictionErrorMsg (   $message)
static
Since
3.0
Parameters
string$message
Returns
DIProperty|null

◆ newErrorContainerFromDataValue()

SMW\ProcessingErrorMsgHandler::newErrorContainerFromDataValue ( DataValue  $dataValue)
Since
2.5
Parameters
DataValue$dataValue
Returns
DIContainer|null

◆ newErrorContainerFromMsg()

SMW\ProcessingErrorMsgHandler::newErrorContainerFromMsg (   $error,
DIProperty  $property = null 
)
Since
2.5
Parameters
array | string$errorMsg
DIProperty | null$property
Returns
DIContainer

◆ normalizeAndDecodeMessages()

static SMW\ProcessingErrorMsgHandler::normalizeAndDecodeMessages ( array  $messages,
  $type = null,
  $language = null 
)
static

Turns an encoded array of messages or text elements into a compacted array with msg keys and arguments.

Since
2.5
Parameters
array$messages
integer | null$type
integer | null$language
Returns
array

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

About | General disclaimer | Privacy policy