block.ifacl2or.php
Tags
Table of Contents
- jtpl_block_common_ifacl2or() : string
- a special if block to test easily if the user has a right among a list of rights.
Functions
jtpl_block_common_ifacl2or()
a special if block to test easily if the user has a right among a list of rights.
jtpl_block_common_ifacl2or(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string
{ifacl2or 'right1', 'right2', 'right3'} ..here generated content if the user has one of given rights {/ifacl2or}
{ifacl2or array('right1', 'right2', 'right3')} ..here generated content if the user has one of given rights {/ifacl2or}
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $param : array<string|int, mixed> = array()
-
0=>subject 1=>optional resource
Tags
Return values
string —the php code corresponding to the begin or end of the block