In Files

Parent

Class Index [+]

Quicksearch

User

This class is used for getting the user from the wordpress database

Examples:

  User.find(1).name

The above will find the user with id of 1 and retrieve their display name

Public Instance Methods

email() click to toggle source

Grab the email of the selected user

    # File lib/wpb/user.rb, line 50
50:         def email
51:                 user_email
52:         end
email=(email) click to toggle source

Set the email of the selected user

    # File lib/wpb/user.rb, line 57
57:         def email= email
58:                 self.user_email = email
59:         end
name() click to toggle source

Grab the name of the selected user

    # File lib/wpb/user.rb, line 22
22:         def name
23:                 display_name
24:         end
name=(name) click to toggle source

Set the name of the selected user

    # File lib/wpb/user.rb, line 29
29:         def name= name
30:                 self.display_name = name
31:         end
username() click to toggle source

Grab the username of the selected user

    # File lib/wpb/user.rb, line 36
36:         def username
37:                 user_login
38:         end
username=(username) click to toggle source

Set the username of the selected user

    # File lib/wpb/user.rb, line 43
43:         def username= username
44:                 self.user_login = username
45:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.