XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier visibility.php

Espaces de nommage

 profile
 

Variables

 $_SERVER ['REQUEST_URI'] = 'admin/permissions.php'
 
 $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'visibility'
 
 $visibility_handler = xoops_getModuleHandler('visibility')
 
 $field_handler = xoops_getModuleHandler('field')
 
 $fields = $field_handler->getList()
 
if(isset($_REQUEST['submit'])) if ( $op==='del')
 
 $opform = new XoopsSimpleForm('', 'opform', 'permissions.php', 'get')
 
 $op_select = new XoopsFormSelect('', 'op', $op)
 
 $criteria = new CriteriaCompo()
 
 $visibilities = $visibility_handler->getAllByFieldId($criteria)
 
 $member_handler = xoops_getHandler('member')
 
 $groups = $member_handler->getGroupList()
 
 $groups [0] = _PROFILE_AM_FIELDVISIBLETOALL
 
 $add_form = new XoopsSimpleForm('', 'addform', 'visibility.php')
 
 $sel_field = new XoopsFormSelect(_PROFILE_AM_FIELDVISIBLE, 'field_id')
 
 $sel_ug = new XoopsFormSelect(_PROFILE_AM_FIELDVISIBLEFOR, 'ug')
 
 $sel_pg = new XoopsFormSelect(_PROFILE_AM_FIELDVISIBLEON, 'pg')
 

Documentation des variables

◆ $_SERVER

$_SERVER[ 'REQUEST_URI'] = 'admin/permissions.php'

◆ $add_form

$add_form = new XoopsSimpleForm('', 'addform', 'visibility.php')

◆ $criteria

$criteria = new CriteriaCompo()

◆ $field_handler

$field_handler = xoops_getModuleHandler('field')

◆ $fields

$fields = $field_handler->getList()

◆ $groups [1/2]

◆ $groups [2/2]

$groups = $member_handler->getGroupList()

◆ $member_handler

$member_handler = xoops_getHandler('member')

◆ $op

$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'visibility'

◆ $op_select

$op_select = new XoopsFormSelect('', 'op', $op)

◆ $opform

$opform = new XoopsSimpleForm('', 'opform', 'permissions.php', 'get')

◆ $sel_field

$sel_field = new XoopsFormSelect(_PROFILE_AM_FIELDVISIBLE, 'field_id')

◆ $sel_pg

◆ $sel_ug

◆ $visibilities

$visibilities = $visibility_handler->getAllByFieldId($criteria)

◆ $visibility_handler

$visibility_handler = xoops_getModuleHandler('visibility')

◆ if

if (isset( $_REQUEST[ 'submit'])) if($op==='del')