Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: block.pnsecauthaction_block.php

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



Page Details:

Zikula Application Framework



Tags:

version:  $Id: block.pnsecauthaction_block.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
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 ]



Documentation generated on Fri, 18 Jul 2008 21:43:12 +0200 by phpDocumentor 1.4.1