function submit() { $videos = new Model_videos(); $logs = new Model_logs(); $this->clean_files(); $videos->delete($this->video["id"]); $logs->d("front", "live/video/delete: " . $this->video["filename"]); $this->is_success = true; return $this->is_success; }
function run() { $lives = new Model_lives(); $videos = new Model_videos(); $logs = new Model_logs(); $this->set("logs", $logs->select_all()); $this->set("count_lives", $lives->count()); $this->set("count_videos", $videos->count()); $this->set("sum_filesize", $videos->sum_filesize()); $this->render(); }
function submit() { $lives = new Model_lives(); $videos = new Model_videos(); $logs = new Model_logs(); $this->clean_files(); $videos->delete_by_live_id($this->live["id"]); $lives->delete($this->live["id"]); $logs->d("front", "live/delete: " . $this->live["title"]); $this->is_success = true; return $this->is_success; }
function submit() { $lives = new Model_lives(); $logs = new Model_logs(); $result = $lives->insert_into($this->live_id, $this->live_title); $logs->d("front", "downloader/register: " . $this->live_title); if ($result) { $this->is_success = true; } else { $this->is_success = false; $this->submission_error[] = "放送の登録に失敗しました。"; } return $this->is_success; }