Ajout travail auré @checkParam()
This commit is contained in:
xdrm-brackets 2015-11-18 09:38:02 +01:00
commit ad091e8f9a
4 changed files with 37 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class DataBase{
/* retourne une instance de la classe */
public static function getInstance(){
if( DataBase::$instance == null )
DataBase::$instance = new DataBase("localhost", "sid2", "php", "Qt358nUdyeTxLDM8");
DataBase::$instance = new DataBase("localhost", "sid2", "root", "");
return DataBase::$instance;
}
@ -595,4 +595,4 @@ class DataBase{
}
?>
?>

View File

@ -202,4 +202,39 @@
}
/*function checkParamBIS( ...$checkIt ) {
// checkIt[] Tableau | checkIT[][] Types des Variables | checkIt[][][] Formats des variables | checkIt[][][][] Valeur des varialbes
$checker = false;
for( $i = 0; $i < func_num_args(); $i++) {
for( $j = 0; $j < sizeof( $checkIt[$i] ); $j++) {
switch ($checkIt[$i][$j]) {
case 'string': if( is_string( $checkIt[$i][$j][$j][$j] ) )
$checker = is_string( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] );
break;
case 'int': if( is_string( $checkIt[$i][$j][$j][$j]) )
$checker = is_int( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] );
break;
case 'numeric': if( is_string( $checkIt[$i][$j][$j][$j]]) )
$checker = is_numeric( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] );
break;
case 'array': if( is_numeric( $checkIt[$i][$j][$j][$j]) )
$checker = is_array( $checkIt[$i][$j][$j][$j] ) && count( $checkIt[$i][$j][$j] ) > 0;
break;
}
}
}
return $checker;
}*/
?>

BIN
src/nouveau_modele.xlsx Normal file

Binary file not shown.

BIN
xdoc/nouveau_modele.xlsx Normal file

Binary file not shown.