table.php 712 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. $table->beginTransaction($query)
  4. ->set($date)
  5. ->commit();
  6. */
  7. require_once "../redis/function.php";
  8. class Table
  9. {
  10. protected $dbh;
  11. protected $table;
  12. protected $redis;
  13. protected $errorMessage;
  14. protected $field_setting;
  15. function __construct($db,$table,$user="",$password="",$redis=false) {
  16. $this->dbh = new PDO($db, $user, $password,array(PDO::ATTR_PERSISTENT=>true));
  17. $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
  18. $this->redis = $redis;
  19. $this->table = $table;
  20. }
  21. public function setField($setting){
  22. $this->field_setting = $setting;
  23. }
  24. public function syncList($time){
  25. }
  26. public function syncGet($time){
  27. }
  28. }
  29. ?>