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

Espaces de nommage

 class
 

Fonctions

 imageBrowser ($inputname='src', $canbrowse=false)
 

Variables

 $current_path = __DIR__
 
if(DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'))
 
 $admin = false
 
 $gperm_handler = xoops_getHandler('groupperm')
 
 $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)
 
 $imgcat_handler = xoops_getHandler('imagecategory')
 
 $catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1)
 
 $catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1)
 
 $canbrowse = ($admin || !empty($catreadlist) || !empty($catwritelist)) ? true : false
 

Documentation des fonctions

◆ imageBrowser()

imageBrowser (   $inputname = 'src',
  $canbrowse = false 
)
Paramètres
string$inputname
bool$canbrowse
Renvoie
string

Documentation des variables

◆ $admin

$admin = false

◆ $canbrowse

$canbrowse = ($admin || !empty($catreadlist) || !empty($catwritelist)) ? true : false

◆ $catreadlist

$catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1)

◆ $catwritelist

$catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1)

◆ $current_path

$current_path = __DIR__

◆ $gperm_handler

$gperm_handler = xoops_getHandler('groupperm')

◆ $groups

$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)

◆ $imgcat_handler

$imgcat_handler = xoops_getHandler('imagecategory')

◆ $xoops_root_path

if (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'))