AWF API functions
add_group
-- creates a new user group
add_nodedata
-- adds new document property
add_user
-- creates a new user account
add_user_to_group
-- add a new user to group
awf_error_handler
-- handles errors
caching
-- this is used by AWF to write out cached data
clear_cache
-- clears the cache for the given document
cmp_nodes
-- internal function to compare documents
count_children
-- counts all documents having the given parent id
count_messages
-- count message in queue
create_editor_input
-- creates editor input field
create_node
-- creates new document
delete_nodedata
-- removes a document property
destroy_node
-- removes a document
email_to_string
-- michael@liquidbytes.net -> michael at liquidbytes dot net
get_age
-- counts the years since a given timestamp
get_children
-- returns all documents with the given parent id
get_cmodule_id
-- returns the id of a cmodule with the given doctype
get_dir_name
-- returns a directory name needed for caching, file uploads,...
get_group_profile
-- returns the profile a user group
get_message
-- returns the requested message
get_node
-- returns a complete document
get_nodedata
-- returns all properties of a document
get_online_users
-- returns a list of users currently online
get_profile
-- returns a user profile
get_related
-- return all documents related to the one refernced
get_sorted_children
-- like get_children(), but documents will be sorted
get_url
-- composes a url
get_user_email
-- returns the email address corresponding to the given user_id
get_user_id
-- returns the user_id corresponding to the given email address
get_user_nickname
-- returns the nickname corresponding to the given user_id
get_users
-- returns a list of users contained in a given list
getmicrotime
-- returns the current time
html2txt
-- converts a given html text to ASCII
include_modules
-- output all modules at a given position
init_doctypes
-- initializes the arrays $doctypes, $docnames, $doctemplates, $docparents, $docvisible and $docdescriptions
init_groups
-- initializes $groups array
init_modules
-- initializes $modules array
init_parents
-- initializes $parents array
init_published_children
-- initializes $published_children array
init_published_related
-- initializes $published_related array
init_published_roots
-- initializes $published_roots array
insert_char
-- insert a char into a sting at a given position
is_online
-- returns true if the user is currentlt online
is_unique_nickname
-- returns true if the given nickname is unique
isemail
-- returns true if the given email address is valid
load_lang
-- load language specific constants
load_var
-- load a variable
mark_message
-- marks a message as delivered
receive_content
-- not yet finished
remove_file
-- recursive remove function (hope you know, how to use it...)
remove_group
-- removes a user group
remove_group_profile
-- value pair from a group profile
remove_message
-- removes a message from queue
remove_profile
-- value-pair from a user profile
remove_user
-- removes user account
remove_user_from_group
-- removes a user from group
replace_pattern
-- replaces a given pattern (similar to replace_wildcards() but more powerful)
replace_wildcards
-- replaces wildcards in the form %%wildcard%%
save_var
-- saves a variable
search_children
-- similar to search_nodes()
search_messages
-- search for messages
search_nodes
-- allows you to search nodes ;-)
search_users
-- search users
send_content
-- not yet finished
send_message
-- send a message
set_group_profile
-- value pair in a group profile
set_profile
-- value-pair in a user profile
sort_nodes
-- sorts an array containing documents
timestamp_to_string
-- converts a given timestamp to a human readable string
transform
-- converts a value to a given type
update_node
-- updates an existing document
update_node_sortorder
-- sets the sort order of an existing document
update_nodedata
-- updates a document property
update_user
-- updates an existing user account
url_to_link
-- makes URLs and email addresses "clickable"
user_since
-- returns registration timestamp
write_log
-- writes out log line