Documentation · ViewHelper reference

XSD schema file | vhs master

Math / PowerViewHelper

Math: Power

Performs pow($a, $b) where $a is the base and $b is the exponent. /

  • Tag usage example

    <v:math.power a="[mixed]" fail="1" b="[mixed]">
    	<!-- tag content - may be ignored! -->
    </v:math.power>
  • Inline usage example

    {v:math.power(a: [mixed], fail: 1, b: [mixed])}

Arguments

Argument Description Type
a

First number for calculation

mixed
b

Second number or Iterator/Traversable/Array for calculation

mixed
fail

If TRUE, throws an Exception if argument "a" is not specified and no child content or inline argument is found. Usually okay to use a NULL value (as integer zero).

boolean
Required attribute

Revision history

commit 5e7c91046142a2a93a1160c3de72109a61af4035
Author: Claus Due <*****@wildside.dk>
Date:   Tue Nov 20 20:50:47 2012 +0100

    [FEATURE] Math / Power ViewHelper

commit 285ee9ab0ceb4a4eee28f07211d92b9f6958c65d
Author: Claus Due <*****@wildside.dk>
Date:   Tue Nov 20 21:18:32 2012 +0100

    [DOC] Adjust class doc comment sub package annotation, Math ViewHelpers

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file