Exemplo n.º 1
0
 /**
  * Table
  */
 public static function table($table)
 {
     if (!self::$path) {
         self::$path = $_SERVER['DOCUMENT_ROOT'] . '/jdb/';
     }
     if (!self::exists($table)) {
         self::$error = array('code' => 102, 'message' => 'Table: "' . $table . '" doesnt exists;');
         return false;
     }
     return new self($table);
 }