public function save_section($section) { $table = new SectionTable(); if ($section->id) { $ret = $table->update_section($section); if ($ret) { return $section->id; } else { return $ret; } } return $table->insert_section($section); }
public function update_video($section) { $sectTab = new SectionTable(); return $sectTab->update_section($section); }