From No LJ Ads Wiki
A 'lite' version of a User which the system often has more readily-available than a full version.
[edit] Members
Link{} data_link
| Links to various machine-readable data sources relating to this user
|
string[] data_links_order
| An array of data views which can be used to order the UserLite.data_link hash.
|
string journal_type
| Type of account: P (personal), C (community), Y (syndicated), N (news), S (shared), I (external identity) etc (Read-only)
|
string[] link_keyseq
| Array of keys which can be passed into UserLite.get_link(string key).
|
string name
| User's formatted name, ex: John Q. Public (Read-only)
|
string username
| Canonical Username, ex: johnqpub. Note that if UserLite.journal_type is an external identity, there will be no username, so this field will be a display version of their URL, longer than 15 characters, and with characters other than a-z, 0-9 and underscore. (Read-only)
|
[edit] Methods
as_string() : string
| Return value of UserLite.ljuser().
|
base_url() : string
| Returns URL of user's journal.
|
equals(UserLite u) : bool
| Returns true if the two user objects refer to the same user. Use this rather than comparing usernames, since usernames aren't globally unique.
|
get_link(string key) : Link
| Returns a link based on the given key, or null if the link is unavailable
|
ljuser() : string
| Pass UserLite object to LJ::ljuser() function and return a string.
|
ljuser(Color link_color) : string
| Pass UserLite object to LJ::ljuser() function and return a string. The color of the link will be link_color.
|
print() : void
| Print value of UserLite.as_string().
|
print_linkbar() : void
| Print the linkbar for this user/journal.
|
tag_manage_url() : string
| Returns URL to user's tag management page.
|