void aim(
[
$format = 'htmlbody']
)
|
|
Template function: display AIM of the user.
NOTE: Replaces spaces with '+' ?!?
Parameters:
void callback_optionsForIdMode(
$value
)
|
|
Parameters:
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...) |
API Tags:
| Return: | 0 if permission denied |
boolean check_perm_blogusers(
string
$permname, string
$permlevel, integer
$perm_target_blog
)
|
|
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 |
API Tags:
boolean check_perm_catsusers(
string
$permname, string
$permlevel, array
&$perm_target_cats
)
|
|
Check permission for this user on a set of specified categories
This is not for direct use, please call User::check_perm() instead
Parameters:
|
string |
$permname: |
Permission name, can be one of the following: - cat_post_statuses
- more to come later...
|
|
string |
$permlevel: |
Permission level |
|
array |
&$perm_target_cats: |
Array of target cat IDs |
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.
API Tags:
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
Get the Group of the user.
API Tags:
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 |
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 |
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
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'], [
$disp = true]
)
|
|
Template function: display user's preferred name
Parameters:
void preferred_name_return(
[string
$format = 'htmlbody']
)
|
|
Return 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
)
|
|
Set param value
Parameters:
|
string |
$parname: |
parameter name |
|
mixed |
$parvalue: |
parameter 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() |
void yim(
[
$format = 'htmlbody']
)
|
|
Template function: display Yahoo IM of the user
Parameters: