API - XOOPS 2.5.11 Beta 2
By monxoops.fr
xoopsimagemanager.php File Reference

Namespaces

namespace  class
 

Functions

 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
 

Function Documentation

◆ imageBrowser()

imageBrowser (   $inputname = 'src',
  $canbrowse = false 
)
Parameters
string$inputname
bool$canbrowse
Returns
string

Variable Documentation

◆ $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/'))