fetch( 'section', 'user_roles', hash( 'section_id', section_id ) )
Name | Type | Description | Required |
---|---|---|---|
section_id | integer | The ID number of the target section. | Yes. |
An array (see below) or FALSE.
This function fetches user and/or user groups that have role limitations associated with a certain section. The section must be defined using a valid section ID number through the "section_id" parameter. Please refer to the example below to see how the returned information can be used.
{def $user_roles=fetch( 'section', 'user_roles', hash( 'section_id', 13 ) )} {foreach $user_roles as $user_role} User (or group) {$user_role.user.name} has limitation on the section 13. The "touched" role is {$user_role.role.name}. <br /> {/foreach}Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.