From: Jens Frank Date: Sat, 21 May 2005 10:15:39 +0000 (+0000) Subject: Class for storing objects in an external DB cluster X-Git-Tag: 1.5.0alpha2~138 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=ac3b9bd93ec820da2a51317678e7d9c08d6f415d;p=lhc%2Fweb%2Fwiklou.git Class for storing objects in an external DB cluster --- diff --git a/includes/ExternalStoreDB.php b/includes/ExternalStoreDB.php new file mode 100644 index 0000000000..de4d3ccebf --- /dev/null +++ b/includes/ExternalStoreDB.php @@ -0,0 +1,37 @@ +getConnection( DB_SLAVE ); + + $ret = $db->selectField( 'text', 'text_text', array( 'text_id' => $id ) ); + + return $ret; + } + + /* XXX: may require other methods, for store, delete, + * whatever, for initial ext storage + */ +} +?>