Difference between revisions of "User objects quick guide"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'The user object is one of the main components of the LJ code. Here is a quick tour of some commonly used functions. == Find out what kind of account it is == <source lang="per...')
(No difference)

Revision as of 05:10, 25 March 2009

The user object is one of the main components of the LJ code. Here is a quick tour of some commonly used functions.

Find out what kind of account it is

$u->is_community
$u->is_personal
$u->is_syndicated
$u->is_identity

Managing WTF relationships

Managing watch/trust/friend relationships: see WTF Backend.

Community functions

Getting members:

$u->member_userids