![]() |
Support For Custom Datastores I'd like to extend the Memcache datastore* and it would be terribly nice if we could simply define our own datastore... in init.php* it would be as simple as changing this: PHP Code: if ($datastore_class != 'vB_Datastore') { require_once(DIR . '/includes/class_datastore.php'); } to this: PHP Code: if ($datastore_class != 'vB_Datastore') { if (substr($datastore_class* 0* 3) == 'vB_') { require_once(DIR . '/includes/class_datastore.php'); } else { require_once(DIR . '/includes/class_datastore_' . $datastore_class . '.php'); } } ...or something along those lines. If the datastore class you want to use starts with "vB_"* use the standard class_datastore.php file... if it's something else* use a file named by the datastore. |
| الساعة الآن 01:10 PM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir