/** * 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; }
<?php $appAutoload = new appAutoload(); $appAutoload->mod("file"); $d = file::file_list(DIR_SNIPPETS);
<?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;
<?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;
<?php // extract($send); $appAutoload = new appAutoload(); $appAutoload->mod("file"); $d = file::file_list(DIR_PHOTOS . "/000", true);