FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Design-patterns/DAO.php at master · LaughingMeMe/Design-patterns · GitHub
LaughingMeMe
/
Design-patterns
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Design-patterns
/
DAO.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (21 loc) · 453 Bytes
Breadcrumbs
Design-patterns
/
DAO.php
Copy path
File metadata and controls
34 lines (21 loc) · 453 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
//数据对象映射模式
//行为型模式,一个对象对应一张表,如何创建提供访问任何数据源的对象
class
baseDAO{
protected
$
_db
=
null
;
public
function
__construct
(
$
config
){
$
this
->
_db
=
new
Mysql
();
}
public
function
select
(){
}
public
function
update
(
$
key
,
$
value
){
}
public
function
delete
(){
}
public
function
insert
(){
}
}
class
Member
extends
baseDAO{
protected
$
_table
=
'
member
'
;
}
?>
Back
|
FazBrowse Home
|
New Git URL