本文整理汇总了PHP中Files::file_list方法的典型用法代码示例。如果您正苦于以下问题:PHP Files::file_list方法的具体用法?PHP Files::file_list怎么用?PHP Files::file_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Files
的用法示例。
在下文中一共展示了Files::file_list方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filelist
/**
* Get filelist
*/
public function filelist()
{
$files = Files::file_list(Input::get('module_name'), Input::get('module_id'));
$data = array();
$data['html'] = View::make('sections.file.file_list')->with(array('module_name' => Input::get('module_name'), 'module_id' => Input::get('module_id'), 'num' => Input::get('num'), 'files' => $files))->render();
return $data;
}
示例2:
$_SESSION['curdir'] = $new_dir;
$_SESSION['dirdeep'] = $_SESSION['dirdeep'] - 1;
}
} else {
$new_dir = $_SESSION['curdir'] . '/' . $directory;
$_SESSION['curdir'] = $new_dir;
}
}
// Update total dirs deep
if (!$back_set) {
$_SESSION['dirdeep'] = $_SESSION['dirdeep'] + 1;
}
// Going back in tpl browser, force reset
if ($new_dir == '.') {
// Unset current dir
$_SESSION['curdir'] = '';
$_SESSION['dirdeep'] = '0';
$new_dir = '';
}
// Get and display list of files
$file_list = $Files->file_list($url_id, $new_dir, $tpl_brws);
if (GPXDEBUG && !is_array($file_list)) {
echo 'DEBUG: ' . $file_list . '<br />';
}
if (GPXDEBUG) {
echo 'DEBUG: Dumping file list ...<br />';
echo '<pre>';
var_dump($file_list);
echo '</pre>';
}
$Files->displaydir($file_list, $url_id, $new_dir, $tpl_brws);
示例3: projectsList
public static function projectsList($data)
{
if ($data['page']->feed_id) {
Post::$taxonomy = 2;
$item = Input::get('item');
$wdata['page_url'] = $data['page_url'];
if ($item) {
$post = Post::findURI($item, 1);
if ($post) {
Post::oneView($post->id);
WebAPL\Template::setMetaMultiple(array('description' => $post->text, 'og:description' => $post->text, 'og:title' => $post->title), true);
$wdata["post"] = Post::withDinamicFields($post);
$wdata["post_files"] = Files::file_list('doc_post_lang', $wdata["post"]->post_lang_id);
$data["page"]->text .= View::make("sections.pages.modview.project")->with($wdata);
} else {
throw new Exception("Undefined article '{$item}'", 404);
}
} else {
$wdata["posts"] = Post::postsFeed($data['page']->feed_id, false);
$data["page"]->text .= View::make("sections.pages.modview.projectsList")->with($wdata);
}
}
return static::defaultView($data);
}
示例4: Files
<?php
require 'checkallowed.php';
// No direct access
// URL ID
$url_id = $GPXIN['id'];
$gpx_srvid = $url_id;
require DOCROOT . '/checkallowed.php';
// Check login/ownership
// Show Server Tabs
$tab = 'files';
require 'server_tabs.php';
########################################################################
// Unset current dir
$_SESSION['curdir'] = '';
$_SESSION['dirdeep'] = '0';
// Get list of files
require DOCROOT . '/includes/classes/files.php';
$Files = new Files();
$file_list = $Files->file_list($url_id, false);
// Show directory display
$result = $Files->displaydir($file_list, $url_id);
示例5: dropMultiple
public static function dropMultiple($module_name, $module_id)
{
foreach (Files::file_list($module_name, $module_id) as $file) {
Files::dropFile($file->path, $file->id);
Files::destroy($file->id);
}
}