Skip to content

Commit 4e9c0bf

Browse files
authored
Initializing classes
Initializing classes to split modeling from viewing
1 parent 95d741d commit 4e9c0bf

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

lib/Costumers/Costumers.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
class Costumers
3+
{
4+
/**
5+
*
6+
*/
7+
public function __construct()
8+
{
9+
}
10+
11+
/**
12+
*
13+
*/
14+
public function __destruct()
15+
{
16+
}
17+
18+
/**
19+
* Set friendly columns\' names to order tables\' entries
20+
*/
21+
public function setOrderingValues()
22+
{
23+
$ordering = [
24+
'id' => 'ID',
25+
'f_name' => 'First Name',
26+
'l_name' => 'Last Name',
27+
'gender' => 'Gender',
28+
'phone' => 'Phone',
29+
'created_at' => 'Created at',
30+
'updated_at' => 'Updated at'
31+
];
32+
33+
return $ordering;
34+
}
35+
}
36+
?>

lib/Users/Users.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
class Users
3+
{
4+
/**
5+
*
6+
*/
7+
public function __construct()
8+
{
9+
}
10+
11+
/**
12+
*
13+
*/
14+
public function __destruct()
15+
{
16+
}
17+
18+
/**
19+
* Set friendly columns\' names to order tables\' entries
20+
*/
21+
public function setOrderingValues()
22+
{
23+
$ordering = [
24+
'id' => 'ID',
25+
'user_name' => 'User Name',
26+
'admin_type' => 'Admin Type'
27+
];
28+
29+
return $ordering;
30+
}
31+
}
32+
?>

0 commit comments

Comments
 (0)