Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page block.pnsecauthaction_block.php

Procedural File: block.pnsecauthaction_block.php

Source Location: /pnRender/plugins/block.pnsecauthaction_block.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: block.pnsecauthaction_block.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_block_pnsecauthaction_block [line 34]

mixed smarty_block_pnsecauthaction_block( array $params, string $content, &$smarty, object $smarty)

Smarty block to implement PN permissions checks in a template

available parameters:

  • realm the realm under test
  • component the component under test
  • instance the instance under test
  • level the level of access required
Example <!--[pnsecauthaction_block component='News::' instance='1::' level=ACCESS_COMMENT]--> do some stuff now we have permission <!--[/pnsecauthaction_block]-->




Tags:

return:  the content if permission is held, null if no permissions is held (or on the opening tag), false on an error
author:  Mark West
since:  16 Feb 06


Parameters

array   $params   All attributes passed to this function from the template
string   $content   The content between the block tags
object   $smarty   Reference to the Smarty object
   &$smarty  
[ Top ]


Packages:

Files:

Classes: