Exemple #1
0
         $updateStatus = $bd->updateBandName($band_name);
     }
     if ($updateStatus && !is_null($band_formed_date)) {
         $updateStatus = $bd->updateBandFormedDate($band_formed_date);
     }
     if ($updateStatus) {
         $updateStatus = $bd->updateBandBreakUpDate($band_break_up_date);
     }
     if ($updateStatus && !is_null($band_cover)) {
         $updateStatus = $bd->updateBandCover($band_cover);
     }
     if ($updateStatus) {
         $updateStatus = $bd->updateBandBio($band_bio);
     }
     if ($updateStatus) {
         $updateStatus = $bd->updateLabelId($label_id);
     }
     if ($updateStatus) {
         $bd->refresh();
         $status_message = WEB::_success('Band Successfully updated!');
     } else {
         $status_message = WEB::_error('There is an error when you were updating the Band.', null);
     }
 } else {
     $status_message = WEB::_error('There is an error when you were updating the Band. Please review the form below!', $form_error);
 }
 // Handle adding multiple performers
 if ($b->updatePerformersWithBandId($bd->getBandId(), WEB::_select('performer_ids'))) {
     $bandmateList = $b->getBandmateAsSelectWithBandId($bd->getBandId());
     $status_message = WEB::_success('Band Updated Successfully!');
 } else {