public static function getUserLastName(User $user, $defaultToLabel = false)
    {
        $lastName = self::getUserStringProp($user, GenerisRdf::PROPERTY_USER_LASTNAME);

        if (empty($lastName) && $defaultToLabel) {
            $lastName = self::getUserLabel($user);
        }
        
        return $lastName;
    }
public static function getUserLastName(User $user, $defaultToLabel = false)
    {
        $lastName = self::getUserStringProp($user, GenerisRdf::PROPERTY_USER_LASTNAME);

        if (empty($lastName) && $defaultToLabel) {
            $lastName = self::getUserLabel($user);
        }
        
        return $lastName;
    }
public static function getUserLastName ( User $ user , $ defaultToLabel = false ) { $ lastName = self :: getUserStringProp ( $ user , GenerisRdf :: PROPERTY_USER_LASTNAME ) ; if ( empty ( $ lastName ) && $ defaultToLabel ) { $ lastName = self :: getUserLabel ( $ user ) ; } return $ lastName ; }
Gets the user's last name
@param User $user
@param bool $defaultToLabel
@return string
Gets the user s last name