Example #1
0
 public static function &get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 public function get_days($start_timestamp, $end_timestamp, $flag = 0)
 {
     $dao = DB_PMTDataObject::get_instance();
     $sql = "select * from calendar where timestamp >= " . $start_timestamp . " and timestamp <= " . $end_timestamp . " and is_valid=" . $flag;
     $ret = $dao->query($sql, null);
     return $ret ? $ret : false;
 }