Add a new class that aims at providing a simple gateway between stored
[platal.git] / include / platal.inc.php
index 7b491c8..069a661 100644 (file)
@@ -39,8 +39,10 @@ define('NO_HTTPS', 2);
 function pl_autoload($cls, array $pathes = array())
 {
     $cls  = strtolower($cls);
-    if (substr($cls, 0, 3) == 'xdb') {
+    if (starts_with($cls, 'xdb')) {
         $cls = 'xdb';
+    } else if (starts_with($cls, 'pldbtable')) {
+        $cls = 'pldbtableentry';
     }
     $basepath = dirname(dirname(dirname(__FILE__)));