Example #1
0
 /**
  * 
  * @param array $fl
  * @param \App\Models\Anak $anak
  * @return \App\Models\Files
  */
 public static function saveOrUpdate($file, $anak = null)
 {
     $fl = null;
     if (isset($file['id'])) {
         $fl = FilesDAO::update($file, $anak);
     } else {
         $fl = FilesDAO::save($file, $anak);
     }
     return $fl;
 }