mgd_update_person

Name

mgd_update_person -- Update a person record

Synopsis

bool mgd_update_person(int id, string firstname, string lastname, string birthdate, string street, string postcode, string city, string handphone, string homephone, string workphone, string homepage, string email, int topic, int department, int office, string extra);

Description

Minimum version: Midgard 1.0 (Land Rover)

Updates the person record with id id with the provided parameters. To modify a person record, the user must be either logged in as the person being modified or owner in a group the person belongs to.

Returns true if successfull. Returns false on failure.

Example

<?php
 $id         = 13;
 $firstname  = "Armand";
 $lastname   = "Verstappen";
 $birthdate  = "1968-12-16";
 $street     = "Secret Street 13";
 $postcode   = "1000 AA";
 $city       = "Boerenstronkadeel";
 $handphone  = "+31201234567";
 $homephone  = "+31207654321";
 $workphone  = "+31201234567";
 $homepage   = "http://nl.envida.net";
 $email      = "info@nl.envida.net";
 $topic      = 13;
 $department = 17;
 $office     = 169;
 $extra      = 31;

 mgd_update_person( $id, $firstname, $lastname, $birthdate, $street, $postcode,
                    $city, $handphone, $homephone, $workphone, $homepage,
                    $email, $topic, $department, $office, $extra);
?>