function actDeact($lVolID, $strSetActive)
 {
     $lVolID = (int) $lVolID;
     $bSetActive = $strSetActive == 'true';
     $this->load->model('vols/mvol', 'clsVol');
     $this->clsVol->activateDeactivateVolunteer($lVolID, $bSetActive);
     redirect_VolRec($lVolID);
 }
Пример #2
0
function redirectViaContextType($enumType, $lForeignID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    switch ($enumType) {
        case CENUM_CONTEXT_AUCTION:
            redirect_Auction($lForeignID);
            break;
        case CENUM_CONTEXT_AUCTIONITEM:
            redirect_AuctionItem($lForeignID);
            break;
        case CENUM_CONTEXT_AUCTIONPACKAGE:
            redirect_AuctionPackage($lForeignID);
            break;
        case CENUM_CONTEXT_BIZ:
            redirect_Biz($lForeignID);
            break;
        case CENUM_CONTEXT_CLIENT:
            redirect_Client($lForeignID);
            break;
        case CENUM_CONTEXT_GIFT:
            redirect_Gift($lForeignID);
            break;
        case CENUM_CONTEXT_GRANTPROVIDER:
            redirect_GrantProvider($lForeignID);
            break;
        case CENUM_CONTEXT_PEOPLE:
            redirect_People($lForeignID);
            break;
        case CENUM_CONTEXT_SPONSORSHIP:
            redirect_SponsorshipRecord($lForeignID);
            break;
        case CENUM_CONTEXT_USER:
            redirect_User($lForeignID);
            break;
        case CENUM_CONTEXT_VOLUNTEER:
            redirect_VolRec($lForeignID);
            break;
        case CENUM_CONTEXT_LOCATION:
            redirect_ClientLocRec($lForeignID);
            break;
        case CENUM_CONTEXT_ORGANIZATION:
            redirect_Organization($lForeignID);
            break;
        case CENUM_CONTEXT_STAFF:
            redirect_User($lForeignID);
            break;
        case CENUM_CONTEXT_INVITEM:
            redirect_InventoryItem($lForeignID);
            break;
        case CENUM_CONTEXT_GENERIC:
        default:
            screamForHelp($enumType . ': Switch type not implemented</b><br>error on <b>line:</b> ' . __LINE__ . '<br><b>file:</b> ' . __FILE__ . '<br><b>function:</b> ' . __FUNCTION__);
            break;
    }
}