public function findAll()
 {
     $oDir = new _dir($this->sGenere);
     $tProjet = array();
     foreach ($oDir->getListDir() as $oDir) {
         $tProjet[] = $oDir->getName();
     }
     return $tProjet;
 }
Example #2
0
 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;
 }
Example #3
0
echo $sPath;
?>
</h2>
<div class="smenu">
<ul>
<h3>S&eacute;lectionnez le r&eacute;pertoire o&ugrave; 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');
?>
" />
Example #4
0
 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;
 }