Пример #1
0
/**
 * 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
0
<?php

$appAutoload = new appAutoload();
$appAutoload->mod("file");
$d = file::file_list(DIR_SNIPPETS);
Пример #3
0
<?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
0
<?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
0
<?php

// extract($send);
$appAutoload = new appAutoload();
$appAutoload->mod("file");
$d = file::file_list(DIR_PHOTOS . "/000", true);