Пример #1
0
 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);
 }
Пример #2
0
 public function update_video($section)
 {
     $sectTab = new SectionTable();
     return $sectTab->update_section($section);
 }