API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
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 | |
imageBrowser | ( | $inputname = 'src' , |
|
$canbrowse = false |
|||
) |
string | $inputname | |
bool | $canbrowse |
$admin = false |
$canbrowse = ($admin || !empty($catreadlist) || !empty($catwritelist)) ? true : false |
$catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1) |
$catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1) |
$current_path = __DIR__ |
$gperm_handler = xoops_getHandler('groupperm') |
$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS) |
$imgcat_handler = xoops_getHandler('imagecategory') |
if (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/')) |