Beispiel #1
0
         $obj->organizationID = $_GET['organizationID'];
     }
     try {
         $obj->save();
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     break;
 case 'deleteMonth':
     if ($_GET['publisherPlatformID'] && $_GET['publisherPlatformID'] != "0") {
         $obj = new PublisherPlatform(new NamedArguments(array('primaryKey' => $_GET['publisherPlatformID'])));
     } else {
         $obj = new Platform(new NamedArguments(array('primaryKey' => $_GET['platformID'])));
     }
     try {
         $obj->deleteMonth($_GET['resourceType'], $_GET['archiveInd'], $_GET['year'], $_GET['month']);
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     break;
 case 'updateOverride':
     $monthlyUsageSummary = new MonthlyUsageSummary(new NamedArguments(array('primaryKey' => $_POST['monthlyUsageSummaryID'])));
     $monthlyUsageSummary->overrideUsageCount = $_POST['overrideUsageCount'];
     try {
         $monthlyUsageSummary->save();
         echo "Override has been updated";
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     break;
 case 'ignoreOutlier':