39 lines
391 B
PHP
39 lines
391 B
PHP
<?php
|
|
|
|
namespace manager\module;
|
|
|
|
class firstModule{
|
|
|
|
|
|
public static function getUsers(){
|
|
return \manager\Database::getPDO()->query("SELECT * FROM user ORDER BY id_user")->fetchAll();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static function returnvar($var){
|
|
var_dump('return var'); return $var;
|
|
}
|
|
|
|
|
|
public static function printvar($var){
|
|
var_dump('var = '); var_dump($var);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|