FamilyTree deleteIndivid.php - jcobban/Genealogy GitHub Wiki

Up: Family Tree Implementation

Source Code

This script deletes instances of class Person from the Family Tree. This is a safe operation as it can only be invoked by a user that is an owner of the instance of Person, and only deletes the instance of Person if the Person has no parents, spouses, or children. When invoked by method='get' it supports the following parameters.

parameter description
idir Unique numeric identifier of the instance of Person to delete. For backwards compatibility this can be specified using the 'id' parameter.
toidir If the current user is an administrator then this parameter permits safely deleting a range of instances of Person. The script deletes all instances of Person with internal numeric identifiers between idir and toidir that have no parents, spouses, or children.
lang the requested language of communication as a BCP 47 identifier. ]

Next: deleteLocation.php