PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/class/class.database.php

http://freshdns.googlecode.com/
PHP | 32 lines | 19 code | 13 blank | 0 comment | 0 complexity | c97b7a38daa5e76140fc2ac16f84919c MD5 | raw file
 1<?
 2abstract class database
 3{	
 4	abstract function initiate ();
 5	
 6	abstract function query_slave($query);
 7	
 8	abstract function query_master($query);
 9	
10	abstract function error ();
11	
12	abstract function fetch_array($query);
13	
14	abstract function num_rows ($query);
15	
16	abstract function escape_string ($string);
17	
18	abstract function setUsername ($username);
19	
20	abstract function setPassword ($password);
21	
22	abstract function setDatabase ($database);
23	
24	abstract function setMasterHost ($master);
25	
26	abstract function setSlaveHosts ($slaves = array());
27	
28	abstract function setReplication ($replication);
29	
30	abstract function setVars ($username, $password, $database, $master, $slave = array(), $replication='');
31}
32?>