\Fuman_Template_Processor_If

If processor ({if:.

..})

Example: {if:text}[text is {text}] {if:!text}[text not set] {if:value1:value2;valueN}[text is...] Comparing two values: {if:x:operand:y} {if:_position:>=:_super.limit}[{_position} > = {_super.limit}]

Summary

Methods
Properties
Constants
__construct()
getName()
getParseLevel()
processValue()
getUsages()
getOperands()
compare()
No public properties found
No constants found
_getValue()
$_name
$_parseLevel
N/A
No private methods found
No private properties found
N/A

Properties

$_name

$_name : 

Type

$_parseLevel

$_parseLevel : 

Type

Methods

__construct()

__construct(string  $name, integer  $parseLevel) 

Constructor

Parameters

string $name
integer $parseLevel

getName()

getName() : null

Gets name of processor

Returns

null

getParseLevel()

getParseLevel() : integer

Gets parse level (0-n)

Returns

integer

processValue()

processValue(array  $arguments, object  $parentData) : string

Default parse value implementation

Parameters

array $arguments
object $parentData

Returns

string

getUsages()

getUsages() : \array(Fuman_Template_Usage)

Gets possible usages

Returns

\array(Fuman_Template_Usage)

getOperands()

getOperands() : array

Gets operands

Returns

array

compare()

compare(object|null  $x = null, object|null  $operand = null, object|null  $y = null, object|null  $data = null) : null

Compare

Parameters

object|null $x
object|null $operand
object|null $y
object|null $data

Returns

null

_getValue()

_getValue(array  $arguments, null|object  $data = null) : null|object

Gets value for if processor (value for name must be not null or empty)

Parameters

array $arguments
null|object $data

Returns

null|object