Beispiel #1
0
$fees = $employer->get_fees();
$id = $fees[5]['id'];
$data = array();
$data['id'] = $id;
$data['service_fee'] = 11.5;
$data['premier_fee'] = 0.5;
if ($employer->update_fee($data)) {
    print_array($employer->get_fees());
} else {
    echo "failed";
    exit;
}
?>
</p><p style="font-weight: bold;">Delete employer extras for ken123... </p><p><?php 
$employer = new Employer('ken123');
if ($employer->delete_extras()) {
    print_array($employer->get_extras());
} else {
    echo "failed";
    exit;
}
?>
</p><p style="font-weight: bold;">Delete employer fees for ken123... </p><p><?php 
if ($employer->delete_fees()) {
    print_array($employer->get_fees());
} else {
    echo "failed";
    exit;
}
?>
</p>