本文整理匯總了PHP中file::file_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP file::file_list方法的具體用法?PHP file::file_list怎麽用?PHP file::file_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類file
的用法示例。
在下文中一共展示了file::file_list方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getForm
/**
* retourne un tableau de tout les itemLabel de toutes les form de $app
* @param [type] $app [description]
* @return [type] [description]
*/
function getForm($app)
{
$formDir = DIR_APP . "/" . $app . "/form";
$formList = file::file_list($formDir);
$formLabelList = [];
foreach ($formList as $key => $formFile) {
// $formLabelList[$form];
include $formDir . "/" . $formFile;
$formName = basename($formFile, ".php");
$form = new $formName();
foreach ($form->formList as $keyFormItem => $valueFormItem) {
$formLabelList[$keyFormItem . "Label"] = "";
}
foreach ($form->stepTitle as $keyFormStep => $valueFormStep) {
$formLabelList[$valueFormStep . "Step"] = $valueFormStep;
}
}
return $formLabelList;
}
示例2: appAutoload
<?php
$appAutoload = new appAutoload();
$appAutoload->mod("file");
$d = file::file_list(DIR_SNIPPETS);
示例3: appAutoload
<?php
$appAutoload = new appAutoload();
$appAutoload->mod("file");
$dir = DIR_APP;
$d["countApp"] = count(file::folder_list($dir, false));
$d["countRoute"] = count($c->routing);
$d["countService"] = count($c->services);
$d["countSnippet"] = count(file::file_list(DIR_SNIPPETS, false));
$d["countProject"] = count(file::folder_list(DIR_PROJECTS, false));
$d["countUser"] = count(file::folder_list(DIR_USERS, false)) - 1;
示例4:
<?php
$appAutoload->mod("file");
$item = "perso-1";
$anim = "intro";
$byLine = 5;
$folderScan = "anim/" . $item . "/" . $anim . "/";
$web = WEB_RESSOURCES . "/" . $folderScan;
$dirRessource = DIR_RESSOURCES . "/" . $folderScan;
$list = file::file_list($dirRessource);
?>
<h1><?php
echo $folderScan;
?>
</h1>
<?php
echo $list;
示例5: appAutoload
<?php
// extract($send);
$appAutoload = new appAutoload();
$appAutoload->mod("file");
$d = file::file_list(DIR_PHOTOS . "/000", true);