public static function getUserFirstName(User $user, $defaultToLabel = false)
    {
        $firstName = self::getUserStringProp($user, GenerisRdf::PROPERTY_USER_FIRSTNAME);

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

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