Jelix 1.8.14-pre

block.ifacl2and.php

Tags
subpackage

jacl2_plugin

author

Laurent Jouanneau

copyright

2022 Laurent Jouanneau

see
https://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_block_common_ifacl2and()  : string
a special if block to test easily if the user has all rights of the given list.

Functions

jtpl_block_common_ifacl2and()

a special if block to test easily if the user has all rights of the given list.

jtpl_block_common_ifacl2and(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string
{ifacl2and 'right1', 'right2', 'right3'} ..here generated content if the user has all given rights {/ifacl2and}
{ifacl2and array('right1', 'right2', 'right3')} ..here generated content if the user has all given rights {/ifacl2and}
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

Search results