Something went wrong while setting issue due date.
create campaign! class and so on
Do not mix this with campaigns with s. Campaign class, class shall allow create/update/delete a campaign.
Campaigns->getSomethingBySomething() returns Campaign-Object.
Campaign Class has all the attributes mapped from table except protected ones like you can't update "id", "modified" or "created" field but would allow
$wantedCampaign = $campaigns->getById( 42 ); --$wantedCampaign->menge; $wantedCampaign->update();
however this is horrible because menge may be reduced by another thread already, don't use that in production ;) However imagine
$foo = new Campaign( $_POST['data'] ); $foo->insert(); or $bar = new Campaign(); $bar->sponsor = '...';
for( a hundred times ) { $bar->ziel = '...'; $bar->menge = ...; $bar->insert(); }