public function StationInfo($date, $isall = true) { $ad1_date = date('Y_m_d', strtotime($date)); $where_connect = " date = '{$date}'"; $where_process = " date = '{$ad1_date}'"; // $where_connect = " date = '2015-02-05'"; // $where_process = " date = '2015_02_05'"; $obj = new Psys_StationRule(); if ($isall) { return $obj->StationInfo($where_connect, $where_process); } else { return $obj->SingleStationInfo($where_connect, $where_process); } }