-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.php
56 lines (46 loc) · 1023 Bytes
/
User.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace App\Models;
use PDO;
/**
* Example user model
*
* Requiere PHP8.2
*
* Desarrolla JARS Costa Rica
* www.jarscr.com
* Telefono: 4000-2528
*
* Programador: Alfredo Rodriguez
*
**/
class User extends \Core\Model
{
/**
* Get all the users as an associative array
*
* @return array
*/
public static function getAll()
{
// Se comenta para que Travis Compile sin DB
//$db = static::getDB();
//$stmt = $db->query('SELECT user_id, username FROM users');
//return $stmt->fetchAll(PDO::FETCH_ASSOC);
return array('Usuario'=>'Demo','Email'=>'[email protected]');
}
public static function getLangAll()
{
$lang = static::getLang();
return $lang;
}
public static function getAllModules()
{
$modules = static::getModules();
return $modules;
}
public static function getAllCredits()
{
$credits = static::getCredits();
return $credits;
}
}