예제 #1
0
?>
</p><p style="font-weight: bold;">Add a stack of employer extras for ken123... </p><p><?php 
$extras = array();
$data = array();
$data['employer'] = $employer_id;
$data['charges'] = -10;
$extras[0] = $data;
$data = array();
$data['employer'] = $employer_id;
$data['charges'] = 0.5;
$extras[1] = $data;
$data = array();
$data['employer'] = $employer_id;
$data['charges'] = -0.457;
$extras[3] = $data;
if ($employer->create_extras($extras)) {
    print_array($employer->get_extras());
} else {
    echo "failed";
    exit;
}
?>
</p><p style="font-weight: bold;">Update one of the fees for stanley.ch... </p><p><?php 
$employer = new Employer('stanley.ch');
$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)) {