\Pluf_Template_Tag_APerm

Assign a permission to a template variable.

This template tag is available by default under the name aperm. Example of usage:

{aperm 'can_drive', $user, 'MyApp.can_drive'} {aperm 'can_drive_big_car', $user, 'MyApp.can_drive', $bigcar} {if $can_drive}Can drive!{/if}

Summary

Methods
Properties
Constants
__construct()
start()
No public properties found
No constants found
No protected methods found
$context
N/A
No private methods found
No private properties found
N/A

Properties

$context

$context : array

Type

array

Methods

__construct()

__construct(  $context = null) 

Constructor.

Parameters

$context

start()

start(  $var,   $user,   $perm,   $object = null) 

Parameters

$var
$user
$perm
$object