void aim(
[
$format = 'htmlbody']
)
|
|
Template function: display AIM of the user.
NOTE: Replaces spaces with '+' ?!?
Parameters:
void callback_optionsForIdMode(
$value
)
|
|
Parameters:
boolean check_password(
string
$pass, [boolean
$pass_is_md5 = false]
)
|
|
Check password
Parameters:
|
string |
$pass: |
password |
|
boolean |
$pass_is_md5: |
Is the password parameter already MD5()'ed? |
boolean check_perm(
string
$permname, [string
$permlevel = 'any'], [boolean
$assert = false], [mixed
$perm_target = NULL]
)
|
|
Check permission for this user
Parameters:
|
string |
$permname: |
Permission name, can be one of: |
|
string |
$permlevel: |
Permission level |
|
boolean |
$assert: |
Execution will halt if this is !0 and permission is denied |
|
mixed |
$perm_target: |
Permission target (blog ID, array of cat IDs, Item...) |
API Tags:
| Return: | 0 if permission denied |
boolean check_perm_blogowner(
integer
$blog_ID
)
|
|
Check if the user is the owner of the designated blog (which gives him a lot of permissions)
Parameters:
boolean check_perm_blogusers(
string
$permname, string
$permlevel, integer
$perm_target_blog, [Item
$Item = NULL]
)
|
|
Check permission for this user on a specified blog
This is not for direct use, please call User::check_perm() instead
Parameters:
|
string |
$permname: |
Permission name, can be one of the following: - blog_ismember
- blog_post_statuses
- blog_del_post
- blog_comments
- blog_cats
- blog_properties
- blog_genstatic
|
|
string |
$permlevel: |
Permission level |
|
integer |
$perm_target_blog: |
Permission target blog ID |
|
Item |
$Item: |
Item that we want to edit |
API Tags:
void dbdelete(
Log
&$Log
)
|
|
Delete user and dependencies from database
Includes WAY TOO MANY requests because we try to be compatible with MySQL 3.23, bleh!
Parameters:
|
Log |
&$Log: |
Log object where output gets added (by reference). |
Redefinition of:
- DataObject::dbdelete()
- Delete object from DB.
Insert object into DB based on previously recorded changes
Triggers the plugin event AfterUserInsert.
API Tags:
Redefinition of:
- DataObject::dbinsert()
- Insert object into DB based on previously recorded changes.
Update the DB based on previously recorded changes.
Triggers the plugin event AfterUserUpdate.
Redefinition of:
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
void email(
[
$format = 'htmlbody']
)
|
|
Template function: display email of the user
Parameters:
void first_name(
[
$format = 'htmlbody']
)
|
|
Template function: display first name of the user
Parameters:
void get(
string
$parname
)
|
|
Get a param
Parameters:
|
string |
$parname: |
the parameter |
Redefinition of:
- DataObject::get()
- Get a member param by its name
string get_account_name(
)
|
|
Get the name of the account with complete details for admin select lists
Get File object of the user's avatar.
API Tags:
| Return: | This may be NULL. |
string get_avatar_imgtag(
[
$size = 'crop-64x64'], [
$class = 'avatar'], [
$align = '']
)
|
|
Get avatar IMG tag.
Parameters:
Get the Group of the user.
API Tags:
string get_link(
[
$params = array()]
)
|
|
Get link to User
Parameters:
mixed get_media_dir(
[boolean
$create = true]
)
|
|
Get the path to the media directory. If it does not exist, it will be created.
If we're on an admin page, it adds status messages.
Parameters:
|
boolean |
$create: |
Create the directory, if it does not exist yet? |
API Tags:
| Return: | the path as string on success, false if the dir could not be created |
Information Tags:
| Todo: | These status messages should rather go to a "syslog" and not be displayed to a normal user |
| Todo: | dh> refactor this into e.g. create_media_dir() and use it for Blog::get_media_dir, too. |
Get the URL to the media folder
API Tags:
void get_msgform_link(
[string
$form_url = NULL], [string
$before = ' '], [string
$after = ' '], [string
$text = '#'], [string
$title = '#'], [string
$class = '']
)
|
|
Template helper function: Get a link to a message form for this user.
Parameters:
|
string |
$form_url: |
url of the message form |
|
string |
$before: |
to display before link |
|
string |
$after: |
to display after link |
|
string |
$text: |
link text |
|
string |
$title: |
link title |
|
string |
$class: |
class name |
void get_msgform_url(
$formurl
)
|
|
Get message form url
Parameters:
Get the number of posts for the user.
string get_preferred_name(
)
|
|
Get preferred name of the user, according to User::$idmode.
void icq(
[
$format = 'htmlbody']
)
|
|
Template function: display ICQ of the user
Parameters:
void last_name(
[
$format = 'htmlbody']
)
|
|
Template function: display last name of the user
Parameters:
Template function: display user's level
boolean load_from_Request(
)
|
|
Load data from Request form fields.
API Tags:
| Return: | true if loaded data seems valid. |
void login(
[string
$format = 'htmlbody']
)
|
|
Template function: display user's login
Parameters:
void msgform_link(
[string
$form_url = NULL], [string
$before = ' '], [string
$after = ' '], [string
$text = '#'], [string
$title = '#'], [string
$class = '']
)
|
|
Template function: display a link to a message form for this user
Parameters:
|
string |
$form_url: |
url of the message form |
|
string |
$before: |
to display before link |
|
string |
$after: |
to display after link |
|
string |
$text: |
link text |
|
string |
$title: |
link title |
|
string |
$class: |
class name |
void msn(
[
$format = 'htmlbody']
)
|
|
Template function: display MSN of the user
Parameters:
void nick_name(
[
$format = 'htmlbody']
)
|
|
Template function: display nickname of the user
Parameters:
void num_posts(
[
$format = 'htmlbody']
)
|
|
Template function: display number of user's posts
Parameters:
void preferred_name(
[string
$format = 'htmlbody']
)
|
|
Template function: display user's preferred name
Parameters:
boolean send_validate_email(
[string
$redirect_to_after = NULL]
)
|
|
Send an email to the user with a link to validate/confirm his email address.
If the email could get sent, it saves the used "request_id" into the user's Session.
Parameters:
|
string |
$redirect_to_after: |
URL, where to redirect the user after he clicked the validation link (gets saved in Session). |
API Tags:
| Return: | True, if the email could get sent; false if not |
boolean set(
string
$parname, mixed
$parvalue, [boolean
$make_null = false]
)
|
|
Set param value
Parameters:
|
string |
$parname: |
parameter name |
|
mixed |
$parvalue: |
parameter value |
|
boolean |
$make_null: |
true to set to NULL if empty value |
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
Redefinition of:
- DataObject::set()
- Set param value
void set_datecreated(
integer
$datecreated, [
$isYMDhour = false]
)
|
|
Set date created.
Parameters:
|
integer |
$datecreated: |
seconds since Unix Epoch. |
|
|
$isYMDhour: |
|
boolean set_email(
string
$email
)
|
|
Set email address of the user.
If the email address has changed and we're configured to invalidate the user in this case, the user's account gets invalidated here.
Parameters:
|
string |
$email: |
email address to set for the User |
API Tags:
| Return: | true, if set; false if not changed |
boolean set_Group(
Group
&$Group
)
|
|
Set new Group.
Parameters:
|
Group |
&$Group: |
the Group object to put the user into |
API Tags:
| Return: | true if set, false if not changed |
void url(
[string
$before = ''], [string
$after = ''], [string
$format = 'htmlbody']
)
|
|
Template function: display user's URL
Parameters:
|
string |
$before: |
string to display before the date (if changed) |
|
string |
$after: |
string to display after the date (if changed) |
|
string |
$format: |
Output format, see format_to_output() |
string userfieldget_first_for_type(
$type_ID
)
|
|
Get first field for a specific type
Parameters:
API Tags:
void userfield_add(
$type,
$val
)
|
|
Add a user field
Parameters:
void userfield_defs_load(
)
|
|
Load userfields defs
void userfield_update(
$uf_ID,
$val
)
|
|
Update an user field. Empty fields will be deleted on dbupdate.
Parameters:
void yim(
[
$format = 'htmlbody']
)
|
|
Template function: display Yahoo IM of the user
Parameters: