public function extractBandMemberObject(&$result, $skeleton = false)
 {
     $member = null;
     try {
         if ($result[BandMemberDao::BAND_ID_FIELD] !== null) {
             $member = new BandMember();
             $member->setVariable(BandMember::MEMBER_ID, $result[BandMemberDao::MEMBER_ID_FIELD]);
             $member->setVariable(BandMember::FIRST_NAME, $result[BandMemberDao::FIRST_NAME_FIELD]);
             $member->setVariable(BandMember::LAST_NAME, $result[BandMemberDao::LAST_NAME_FIELD]);
             if (!$skeleton) {
                 //TODO
                 $member->setVariable(BandMember::BIO, $result[BandMemberDao::BIO_FIELD]);
                 $member->setVariable(BandMember::ADMIN, $result[BandMemberDao::ADMIN_FIELD]);
                 $member->setVariable(BandMember::CURRENT, $result[BandMemberDao::CURRENT_FIELD]);
                 $member->setVariable(BandMember::START_DATE, $result[BandMemberDao::START_DATE_FIELD]);
                 $member->setVariable(BandMember::END_DATE, $result[BandMemberDao::END_DATE_FIELD]);
             }
         }
     } catch (PDOException $ex) {
         echo "extractMemberObject error: " . $ex->getMessage();
     }
     return $member;
 }
 public function updateBandMemberAdmin($memberID, $targetMemberID, $bandID, $admin, $dbConnection = null)
 {
     $processed = false;
     try {
         $bandMember = new BandMember();
         $bandMember->setVariable(BandMember::BAND_ID, $bandID);
         $bandMember->setVariable(BandMember::MEMBER_ID, $targetMemberID);
         $bandMember->setVariable(BandMember::ADMIN, $admin);
         $processed = BandMemberDao::updateBandMember($memberID, $bandMember, $dbConnection);
     } catch (Exception $ex) {
         echo "activateBandMember error: " . $ex->getMessage();
         $processed = false;
     }
     return $processed;
 }