public function findAll() { $oDir = new _dir($this->sGenere); $tProjet = array(); foreach ($oDir->getListDir() as $oDir) { $tProjet[] = $oDir->getName(); } return $tProjet; }
public function getListTable() { $oDir = new _dir($this->_tConfig[$this->_sConfig . '.database']); $tDir = $oDir->getList(); $tSDir = array(); foreach ($tDir as $oDir) { $tSDir[] = preg_replace('/\\.csv/', '', $oDir->getName()); } return $tSDir; }
echo $sPath; ?> </h2> <div class="smenu"> <ul> <h3>Sélectionnez le répertoire où copier le projet:</h3> <li><a href="<?php echo _root::getLink('builder::export', array('id' => _root::getParam('id'), 'path' => $sParent)); ?> #createon">..</a></li> <?php foreach ($tDir as $oDir) { ?> <li><a href="<?php echo _root::getLink('builder::export', array('id' => _root::getParam('id'), 'path' => $sPath . '/' . $oDir->getName())); ?> #createon"><?php echo $oDir->getName(); ?> </a></li> <?php } ?> </ul> </div> <form action="" method="POST"> <input type="hidden" name="from" value="<?php echo _root::getParam('id'); ?> " />
public function codeArbo($sProject) { $oDir = new _dir('data/genere/' . $sProject); $tDir = $oDir->getListDir(); $tFileAndDir = array(); foreach ($tDir as $oDir) { $tFileDir[$oDir->getName()]['dir'] = $this->getListDir($oDir); $tFileDir[$oDir->getName()]['file'] = $this->getListFile($oDir); } ksort($tFileDir); $oView = new _view('menu::codearbo'); $oView->tDir = $tDir; $oView->tFileDir = $tFileDir; return $oView; }