User::getId - jcobban/Genealogy GitHub Wiki

$user->getId()

Up: class User

This gets the current value of the unique numeric key of the User.

It overloads the base implementation so that the value of the auto-increment index 'id' is returned instead of the value of the primary key 'username'. This makes the behavior of this function consistent with the method getId in those classes where the primary key field is the auto-increment index.

This method returns the current value of the numeric index 'id'. This method returns null if the instance of User does not correspond to an existing record in the database table.

Next: $user->getName()