Record::addOwner - jcobban/Genealogy GitHub Wiki

$record->addOwner($username)

Up: class Record

This adds the specified user as an owner of this instance of Record.

parameter description
$username This is a string which is used to locate an instance of User based upon the username field of the User record. If $username is omitted then the current user is added as an owner.

This method returns true if ownership was added and false if the user was already an owner of the record.

Next: $record->getErrors()