mgd_create_person

Name

mgd_create_person -- Create a person record

Synopsis

int mgd_create_person(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)

Creates a new person record with the provided parameters.

Returns the id of the created record if successfull. Returns false on failure.

Example

<?php
 $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://www.envida.nl";
 $email      = "info@nl.envida.net";
 $topic      = 13;
 $department = 17;
 $office     = 169;
 $extra      = 31;

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