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

Public Member Functions

 __construct (array $rawParameters=array())
 
 getErrors ()
 
 addError ($error)
 
 getFirst ()
 
 getFirstParameter ()
 
 getRaw ()
 
 toArray ()
 
 hasParameter ($key)
 
 removeParameterByKey ($key)
 
 getParameterValuesFor ($key)
 
 getParameterValuesByKey ($key)
 
 setParameters (array $parameters)
 
 addParameter ($key, $value)
 
 setParameter ($key, array $values)
 

Detailed Description

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

SMW\ParserParameterProcessor::__construct ( array  $rawParameters = array())
Since
1.9
Parameters
array$rawParameters

Member Function Documentation

SMW\ParserParameterProcessor::addError (   $error)

Adds an error

Since
1.9
Parameters
mixed$error
SMW\ParserParameterProcessor::addParameter (   $key,
  $value 
)
Since
1.9
Parameters
string$key
string$value
SMW\ParserParameterProcessor::getErrors ( )

Returns collected errors

Since
1.9
Returns
array
SMW\ParserParameterProcessor::getFirst ( )
SMW\ParserParameterProcessor::getFirstParameter ( )
Since
2.3
Returns
string
SMW\ParserParameterProcessor::getParameterValuesByKey (   $key)
Since
2.5
Parameters
string$key
Returns
array
SMW\ParserParameterProcessor::getParameterValuesFor (   $key)
SMW\ParserParameterProcessor::getRaw ( )

Returns raw parameters

Since
1.9
Returns
string
SMW\ParserParameterProcessor::hasParameter (   $key)
Since
2.3
Parameters
string$key
Returns
boolean
SMW\ParserParameterProcessor::removeParameterByKey (   $key)
Since
2.5
Parameters
string$key
SMW\ParserParameterProcessor::setParameter (   $key,
array  $values 
)
Since
2.3
Parameters
string$key
array$values
SMW\ParserParameterProcessor::setParameters ( array  $parameters)
Since
1.9
Parameters
array$parameters
SMW\ParserParameterProcessor::toArray ( )

Returns remapped parameters

Since
1.9
Returns
array

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