Ejemplo n.º 1
0
 /**
  * スケジュールインスタンス生成
  *
  * @param string $community_id 該当のコミュニティid
  * @param string $schedule_id 該当のスケジュールid
  * @return object ACSScheduleオブジェクト
  */
 function &get_schedule_instance($community_id, $schedule_id)
 {
     $sql = "SELECT SCH.*, COM.community_name AS user_community_name " . " FROM schedule AS SCH LEFT JOIN community AS COM " . " ON SCH.user_community_id = COM.community_id " . " WHERE SCH.community_id = " . pg_escape_string($community_id) . " AND SCH.schedule_id = " . pg_escape_string($schedule_id);
     $row = ACSDB::_get_row($sql);
     $schedule = new ACSSchedule($community_id, $row['user_community_id'], $schedule_id);
     $schedule->initialize($row);
     return $schedule;
 }