当前位置: 首页>>代码示例>>PHP>>正文


PHP FileManager::isVisible方法代码示例

本文整理汇总了PHP中FileManager::isVisible方法的典型用法代码示例。如果您正苦于以下问题:PHP FileManager::isVisible方法的具体用法?PHP FileManager::isVisible怎么用?PHP FileManager::isVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FileManager的用法示例。


在下文中一共展示了FileManager::isVisible方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dirname

    $jUI->add($fileupload);
    $jUI->add(new JUI\Button('Hochladen', TRUE));
}
$list = new JUI\ListView();
if (!empty($folder)) {
    //$list = array("..");
    $upperFolder = dirname($folder);
    if ($upperFolder == ".") {
        $upperFolder = "";
    }
    $list->addItem("..", new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'home', $upperFolder));
}
$folders = null;
$files = null;
foreach ($pluginManager->fileManager->getFolder($folder) as $element) {
    if (FileManager::isVisible($element['name'])) {
        if ($element['type'] == "dir") {
            $name = $element['name'];
            $click = new JUI\Click(JUI\Click::openPlugin, $pluginManager, "home", $folder . $element['name'] . '/');
            $longclick = new JUI\Click(JUI\Click::openPlugin, $pluginManager, "foldersettings", $folder . $element['name'] . '/');
            $key = strtolower($name);
            if (!empty($folders[$key])) {
                $key .= count($folders);
            }
            $folders[strtolower($name)] = array("name" => $name, "click" => $click, "longclick" => $longclick);
        } else {
            if ($element['type'] == "tmpdl") {
                $name = $element['name'];
                $click = new JUI\Click(JUI\Click::openPlugin, $pluginManager, "temp", $folder . $element['name'] . '/');
                $longclick = new JUI\Click(JUI\Click::openPlugin, $pluginManager, "temp", $folder . $element['name'] . '/');
                $key = strtolower($name);
开发者ID:michaelsoftware1997,项目名称:vision-server,代码行数:31,代码来源:home.php

示例2: updateUserFileList

 static function updateUserFileList($id = 0)
 {
     global $loginManager;
     if (WEBSOCKET != 1 || empty($id) || !is_numeric($id)) {
         $id = $loginManager->getId();
     }
     $basedir = dirname(dirname(__FILE__)) . '/data/user_' . $id . '/files';
     $audio = null;
     $video = null;
     $images = null;
     $directory = new RecursiveDirectoryIterator($basedir);
     $objects = new RecursiveIteratorIterator($directory, RecursiveIteratorIterator::SELF_FIRST);
     foreach ($objects as $name => $object) {
         $extension = FileManager::getExtension($name);
         if (!FileManager::isVisible($object)) {
             continue;
         }
         if (in_array(strtoupper($extension), FileManager::EXTENSION_IMAGES)) {
             $images[] = str_replace($basedir, '', $name);
         } else {
             if (in_array(strtoupper($extension), FileManager::EXTENSION_VIDEO)) {
                 $video[] = str_replace($basedir, '', $name);
             } else {
                 if (in_array(strtoupper($extension), FileManager::EXTENSION_AUDIO)) {
                     $audio[] = str_replace($basedir, '', $name);
                 }
             }
         }
     }
     if (empty($images)) {
         $images = array();
     }
     if (empty($audio)) {
         $audio = array();
     }
     if (empty($video)) {
         $video = array();
     }
     $datei = fopen(dirname(dirname(__FILE__)) . '/data/user_' . $id . '/.userfiles/image.json', "w+");
     fwrite($datei, json_encode($images));
     fclose($datei);
     $datei = fopen(dirname(dirname(__FILE__)) . '/data/user_' . $id . '/.userfiles/video.json', "w+");
     fwrite($datei, json_encode($video));
     fclose($datei);
     $datei = fopen(dirname(dirname(__FILE__)) . '/data/user_' . $id . '/.userfiles/audio.json', "w+");
     fwrite($datei, json_encode($audio));
     fclose($datei);
 }
开发者ID:michaelsoftware1997,项目名称:vision-server,代码行数:48,代码来源:FileManager.php

示例3: array

    }
    $pluginManager->redirect($pluginManager, 'home', $folder);
}
if (!empty($folder)) {
    $list = array("..");
    $upperFolder = dirname($folder);
    if ($upperFolder == ".") {
        $upperFolder = "";
    }
    $actions = array('openPlugin("plg_files","moveshare","' . $upperFolder . '")');
} else {
    $list = array();
    $actions = array();
}
foreach ($pluginManager->fileManager->getFolder($folder) as $element) {
    if (FileManager::isVisible($element['name']) && $element['type'] == "dir") {
        $list[] = $element['name'];
        $actions[] = 'openPlugin("plg_files","moveshare","' . $folder . $element['name'] . '/")';
    }
}
?>

[
	{
		"type":"heading",
		"value":"Dateien hochladen"
	},{
		"type":"list",
		"value":<?php 
echo json_encode($list);
?>
开发者ID:michaelsoftware1997,项目名称:vision-server,代码行数:31,代码来源:moveshare.php

示例4: var_dump

<?php

$jUI->add(new JUI\Heading('Auf dieses Plugin kann nur über die API zugegriffen werden.'));
var_dump(FileManager::isVisible("Filme/.dav/Shooter.mp4"));
开发者ID:michaelsoftware1997,项目名称:vision-server,代码行数:4,代码来源:home.php


注:本文中的FileManager::isVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。