diff --git a/code/web/docs/ams/doxygen/Doxyfile b/code/web/docs/ams/doxygen/Doxyfile index 8c4cad40f..fc764ef01 100644 --- a/code/web/docs/ams/doxygen/Doxyfile +++ b/code/web/docs/ams/doxygen/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "Ryzom Account Management System" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.0 +PROJECT_NUMBER = 1.1 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a @@ -721,7 +721,7 @@ WARN_FORMAT = "$file:$line: $text" # messages should be written. If left blank the output is written to standard # error (stderr). -WARN_LOGFILE = +WARN_LOGFILE = warnfile.log #--------------------------------------------------------------------------- # Configuration options related to the input files @@ -733,8 +733,8 @@ WARN_LOGFILE = # spaces. # Note: If this tag is empty the current directory is searched. -INPUT = ../../ryzom_ams \ - info.php +INPUT = ../../../private_php/ams \ + ../../../public_php/ams # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses @@ -769,11 +769,8 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = ../../ryzom_ams/ams_lib/smarty \ - ../../ryzom_ams/ams_lib/plugins \ - ../../ryzom_ams/www/html/misc \ - ../../ryzom_ams/www/html/templates_c \ - ../../ryzom_ams/drupal +EXCLUDE = ../../../private_php/ams/smarty \ + ../../../public_php/ams/misc/elfinder-connector # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded @@ -894,7 +891,7 @@ USE_MDFILE_AS_MAINPAGE = # also VERBATIM_HEADERS is set to NO. # The default value is: NO. -SOURCE_BROWSER = NO +SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body of functions, # classes and enums directly into the documentation. @@ -2309,4 +2306,3 @@ GENERATE_LEGEND = YES # This tag requires that the tag HAVE_DOT is set to YES. DOT_CLEANUP = YES - diff --git a/code/web/docs/ams/html/add__sgroup_8php.html b/code/web/docs/ams/html/add__sgroup_8php.html deleted file mode 100644 index f525076f5..000000000 --- a/code/web/docs/ams/html/add__sgroup_8php.html +++ /dev/null @@ -1,138 +0,0 @@ - - -
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
add_sgroup () | |
This function is beign used to add a new Support Group to the database. |
add_sgroup | -( | -) | -- |
This function is beign used to add a new Support Group to the database.
-What it will do is check if the user who executed the function is an Admin, if so then it will filter all POST'ed data and use it to create a new Support_Group entry. if not logged in or not an admin, an appropriate redirection to an error page will take place.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
add_user () | |
This function is beign used to add a new user to the www database. | |
write_user ($newUser) |
add_user | -( | -) | -- |
This function is beign used to add a new user to the www database.
-it will first check if the sent $_POST variables are valid for registering, if one or more rules are broken (eg the username is too short) the template will be reloaded but this time with the appropriate error messages. If the checking was successful it will call the write_user() function (located in this same file). That function will create a new www user and matching ticket_user. It will also push the newly created user to the shard. In case the shard is offline, the new user will be temporary stored in the ams_querycache, waiting for the sync cron job to update it.
- - -write_user | -( | -$ | -newUser | ) | -- |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
add_user_to_sgroup () | |
This function is beign used to add a user to a support group. |
add_user_to_sgroup | -( | -) | -- |
This function is beign used to add a user to a support group.
-It will first check if the user who executed this function is an admin. If the user exists it will try to add it to the supportgroup, in case it's not a mod or admin it will not add it to the group. if the executing user is not an admin or not logged in, the page will be redirected to the error page.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Assigned | Handles the assigning of a ticket to a user |
DBLayer | Handles the database connections |
Forwarded | Handles the forwarding of a ticket to a support_group |
Gui_Elements | Helper class for generating gui related elements |
Helpers | Helper class for more site specific functions |
In_Support_Group | Handles the linkage of users being in a support group |
Mail_Handler | Handles the mailing functionality |
MyCrypt | Basic encryption/decryption class |
Pagination | Handles returning arrays based on a given pagenumber |
Querycache | Class for storing changes when shard is offline |
Support_Group | Groups moderators & admins together |
Sync | Handler for performing changes when shard is back online after being offline |
Ticket | Class that handles most ticket related functions |
Ticket_Category | Class related to the ticket categories |
Ticket_Content | Class that handles the content of a reply |
Ticket_Info | Class that handles additional info sent by ticket creation ingame |
Ticket_Log | Class that handles the logging |
Ticket_Queue | Data class that holds a lot of queries that load specific tickets |
Ticket_Queue_Handler | Returns tickets (queues) that are related in some way |
Ticket_Reply | Handles functions related to replies on tickets |
Ticket_User | User entry point in the ticket system |
Users | Handles basic user registration & management functions (shard related) |
WebUsers | Handles CMS/WWW related functions regarding user management & registration |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
change_info () | |
This function is beign used to change the users personal info. |
change_info | -( | -) | -- |
This function is beign used to change the users personal info.
-It will first check if the user who executed this function is the person of whom the information is or if it's a mod/admin. If this is not the case the page will be redirected to an error page. afterwards the current info will be loaded, which will be used to determine what to update. After updating the information, the settings template will be reloaded. Errors made by invalid data will be shown also after reloading the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
change_mail () | |
This function is beign used to change the users emailaddress info. |
change_mail | -( | -) | -- |
This function is beign used to change the users emailaddress info.
-It will first check if the user who executed this function is the person of whom the emailaddress is or if it's a mod/admin. If this is not the case the page will be redirected to an error page. The emailaddress will be validated first. If the checking was successful the email will be updated and the settings template will be reloaded. Errors made by invalid data will be shown also after reloading the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
change_password () | |
This function is beign used to change the users password. |
change_password | -( | -) | -- |
This function is beign used to change the users password.
-It will first check if the user who executed this function is the person of whom the emailaddress is or if it's a mod/admin. If this is not the case the page will be redirected to an error page. If the executing user tries to change someone elses password, he doesn't has to fill in the previous password. The password will be validated first. If the checking was successful the password will be updated and the settings template will be reloaded. Errors made by invalid data will be shown also after reloading the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
change_permission () | |
This function is beign used to change the permission of a ticket_user. |
change_permission | -( | -) | -- |
This function is beign used to change the permission of a ticket_user.
-It will first check if the user who executed this function is an admin. If this is not the case the page will be redirected to an error page. in case the $_GET['value'] is smaller than 4 and the user whoes permission is being changed is different from the admin(id 1), the change will be executed and the page will redirect to the users profile page.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
change_receivemail () | |
This function is beign used to change the users receiveMail setting. |
change_receivemail | -( | -) | -- |
This function is beign used to change the users receiveMail setting.
-It will first check if the user who executed this function is the person of whom the setting is or if it's a mod/admin. If this is not the case the page will be redirected to an error page. it will check if the new value equals 1 or 0 and it will update the setting and redirect the page again.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles the assigning of a ticket to a user. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'assigned' entry. | |
delete () | |
deletes an existing 'assigned' entry. | |
load ($ticket_id) | |
loads the object's attributes. | |
getUser () | |
get user attribute of the object. | |
getTicket () | |
get ticket attribute of the object. | |
setUser ($u) | |
set user attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
-Static Public Member Functions | |
static | assignTicket ($user_id, $ticket_id) |
Assigns a ticket to a user or returns an error message. | |
static | unAssignTicket ($user_id, $ticket_id) |
Unassign a ticket being coupled to a user or return an error message. | |
static | getUserAssignedToTicket ($ticket_id) |
Get the (external) id of the user assigned to a ticket. | |
static | isAssigned ($ticket_id, $user_id=0) |
Check if a ticket is already assigned (in case the user_id param is used, it will check if it's assigned to that user) | |
-Private Attributes | |
$user | |
The id of the user being assigned. | |
$ticket | |
The id of the ticket being assigned. |
Handles the assigning of a ticket to a user.
-This is being used to make someone responsible for the handling and solving of a ticket. The idea is that someone can easily assign a ticket to himself and by doing that, he makes aware to the other moderators that he will deal with the ticket in the future.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static assignTicket | -( | -$ | -user_id, | -
- | - | $ | -ticket_id | -
- | ) | - [static] |
-
Assigns a ticket to a user or returns an error message.
-It will first check if the ticket isn't already assigned, if not, it will create a new 'assigned' entry.
-$user_id | the id of the user we want to assign to the ticket |
$ticket_id | the id of the ticket. |
create | -( | -) | -- |
creates a new 'assigned' entry.
-this method will use the object's attributes for creating a new 'assigned' entry in the database.
- -delete | -( | -) | -- |
deletes an existing 'assigned' entry.
-this method will use the object's attributes for deleting an existing 'assigned' entry in the database.
- -getTicket | -( | -) | -- |
get ticket attribute of the object.
- -getUser | -( | -) | -- |
get user attribute of the object.
- -static getUserAssignedToTicket | -( | -$ | -ticket_id | ) | - [static] |
-
Get the (external) id of the user assigned to a ticket.
-$ticket_id | the Id of the ticket that's being queried |
static isAssigned | -( | -$ | -ticket_id, | -
- | - | $ | -user_id = 0 |
-
- | ) | - [static] |
-
Check if a ticket is already assigned (in case the user_id param is used, it will check if it's assigned to that user)
-$ticket_id | the Id of the ticket that's being queried |
$user_id | the id of the user, default parameter = 0, by using a user_id, it will check if that user is assigned to the ticket. |
load | -( | -$ | -ticket_id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a ticket_id, it will put the matching user_id and the ticket_id into the attributes.
-$ticket_id | the id of the ticket that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('User' => user_id, 'Ticket' => ticket_id). |
setTicket | -( | -$ | -t | ) | -- |
set ticket attribute of the object.
-$t | integer id of the ticket |
setUser | -( | -$ | -u | ) | -- |
set user attribute of the object.
-$u | integer id of the user |
static unAssignTicket | -( | -$ | -user_id, | -
- | - | $ | -ticket_id | -
- | ) | - [static] |
-
Unassign a ticket being coupled to a user or return an error message.
-It will first check if the ticket is assigned, if this is indeed the case it will delete the 'assigned' entry.
-$user_id | the id of the user we want to unassign from the ticket |
$ticket_id | the id of the ticket. |
$ticket [private] |
-
The id of the ticket being assigned.
- -$user [private] |
-
The id of the user being assigned.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles the database connections. - More...
--Public Member Functions | |
__construct ($db) | |
The constructor. | |
executeWithoutParams ($query) | |
execute a query that doesn't have any parameters | |
execute ($query, $params) | |
execute a query that has parameters | |
executeReturnId ($query, $params) | |
execute a query (an insertion query) that has parameters and return the id of it's insertion | |
-Private Attributes | |
$PDO | |
The PDO object, instantiated by the constructor. |
Handles the database connections.
-It uses PDO to connect to the different databases. It will use the argument of the constructor to setup a connection to the database with the matching entry in the $cfg global variable.
- -__construct | -( | -$ | -db | ) | -- |
The constructor.
-Instantiates the PDO object attribute by connecting to the arguments matching database(the db info is stored in the $cfg global var)
-$db | String, the name of the databases entry in the $cfg global var. |
execute | -( | -$ | -query, | -
- | - | $ | -params | -
- | ) | -- |
execute a query that has parameters
-$query | the mysql query |
$params | the parameters that are being used by the query |
executeReturnId | -( | -$ | -query, | -
- | - | $ | -params | -
- | ) | -- |
execute a query (an insertion query) that has parameters and return the id of it's insertion
-$query | the mysql query |
$params | the parameters that are being used by the query |
executeWithoutParams | -( | -$ | -query | ) | -- |
execute a query that doesn't have any parameters
-$query | the mysql query |
$PDO [private] |
-
The PDO object, instantiated by the constructor.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles the forwarding of a ticket to a support_group. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'forwarded' entry. | |
delete () | |
deletes an existing 'forwarded' entry. | |
load ($ticket_id) | |
loads the object's attributes. | |
getGroup () | |
get group attribute of the object. | |
getTicket () | |
get ticket attribute of the object. | |
setGroup ($g) | |
set group attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
-Static Public Member Functions | |
static | forwardTicket ($group_id, $ticket_id) |
Forward a ticket to a group, also removes the previous group where it was forwarded to. | |
static | getSGroupOfTicket ($ticket_id) |
get the id of the group a ticket is forwarded to. | |
static | isForwarded ($ticket_id) |
check if the ticket is forwarded | |
-Private Attributes | |
$group | |
The id of the group to which the ticket is being forwarded. | |
$ticket | |
The id of the ticket being forwarded. |
Handles the forwarding of a ticket to a support_group.
-This is being used to transfer tickets to different groups (eg Developers, Website-Team, SupportGroup etc..) The idea is that someone can easily forward a ticket to a group and by doing that, the moderators that are in that group will receive the ticket in their todo queue.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -create | -( | -) | -- |
creates a new 'forwarded' entry.
-this method will use the object's attributes for creating a new 'forwarded' entry in the database.
- -delete | -( | -) | -- |
deletes an existing 'forwarded' entry.
-this method will use the object's attributes for deleting an existing 'forwarded' entry in the database.
- -static forwardTicket | -( | -$ | -group_id, | -
- | - | $ | -ticket_id | -
- | ) | - [static] |
-
Forward a ticket to a group, also removes the previous group where it was forwarded to.
-It will first check if the ticket is already forwarded, if that's the case, it will delete that entry. Afterwards it creates the new forward entry
-$group_id | the id of the support group we want to forward the ticket to. |
$ticket_id | the id of the ticket. |
getGroup | -( | -) | -- |
get group attribute of the object.
- -static getSGroupOfTicket | -( | -$ | -ticket_id | ) | - [static] |
-
get the id of the group a ticket is forwarded to.
-$ticket_id | the id of the ticket. |
getTicket | -( | -) | -- |
get ticket attribute of the object.
- -static isForwarded | -( | -$ | -ticket_id | ) | - [static] |
-
check if the ticket is forwarded
-$ticket_id | the id of the ticket. |
load | -( | -$ | -ticket_id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a ticket_id, it will put the matching group_id and the ticket_id into the attributes.
-$ticket_id | the id of the ticket that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('Group' => group_id, 'Ticket' => ticket_id). |
setGroup | -( | -$ | -g | ) | -- |
set group attribute of the object.
-$g | integer id of the group |
setTicket | -( | -$ | -t | ) | -- |
set ticket attribute of the object.
-$t | integer id of the ticket |
$group [private] |
-
The id of the group to which the ticket is being forwarded.
- -$ticket [private] |
-
The id of the ticket being forwarded.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Helper class for generating gui related elements. - More...
--Static Public Member Functions | |
static | make_table ($inputList, $funcArray, $fieldArray) |
creates an array of information out of a list of objects which can be used to form a table. | |
static | make_table_with_key_is_id ($inputList, $funcArray, $idFunction) |
creates an array of information out of a list of objects which can be used to form a table with a key as id. | |
static | time_elapsed_string ($ptime) |
returns the elapsed time from a timestamp up till now. |
Helper class for generating gui related elements.
-This class contains functions that generate data-arrays for tables, or other visual entities
- -static make_table | -( | -$ | -inputList, | -
- | - | $ | -funcArray, | -
- | - | $ | -fieldArray | -
- | ) | - [static] |
-
creates an array of information out of a list of objects which can be used to form a table.
-The idea of this is that you can pass an array of objects, an array of functions to perform on each object and a name for the index of the returning array to store the result.
-$inputList | the list of objects of which we want to make a table. |
$funcArray | a list of methods of that object we want to perform. |
$fieldArray | a list of strings, that will be used to store our result into. |
static make_table_with_key_is_id | -( | -$ | -inputList, | -
- | - | $ | -funcArray, | -
- | - | $ | -idFunction | -
- | ) | - [static] |
-
creates an array of information out of a list of objects which can be used to form a table with a key as id.
-The idea is comparable to the make_table() function, though this time the results are stored in the index that is returned by the idFunction()
-$inputList | the list of objects of which we want to make a table. |
$funcArray | a list of methods of that object we want to perform. |
$idFunction | a function that returns an id that will be used as index to store our result |
static time_elapsed_string | -( | -$ | -ptime | ) | - [static] |
-
returns the elapsed time from a timestamp up till now.
-$ptime | a timestamp. |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Helper class for more site specific functions. - More...
--Static Public Member Functions | |
static | loadTemplate ($template, $vars=array(), $returnHTML=false) |
workhorse of the website, it loads the template and shows it or returns th html. | |
static | create_folders () |
creates the folders that are needed for smarty. | |
static | check_if_game_client () |
check if the http request is sent ingame or not. | |
static | handle_language () |
Handles the language specific aspect. | |
static | outputTime ($time, $str=1) |
Time output function for handling the time display. | |
static | check_login_ingame () |
Auto login function for ingame use. |
Helper class for more site specific functions.
- -static check_if_game_client | -( | -) | - [static] |
-
check if the http request is sent ingame or not.
-static check_login_ingame | -( | -) | - [static] |
-
Auto login function for ingame use.
-This function will allow users who access the website ingame, to log in without entering the username and password. It uses the COOKIE entry in the open_ring db. it checks if the cookie sent by the http request matches the one in the db. This cookie in the db is changed everytime the user relogs.
-static create_folders | -( | -) | - [static] |
-
creates the folders that are needed for smarty.
-static handle_language | -( | -) | - [static] |
-
Handles the language specific aspect.
-The language can be changed by setting the $_GET['Language'] & $_GET['setLang'] together. This will also change the language entry of the user in the db. Cookies are also being used in case the user isn't logged in.
-static loadTemplate | -( | -$ | -template, | -
- | - | $ | -vars = array () , |
-
- | - | $ | -returnHTML = false |
-
- | ) | - [static] |
-
workhorse of the website, it loads the template and shows it or returns th html.
-it uses smarty to load the $template, but before displaying the template it will pass the $vars to smarty. Also based on your language settings a matching array of words & sentences for that page will be loaded. In case the $returnHTML parameter is set to true, it will return the html instead of displaying the template.
-$template | the name of the template(page) that we want to load. |
$vars | an array of variables that should be loaded by smarty before displaying or returning the html. |
$returnHTML | (default=false) if set to true, the html that should have been displayed, will be returned. |
static outputTime | -( | -$ | -time, | -
- | - | $ | -str = 1 |
-
- | ) | - [static] |
-
Time output function for handling the time display.
-- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles the linkage of users being in a support group. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'in_support_group' entry. | |
delete () | |
deletes an existing 'in_support_group' entry. | |
getUser () | |
get user attribute of the object. | |
getGroup () | |
get group attribute of the object. | |
setUser ($u) | |
set user attribute of the object. | |
setGroup ($g) | |
set group attribute of the object. | |
-Static Public Member Functions | |
static | userExistsInSGroup ($user_id, $group_id) |
Check if user is in in_support_group. | |
-Private Attributes | |
$user | |
The id of the user being in a support group. | |
$group | |
The id of the support group. |
Handles the linkage of users being in a support group.
-Moderators and Admins can be part of a support group, this class offers functionality to check if a link between a user and group is existing.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -create | -( | -) | -- |
creates a new 'in_support_group' entry.
-this method will use the object's attributes for creating a new 'in_support_group' entry in the database.
- -delete | -( | -) | -- |
deletes an existing 'in_support_group' entry.
-this method will use the object's attributes for deleting an existing 'in_support_group' entry in the database.
- -getGroup | -( | -) | -- |
get group attribute of the object.
- -getUser | -( | -) | -- |
get user attribute of the object.
- -set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('User' => user_id, 'Group' => support_groups_id). |
setGroup | -( | -$ | -g | ) | -- |
set group attribute of the object.
-$g | integer id of the support group |
setUser | -( | -$ | -u | ) | -- |
set user attribute of the object.
-$u | integer id of the user |
static userExistsInSGroup | -( | -$ | -user_id, | -
- | - | $ | -group_id | -
- | ) | - [static] |
-
Check if user is in in_support_group.
-$user_id | the id of the user. |
$group_id | the id of the support group. |
$group [private] |
-
The id of the support group.
- -$user [private] |
-
The id of the user being in a support group.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles the mailing functionality. - More...
--Public Member Functions | |
cron () | |
the cron funtion (workhorse of the mailing system). | |
new_message_id ($ticketId) | |
creates a new message id for a email about to send. | |
get_ticket_id_from_subject ($subject) | |
try to fetch the ticket_id out of the subject. | |
incoming_mail_handler ($mbox, $i, $group) | |
Handles an incomming email Read the content of one email by using imap's functionality. | |
decode_utf8 ($str) | |
decode utf8 | |
get_mime_type (&$structure) | |
returns the mime type of a structure of a email | |
get_part ($stream, $msg_number, $mime_type, $structure=false, $part_number=false) | |
-Static Public Member Functions | |
static | send_ticketing_mail ($receiver, $ticketObj, $content, $type, $sender=0) |
Wrapper for sending emails, creates the content of the email Based on the type of the ticketing mail it will create a specific email, it will use the language.ini files to load the correct language of the email for the receiver. | |
static | send_mail ($recipient, $subject, $body, $ticket_id=0, $from=NULL) |
send mail function that will add the email to the db. | |
-Private Member Functions | |
mail_fork () | |
Start a new child process and return the process id this is used because imap might take some time, we dont want the cron parent process waiting on that. | |
-Private Attributes | |
$db | |
db object used by various methods. |
Handles the mailing functionality.
-This class covers the reading of the mail boxes of the support_groups, handling those emails, updating tickets accoring to the content & title of the emails, but also the sending of emails after creating a new ticket and when someone else replies on your ticket.
- -cron | -( | -) | -- |
the cron funtion (workhorse of the mailing system).
-The cron job will create a child process, which will first send the emails that are in the email table in the database, we use some kind of semaphore (a temp file) to make sure that if the cron job is called multiple times, it wont email those mails multiple times. After this, we will read the mail inboxes of the support groups and the default group using IMAP and we will add new tickets or new replies according to the incoming emails.
- -decode_utf8 | -( | -$ | -str | ) | -- |
decode utf8
-$str | str to be decoded |
get_mime_type | -( | -&$ | -structure | ) | -- |
returns the mime type of a structure of a email
-&$structure | the structure of an email message. |
get_part | -( | -$ | -stream, | -
- | - | $ | -msg_number, | -
- | - | $ | -mime_type, | -
- | - | $ | -structure = false , |
-
- | - | $ | -part_number = false |
-
- | ) | -- |
get_ticket_id_from_subject | -( | -$ | -subject | ) | -- |
try to fetch the ticket_id out of the subject.
-The subject should have a substring of the form [Ticket #ticket_id], where ticket_id should be the integer ID of the ticket.
-$subject | the subject of an incomming email. |
incoming_mail_handler | -( | -$ | -mbox, | -
- | - | $ | -i, | -
- | - | $ | -group | -
- | ) | -- |
Handles an incomming email Read the content of one email by using imap's functionality.
-If a ticket id is found inside the message_id or else in the subject line, then a reply will be added (if the email is not being sent from the authors email address it won't be added though and a warning will be sent to both parties). If no ticket id is found, then a new ticket will be created.
-$mbox | a mailbox object |
$i | the email's id in the mailbox (integer) |
$group | the group object that owns the inbox. |
mail_fork | -( | -) | - [private] |
-
Start a new child process and return the process id this is used because imap might take some time, we dont want the cron parent process waiting on that.
-new_message_id | -( | -$ | -ticketId | ) | -- |
creates a new message id for a email about to send.
-$ticketId | the ticket id of the ticket that is mentioned in the email. |
static send_mail | -( | -$ | -recipient, | -
- | - | $ | -subject, | -
- | - | $ | -body, | -
- | - | $ | -ticket_id = 0 , |
-
- | - | $ | -from = NULL |
-
- | ) | - [static] |
-
send mail function that will add the email to the db.
-this function is being used by the send_ticketing_mail() function. It adds the email as an entry to the `email` table in the database, which will be sent later on when we run the cron job.
-$recipient | if integer, then it refers to the id of the user to whom we want to mail, if it's a string(email-address) then we will use that. |
$subject | the subject of the email |
$body | the body of the email |
$ticket_id | the id of the ticket |
$from | the sending support_group's id (NULL in case the default group is sending)) |
static send_ticketing_mail | -( | -$ | -receiver, | -
- | - | $ | -ticketObj, | -
- | - | $ | -content, | -
- | - | $ | -type, | -
- | - | $ | -sender = 0 |
-
- | ) | - [static] |
-
Wrapper for sending emails, creates the content of the email Based on the type of the ticketing mail it will create a specific email, it will use the language.ini files to load the correct language of the email for the receiver.
-Also if the $TICKET_MAILING_SUPPORT is set to false or if the user's personal 'ReceiveMail' entry is set to false then no mail will be sent.
-$receiver | if integer, then it refers to the id of the user to whom we want to mail, if it's a string(email-address) then we will use that. |
$ticketObj | the ticket object itself, this is being used for including ticket related information into the email. |
$content | the content of a reply or new ticket |
$type | REPLY, NEW, WARNAUTHOR, WARNSENDER, WARNUNKNOWNSENDER |
$sender | (default = 0 (if it is not forwarded)) else use the id of the support group to which the ticket is currently forwarded, the support groups email address will be used to send the ticket. |
$db [private] |
-
db object used by various methods.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Basic encryption/decryption class. - More...
--Public Member Functions | |
__construct ($cryptinfo) | |
constructor. | |
encrypt ($data) | |
encrypts by using the given enc_method and hash_method. | |
decrypt ($edata) | |
decrypts by using the given enc_method and hash_method. | |
-Static Private Member Functions | |
static | hashIV ($key, $method, $iv_size) |
hashes the key by using a hash method specified. | |
static | check_methods ($enc, $hash) |
checks if the encryption and hash methods are supported | |
-Private Attributes | |
$config | |
array that should contain the enc_method & hash_method & key |
Basic encryption/decryption class.
-We use this class atm for encrypting & decrypting the imap passwords.
-__construct | -( | -$ | -cryptinfo | ) | -- |
constructor.
-loads the config array with the given argument.
-$cryptinfo | an array containing the info needed to encrypt & decrypt.(enc_method & hash_method & key) |
static check_methods | -( | -$ | -enc, | -
- | - | $ | -hash | -
- | ) | - [static, private] |
-
checks if the encryption and hash methods are supported
-$enc | the encryption method. |
$hash | the hash method. |
Exception | in case a method is not supported. |
decrypt | -( | -$ | -edata | ) | -- |
decrypts by using the given enc_method and hash_method.
-$edata | the encrypted string that we want to decrypt |
encrypt | -( | -$ | -data | ) | -- |
encrypts by using the given enc_method and hash_method.
-It will first check if the methods are supported, if not it will throw an error, if so it will encrypt the $data
-$data | the string that we want to encrypt. |
static hashIV | -( | -$ | -key, | -
- | - | $ | -method, | -
- | - | $ | -iv_size | -
- | ) | - [static, private] |
-
hashes the key by using a hash method specified.
-$key | the key to be hashed |
$method | the metho of hashing to be used |
$iv_size | the size of the initialization vector. |
$config [private] |
-
array that should contain the enc_method & hash_method & key
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Handles returning arrays based on a given pagenumber. - More...
--Public Member Functions | |
__construct ($query, $db, $nrDisplayed, $resultClass, $params=array()) | |
Constructor. | |
getLast () | |
return the number of the 'last' object attribute | |
getCurrent () | |
return the number of the 'current' object attribute | |
getElements () | |
return the elements array of the object | |
getAmountOfRows () | |
return total amount of rows for the original query | |
getLinks ($nrOfLinks) | |
return the page links. | |
-Private Attributes | |
$element_array | |
Array containing the elements that are extracted for that specific page number. | |
$last | |
The last page number. | |
$current | |
The current page number (read from $_GET['pagenum']) | |
$amountOfRows | |
Total amount of rows that a query would return (if no limits would be used) |
Handles returning arrays based on a given pagenumber.
-By specifing a $_GET['pagenum'] or if not(page = 1 will be used) a few elements from a specific query will be returned. Not all elements have to be loaded into objects, only the elements needed for that specific page, this is a good thing performance wise. This is done by passign the query to the constructor and specifying how many you want to display.
- -__construct | -( | -$ | -query, | -
- | - | $ | -db, | -
- | - | $ | -nrDisplayed, | -
- | - | $ | -resultClass, | -
- | - | $ | -params = array() |
-
- | ) | -- |
Constructor.
-will fetch the correct elements that match to a specific page (specified by the $_GET['pagenum'] variable). The query has to be passed as a string to the function that way it will only load the specific elements that are related to the pagenumber. The $params, parameter is optional and is used to pass the parameters for the query. The result class will be used to instantiate the found elements with, their set() function will be called. The class its getters can be later used to get the info out of the object.
-$query | the query to be paginated |
$db | the db on which the query should be performed |
$nrDisplayed | the amount of elements that should be displayed /page |
$resultClass | the elements that should be returned should be of that specific class. |
$params | the parameters used by the query (optional) |
getAmountOfRows | -( | -) | -- |
return total amount of rows for the original query
-getCurrent | -( | -) | -- |
return the number of the 'current' object attribute
-getElements | -( | -) | -- |
return the elements array of the object
-getLast | -( | -) | -- |
return the number of the 'last' object attribute
-getLinks | -( | -$ | -nrOfLinks | ) | -- |
return the page links.
-(for browsing the pages, placed under a table for example) the $nrOfLinks parameter specifies the amount of links you want to return. it will show the links closest to the current page on both sides (in case one side can't show more, it will show more on the other side)
-$amountOfRows [private] |
-
Total amount of rows that a query would return (if no limits would be used)
- -$current [private] |
-
The current page number (read from $_GET['pagenum'])
- -$element_array [private] |
-
Array containing the elements that are extracted for that specific page number.
- -$last [private] |
-
The last page number.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
class for storing changes when shard is offline. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
load_With_SID ($id) | |
loads the object's attributes. | |
update () | |
updates the entry. | |
getSID () | |
get SID attribute of the object. | |
getType () | |
get type attribute of the object. | |
getQuery () | |
get query attribute of the object. | |
getDb () | |
get db attribute of the object. | |
setSID ($s) | |
set SID attribute of the object. | |
setType ($t) | |
set type attribute of the object. | |
setQuery ($q) | |
set query attribute of the object. | |
setDb ($d) | |
set db attribute of the object. | |
-Private Attributes | |
$SID | |
The queries ID. | |
$type | |
The type of query. | |
$query | |
The query itself (json encoded) | |
$db | |
the db where the query should be performed |
class for storing changes when shard is offline.
-__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -getDb | -( | -) | -- |
get db attribute of the object.
- -getQuery | -( | -) | -- |
get query attribute of the object.
- -getSID | -( | -) | -- |
get SID attribute of the object.
- -getType | -( | -) | -- |
get type attribute of the object.
- -load_With_SID | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a SID as parameter
-$id | the id of the querycaches row |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('SID' => sid, 'type' => type, 'query' => query, 'db' => db). |
setDb | -( | -$ | -d | ) | -- |
set db attribute of the object.
-$d | the name of the database in the config global var that we want to use. |
setQuery | -( | -$ | -q | ) | -- |
set query attribute of the object.
-$q | query string |
setSID | -( | -$ | -s | ) | -- |
set SID attribute of the object.
-$s | integer id |
setType | -( | -$ | -t | ) | -- |
set type attribute of the object.
-$t | type of the query, could be changePassword, changePermissions, changeEmail, createUser |
update | -( | -) | -- |
updates the entry.
- -$db [private] |
-
the db where the query should be performed
- -$query [private] |
-
The query itself (json encoded)
- -$SID [private] |
-
The queries ID.
- -$type [private] |
-
The type of query.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
groups moderators & admins together. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'support_group' entry. | |
load_With_SGroupId ($id) | |
loads the object's attributes. | |
update () | |
update the objects attributes to the db. | |
delete () | |
deletes an existing 'support_group' entry. | |
getSGroupId () | |
get sGroupId attribute of the object. | |
getName () | |
get name attribute of the object. | |
getTag () | |
get tag attribute of the object. | |
getGroupEmail () | |
get groupEmail attribute of the object. | |
getIMAP_MailServer () | |
get iMAP_MailServer attribute of the object. | |
getIMAP_Username () | |
get iMAP_Username attribute of the object. | |
getIMAP_Password () | |
get iMAP_Password attribute of the object. | |
setSGroupId ($id) | |
set sGroupId attribute of the object. | |
setName ($n) | |
set name attribute of the object. | |
setTag ($t) | |
set tag attribute of the object. | |
setGroupEmail ($ge) | |
set groupEmail attribute of the object. | |
setIMAP_MailServer ($ms) | |
set iMAP_MailServer attribute of the object. | |
setIMAP_Username ($u) | |
set iMAP_Username attribute of the object. | |
setIMAP_Password ($p) | |
set iMAP_Password attribute of the object. | |
-Static Public Member Functions | |
static | getGroup ($id) |
return a specific support_group object. | |
static | getGroups () |
return all support_group objects. | |
static | createSupportGroup ($name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password) |
Wrapper for creating a support group. | |
static | supportGroup_EntryNotExists ($name, $tag) |
check if support group name/tag doesn't exist yet. | |
static | supportGroup_Exists ($id) |
check if support group entry coupled to a given id exist or not. | |
static | constr_SGroupId ($id) |
construct an object based on the SGroupId. | |
static | getAllUsersOfSupportGroup ($group_id) |
get list of all users that are enlisted to a support group. | |
static | deleteSupportGroup ($group_id) |
wrapper for deleting a support group. | |
static | deleteUserOfSupportGroup ($user_id, $group_id) |
wrapper for deleting a user that's in a specified support group. | |
static | addUserToSupportGroup ($user_id, $group_id) |
wrapper for adding a user to a specified support group. | |
static | getAllSupportGroups () |
return all support_group objects. | |
-Private Attributes | |
$sGroupId | |
The id of the support group. | |
$name | |
The name of the support group. | |
$tag | |
The tag of the support group, a tag is max 4 letters big, and will be used in the future as easy reference to indicate what group it is refered to (eg [DEV]) | |
$groupEmail | |
The email address of the group. | |
$iMAP_MailServer | |
The imap server connection string. | |
$iMAP_Username | |
The imap username of the account. | |
$iMAP_Password | |
The imap matching password. |
groups moderators & admins together.
-A Support Group is a group of people with the same skills or knowledge. A typical example will be the (Developers group, webteam group, management, etc..) The idea is that tickets can be forwarded to a group of persons that might be able to answer that specific question. Support Groups are also the key of handling the emails, because the email addresses of the support groups will be used by the Mail_Handler class.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static addUserToSupportGroup | -( | -$ | -user_id, | -
- | - | $ | -group_id | -
- | ) | - [static] |
-
wrapper for adding a user to a specified support group.
-We will first check if the group really exists, if not than "GROUP_NOT_EXISING" will be returned. Afterwards we will check if the user exists in the support group, if so "ALREADY_ADDED" will be returned. Else the user will be added to the in_support_group table and "SUCCESS" will be returned.
-$user_id | the id of the user we want to add to the group. |
$group_id | the id of the group the user wants to be in |
static constr_SGroupId | -( | -$ | -id | ) | - [static] |
-
construct an object based on the SGroupId.
-$id | the id of the group we want to construct |
create | -( | -) | -- |
creates a new 'support_group' entry.
-this method will use the object's attributes for creating a new 'support_group' entry in the database.
- -static createSupportGroup | -( | -$ | -name, | -
- | - | $ | -tag, | -
- | - | $ | -groupemail, | -
- | - | $ | -imap_mailserver, | -
- | - | $ | -imap_username, | -
- | - | $ | -imap_password | -
- | ) | - [static] |
-
Wrapper for creating a support group.
-It will check if the support group doesn't exist yet, if the tag or name already exists then NAME_TAKEN or TAG_TAKEN will be returned. If the name is bigger than 20 characters or smaller than 4 and the tag greater than 7 or smaller than 2 a SIZE_ERROR will be returned. Else it will return SUCCESS
-delete | -( | -) | -- |
deletes an existing 'support_group' entry.
-this method will use the object's attributes for deleting an existing 'support_group' entry in the database.
- -static deleteSupportGroup | -( | -$ | -group_id | ) | - [static] |
-
wrapper for deleting a support group.
-We will first check if the group really exists, if not than "GROUP_NOT_EXISING" will be returned.
-$group_id | the id of the group we want to delete |
static deleteUserOfSupportGroup | -( | -$ | -user_id, | -
- | - | $ | -group_id | -
- | ) | - [static] |
-
wrapper for deleting a user that's in a specified support group.
-We will first check if the group really exists, if not than "GROUP_NOT_EXISING" will be returned. Afterwards we will check if the user exists in the support group, if not "USER_NOT_IN_GROUP" will be returned. Else the users entry in the in_support_group table will be deleted and "SUCCESS" will be returned.
-$user_id | the id of the user we want to remove out of the group. |
$group_id | the id of the group the user should be in |
static getAllSupportGroups | -( | -) | - [static] |
-
return all support_group objects.
-static getAllUsersOfSupportGroup | -( | -$ | -group_id | ) | - [static] |
-
get list of all users that are enlisted to a support group.
-$group_id | the id of the group we want to query |
static getGroup | -( | -$ | -id | ) | - [static] |
-
return a specific support_group object.
-$id | the id of the support group that we want to return |
getGroupEmail | -( | -) | -- |
get groupEmail attribute of the object.
- -static getGroups | -( | -) | - [static] |
-
return all support_group objects.
-getIMAP_MailServer | -( | -) | -- |
get iMAP_MailServer attribute of the object.
- -getIMAP_Password | -( | -) | -- |
get iMAP_Password attribute of the object.
- -getIMAP_Username | -( | -) | -- |
get iMAP_Username attribute of the object.
- -getName | -( | -) | -- |
get name attribute of the object.
- -getSGroupId | -( | -) | -- |
get sGroupId attribute of the object.
- -getTag | -( | -) | -- |
get tag attribute of the object.
- -load_With_SGroupId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a group id, it will put the matching groups attributes in the object.
-$id | the id of the support group that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('SGroupId' => groupid, 'Name' => name, 'Tag' => tag, 'GroupEmail' => mail, 'IMAP_MailServer' => server, 'IMAP_Username' => username,'IMAP_Password' => pass). |
setGroupEmail | -( | -$ | -ge | ) | -- |
set groupEmail attribute of the object.
-$ge | email of the group |
setIMAP_MailServer | -( | -$ | -ms | ) | -- |
set iMAP_MailServer attribute of the object.
-$ms | mailserver of the group |
setIMAP_Password | -( | -$ | -p | ) | -- |
set iMAP_Password attribute of the object.
-$p | imap password of the group |
setIMAP_Username | -( | -$ | -u | ) | -- |
set iMAP_Username attribute of the object.
-$u | imap username of the group |
setName | -( | -$ | -n | ) | -- |
set name attribute of the object.
-$n | name of the group |
setSGroupId | -( | -$ | -id | ) | -- |
set sGroupId attribute of the object.
-$id | integer id of the group |
setTag | -( | -$ | -t | ) | -- |
set tag attribute of the object.
-$t | tag of the group |
static supportGroup_EntryNotExists | -( | -$ | -name, | -
- | - | $ | -tag | -
- | ) | - [static] |
-
check if support group name/tag doesn't exist yet.
-$name | the name of the group we want to check |
$tag | the tag of the group we want to check |
static supportGroup_Exists | -( | -$ | -id | ) | - [static] |
-
check if support group entry coupled to a given id exist or not.
-$id | the id of the group we want to check |
update | -( | -) | -- |
update the objects attributes to the db.
- -$groupEmail [private] |
-
The email address of the group.
- -$iMAP_MailServer [private] |
-
The imap server connection string.
- -$iMAP_Password [private] |
-
The imap matching password.
- -$iMAP_Username [private] |
-
The imap username of the account.
- -$name [private] |
-
The name of the support group.
- -$sGroupId [private] |
-
The id of the support group.
- -$tag [private] |
-
The tag of the support group, a tag is max 4 letters big, and will be used in the future as easy reference to indicate what group it is refered to (eg [DEV])
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
handler for performing changes when shard is back online after being offline. - More...
--Static Public Member Functions | |
static | syncdata () |
performs the actions listed in the querycache. |
handler for performing changes when shard is back online after being offline.
-the sync class is responsible for the syncdata function, which will synchronise the website with the shard (when the shard is offline, users can still change their password, email or even register)
- -static syncdata | -( | -) | - [static] |
-
performs the actions listed in the querycache.
-All entries in the querycache will be read and performed depending on their type. This is done because the shard could have been offline and we want changes made on the website (which is still online) to eventually hit the shard. These changes are: createPermissions, createUser, change_pass, change_mail
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
class that handles most ticket related functions. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'ticket' entry. | |
load_With_TId ($id) | |
loads the object's attributes. | |
update () | |
update the objects attributes to the db. | |
hasInfo () | |
check if a ticket has a ticket_info page or not. | |
getTId () | |
get tId attribute of the object. | |
getTimestamp () | |
get timestamp attribute of the object in the format defined in the outputTime function of the Helperclass. | |
getTitle () | |
get title attribute of the object. | |
getStatus () | |
get status attribute of the object. | |
getStatusText () | |
get status attribute of the object in the form of text (string). | |
getCategoryName () | |
get category attribute of the object in the form of text (string). | |
getQueue () | |
get queue attribute of the object. | |
getTicket_Category () | |
get ticket_category attribute of the object (int). | |
getAuthor () | |
get author attribute of the object (int). | |
getPriority () | |
get priority attribute of the object (int). | |
getPriorityText () | |
get priority attribute of the object in the form of text (string). | |
getAssigned () | |
get the user assigned to the ticket. | |
getForwardedGroupName () | |
get the name of the support group to whom the ticket is forwarded or return 0 in case not forwarded. | |
getForwardedGroupId () | |
get the id of the support group to whom the ticket is forwarded or return 0 in case not forwarded. | |
setTId ($id) | |
set tId attribute of the object. | |
setTimestamp ($ts) | |
set timestamp attribute of the object. | |
setTitle ($t) | |
set title attribute of the object. | |
setStatus ($s) | |
set status attribute of the object. | |
setQueue ($q) | |
set queue attribute of the object. | |
setTicket_Category ($tc) | |
set ticket_category attribute of the object. | |
setAuthor ($a) | |
set author attribute of the object. | |
setPriority ($p) | |
set priority attribute of the object. | |
-Static Public Member Functions | |
static | ticketExists ($id) |
check if a ticket exists. | |
static | getStatusArray () |
return an array of the possible statuses | |
static | getPriorityArray () |
return an array of the possible priorities | |
static | getEntireTicket ($id, $view_as_admin) |
return an entire ticket. | |
static | getTicketsOf ($author) |
return all tickets of a specific user. | |
static | create_Ticket ($title, $content, $category, $author, $real_author, $for_support_group=0, $extra_info=0) |
function that creates a new ticket. | |
static | updateTicketStatus ($ticket_id, $newStatus, $author) |
updates the ticket's status. | |
static | updateTicketStatusAndPriority ($ticket_id, $newStatus, $newPriority, $author) |
updates the ticket's status & priority. | |
static | getLatestReply ($ticket_id) |
return the latest reply of a ticket | |
static | createReply ($content, $author, $ticket_id, $hidden) |
create a new reply for a ticket. | |
static | assignTicket ($user_id, $ticket_id) |
assign a ticket to a user. | |
static | unAssignTicket ($user_id, $ticket_id) |
unassign a ticket of a user. | |
static | forwardTicket ($user_id, $ticket_id, $group_id) |
forward a ticket to a specific support group. | |
-Private Attributes | |
$tId | |
The id of ticket. | |
$timestamp | |
Timestamp of the ticket. | |
$title | |
Title of the ticket. | |
$status | |
Status of the ticket (0 = waiting on user reply, 1 = waiting on support, (2= not used atm), 3 = closed. | |
$queue | |
(not in use atm) | |
$ticket_category | |
the id of the category belonging to the ticket | |
$author | |
The ticket_users id. | |
$priority | |
The priority of the ticket where 0 = low, 3= supadupahigh. |
class that handles most ticket related functions.
-the ticket class is used for most ticketing related functions, it also holds some wrapper functions.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static assignTicket | -( | -$ | -user_id, | -
- | - | $ | -ticket_id | -
- | ) | - [static] |
-
assign a ticket to a user.
-Checks if the ticket exists, if so then it will try to assign the user to it, a log entry will be written about this.
-$user_id | the id of user trying to be assigned to the ticket. |
$ticket_id | the id of the ticket that we try to assign to the user. |
create | -( | -) | -- |
creates a new 'ticket' entry.
-this method will use the object's attributes for creating a new 'ticket' entry in the database.
- -static create_Ticket | -( | -$ | -title, | -
- | - | $ | -content, | -
- | - | $ | -category, | -
- | - | $ | -author, | -
- | - | $ | -real_author, | -
- | - | $ | -for_support_group = 0 , |
-
- | - | $ | -extra_info = 0 |
-
- | ) | - [static] |
-
function that creates a new ticket.
-A new ticket will be created, in case the extra_info != 0 and the http request came from ingame, then a ticket_info page will be created. A log entry will be written, depending on the $real_authors value. In case the for_support_group parameter is set, the ticket will be forwarded immediately. Also the mail handler will create a new email that will be sent to the author to notify him that his ticket is freshly created.
-$title | the title we want to give to the ticket. |
$content | the content we want to give to the starting post of the ticket. |
$category | the id of the category that should be related to the ticket. |
$author | the person who's id will be stored in the database as creator of the ticket. |
$real_author | should be the same id, or a moderator/admin who creates a ticket for another user (this is used for logging purposes). |
$for_support_group | in case you directly want to forward the ticket after creating it. (default value = 0 = don't forward) |
$extra_info | used for creating an ticket_info page related to the ticket, this only happens when the ticket is made ingame. |
static createReply | -( | -$ | -content, | -
- | - | $ | -author, | -
- | - | $ | -ticket_id, | -
- | - | $ | -hidden | -
- | ) | - [static] |
-
create a new reply for a ticket.
-A reply will only be added if the content isn't empty and if the ticket isn't closed. The ticket creator will be notified by email that someone else replied on his ticket.
-$content | the content of the reply |
$author | the author of the reply |
$ticket_id | the id of the ticket to which we want to add the reply. |
$hidden | boolean that specifies if the reply should only be shown to mods/admins or all users. |
static forwardTicket | -( | -$ | -user_id, | -
- | - | $ | -ticket_id, | -
- | - | $ | -group_id | -
- | ) | - [static] |
-
forward a ticket to a specific support group.
-Checks if the ticket exists, if so then it will try to forward the ticket to the support group specified, a log entry will be written about this. if no log entry should be written then the user_id should be 0, else te $user_id will be used in the log to specify who forwarded it.
-$user_id | the id of user trying to forward the ticket. |
$ticket_id | the id of the ticket that we try to forward to a support group. |
$group_id | the id of the support group. |
getAssigned | -( | -) | -- |
get the user assigned to the ticket.
-or return 0 in case not assigned.
- -getAuthor | -( | -) | -- |
get author attribute of the object (int).
- -getCategoryName | -( | -) | -- |
get category attribute of the object in the form of text (string).
- -static getEntireTicket | -( | -$ | -id, | -
- | - | $ | -view_as_admin | -
- | ) | - [static] |
-
return an entire ticket.
-returns the ticket object and an array of all replies to that ticket.
-$id | the id of the ticket. |
$view_as_admin | true if the viewer of the ticket is a mod, else false (depending on this it will also show the hidden comments) |
getForwardedGroupId | -( | -) | -- |
get the id of the support group to whom the ticket is forwarded or return 0 in case not forwarded.
- -getForwardedGroupName | -( | -) | -- |
get the name of the support group to whom the ticket is forwarded or return 0 in case not forwarded.
- -static getLatestReply | -( | -$ | -ticket_id | ) | - [static] |
-
return the latest reply of a ticket
-$ticket_id | the id of the ticket. |
getPriority | -( | -) | -- |
get priority attribute of the object (int).
- -static getPriorityArray | -( | -) | - [static] |
-
return an array of the possible priorities
-getPriorityText | -( | -) | -- |
get priority attribute of the object in the form of text (string).
- -getQueue | -( | -) | -- |
get queue attribute of the object.
- -getStatus | -( | -) | -- |
get status attribute of the object.
- -static getStatusArray | -( | -) | - [static] |
-
return an array of the possible statuses
-getStatusText | -( | -) | -- |
get status attribute of the object in the form of text (string).
- -getTicket_Category | -( | -) | -- |
get ticket_category attribute of the object (int).
- -static getTicketsOf | -( | -$ | -author | ) | - [static] |
-
return all tickets of a specific user.
-an array of all tickets created by a specific user are returned by this function.
-$author | the id of the user of whom we want all tickets from. |
getTId | -( | -) | -- |
get tId attribute of the object.
- -getTimestamp | -( | -) | -- |
get timestamp attribute of the object in the format defined in the outputTime function of the Helperclass.
- -getTitle | -( | -) | -- |
get title attribute of the object.
- -hasInfo | -( | -) | -- |
check if a ticket has a ticket_info page or not.
-load_With_TId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a TId (ticket id).
-$id | the id of the ticket that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('TId' => ticket_id, 'Title' => title, 'Status'=> status, 'Timestamp' => ts, 'Queue' => queue, 'Ticket_Category' => tc, 'Author' => author, 'Priority' => priority). |
setAuthor | -( | -$ | -a | ) | -- |
set author attribute of the object.
-$a | author of the ticket |
setPriority | -( | -$ | -p | ) | -- |
set priority attribute of the object.
-$p | priority of the ticket |
setQueue | -( | -$ | -q | ) | -- |
set queue attribute of the object.
-$q | queue of the ticket |
setStatus | -( | -$ | -s | ) | -- |
set status attribute of the object.
-$s | status of the ticket(int) |
setTicket_Category | -( | -$ | -tc | ) | -- |
set ticket_category attribute of the object.
-$tc | ticket_category id of the ticket(int) |
setTId | -( | -$ | -id | ) | -- |
set tId attribute of the object.
-$id | integer id of the ticket |
setTimestamp | -( | -$ | -ts | ) | -- |
set timestamp attribute of the object.
-$ts | timestamp of the ticket |
setTitle | -( | -$ | -t | ) | -- |
set title attribute of the object.
-$t | title of the ticket |
static ticketExists | -( | -$ | -id | ) | - [static] |
-
check if a ticket exists.
-$id | the id of the ticket to be checked. |
static unAssignTicket | -( | -$ | -user_id, | -
- | - | $ | -ticket_id | -
- | ) | - [static] |
-
unassign a ticket of a user.
-Checks if the ticket exists, if so then it will try to unassign the user of it, a log entry will be written about this.
-$user_id | the id of user trying to be assigned to the ticket. |
$ticket_id | the id of the ticket that we try to assign to the user. |
update | -( | -) | -- |
update the objects attributes to the db.
- -static updateTicketStatus | -( | -$ | -ticket_id, | -
- | - | $ | -newStatus, | -
- | - | $ | -author | -
- | ) | - [static] |
-
updates the ticket's status.
-A log entry about this will be created only if the newStatus is different from the current status.
-$ticket_id | the id of the ticket of which we want to change the status. |
$newStatus | the new status value (integer) |
$author | the user (id) that performed the update status action |
static updateTicketStatusAndPriority | -( | -$ | -ticket_id, | -
- | - | $ | -newStatus, | -
- | - | $ | -newPriority, | -
- | - | $ | -author | -
- | ) | - [static] |
-
updates the ticket's status & priority.
-A log entry about this will be created only if the newStatus is different from the current status and also when the newPriority is different from the current priority.
-$ticket_id | the id of the ticket of which we want to change the status & priority |
$newStatus | the new status value (integer) |
$newPriority | the new priority value (integer) |
$author | the user (id) that performed the update |
$author [private] |
-
The ticket_users id.
- -$priority [private] |
-
The priority of the ticket where 0 = low, 3= supadupahigh.
- -$queue [private] |
-
(not in use atm)
- -$status [private] |
-
Status of the ticket (0 = waiting on user reply, 1 = waiting on support, (2= not used atm), 3 = closed.
- -$ticket_category [private] |
-
the id of the category belonging to the ticket
- -$tId [private] |
-
The id of ticket.
- -$timestamp [private] |
-
Timestamp of the ticket.
- -$title [private] |
-
Title of the ticket.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Class related to the ticket categories. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
load_With_TCategoryId ($id) | |
loads the object's attributes. | |
update () | |
update object attributes to the DB. | |
getName () | |
get name attribute of the object. | |
getTCategoryId () | |
get tCategoryId attribute of the object. | |
setName ($n) | |
set name attribute of the object. | |
setTCategoryId ($id) | |
set tCategoryId attribute of the object. | |
-Static Public Member Functions | |
static | createTicketCategory ($name) |
creates a ticket_Catergory in the DB. | |
static | constr_TCategoryId ($id) |
construct a category object based on the TCategoryId. | |
static | getAllCategories () |
return a list of all category objects. | |
-Private Attributes | |
$tCategoryId | |
The id of the category. | |
$name | |
The name of the category. |
Class related to the ticket categories.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static constr_TCategoryId | -( | -$ | -id | ) | - [static] |
-
construct a category object based on the TCategoryId.
-static createTicketCategory | -( | -$ | -name | ) | - [static] |
-
creates a ticket_Catergory in the DB.
-$name | name we want to give to the new category. |
static getAllCategories | -( | -) | - [static] |
-
return a list of all category objects.
-getName | -( | -) | -- |
get name attribute of the object.
- -getTCategoryId | -( | -) | -- |
get tCategoryId attribute of the object.
- -load_With_TCategoryId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a categories id.
-$id | the id of the ticket_category that should be loaded |
setName | -( | -$ | -n | ) | -- |
set name attribute of the object.
-$n | name of the category |
setTCategoryId | -( | -$ | -id | ) | -- |
set tCategoryId attribute of the object.
-$id | integer id of the category |
update | -( | -) | -- |
update object attributes to the DB.
- -$name [private] |
-
The name of the category.
- -$tCategoryId [private] |
-
The id of the category.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Class that handles the content of a reply. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
create () | |
creates a new 'tickt_content' entry. | |
load_With_TContentId ($id) | |
loads the object's attributes. | |
update () | |
update the object's attributes to the database. | |
getContent () | |
get content attribute of the object. | |
getTContentId () | |
get tContentId attribute of the object. | |
setContent ($c) | |
set content attribute of the object. | |
setTContentId ($c) | |
set tContentId attribute of the object. | |
-Static Public Member Functions | |
static | constr_TContentId ($id) |
return constructed element based on TContentId. | |
-Private Attributes | |
$tContentId | |
The id of ticket_content entry. | |
$content | |
The content of an entry. |
Class that handles the content of a reply.
-The Ticket_Content has a one-to-one relation with a ticket_reply, it contains the content of a reply, this way the content doesn't always have to be loaded when we query the database when we only need information regarding to the replies basic information.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static constr_TContentId | -( | -$ | -id | ) | - [static] |
-
return constructed element based on TContentId.
-$id | the id of ticket_content entry. |
create | -( | -) | -- |
creates a new 'tickt_content' entry.
-this method will use the object's attributes for creating a new 'ticket_content' entry in the database.
- -getContent | -( | -) | -- |
get content attribute of the object.
- -getTContentId | -( | -) | -- |
get tContentId attribute of the object.
- -load_With_TContentId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a ticket_content's id,
-$id | the id of the ticket_content entry that should be loaded |
setContent | -( | -$ | -c | ) | -- |
set content attribute of the object.
-$c | content of a reply |
setTContentId | -( | -$ | -c | ) | -- |
set tContentId attribute of the object.
-$c | integer id of ticket_content entry |
update | -( | -) | -- |
update the object's attributes to the database.
- -$content [private] |
-
The content of an entry.
- -$tContentId [private] |
-
The id of ticket_content entry.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Class that handles additional info sent by ticket creation ingame. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
load_With_TInfoId ($id) | |
loads the object's attributes by using a ticket_info id. | |
load_With_Ticket ($id) | |
loads the object's attributes by using a ticket's id. | |
create () | |
creates a new 'ticket_info' entry. | |
getTInfoId () | |
get tInfoId attribute of the object. | |
getTicket () | |
get ticket attribute of the object. | |
getShardId () | |
get shardid attribute of the object. | |
getUser_Position () | |
get user_position attribute of the object. | |
getView_Position () | |
get view_position attribute of the object. | |
getClient_Version () | |
get client_version attribute of the object. | |
getPatch_Version () | |
get patch_version attribute of the object. | |
getServer_Tick () | |
get server_tick attribute of the object. | |
getConnect_State () | |
get connect_state attribute of the object. | |
getLocal_Address () | |
get local_address attribute of the object. | |
getMemory () | |
get memory attribute of the object. | |
getOS () | |
get os attribute of the object. | |
getProcessor () | |
get processor attribute of the object. | |
getCPUId () | |
get cpu_id attribute of the object. | |
getCPU_Mask () | |
get cpu_mask attribute of the object. | |
getHT () | |
get ht attribute of the object. | |
getNel3D () | |
get nel3d attribute of the object. | |
getUser_Id () | |
get user_id attribute of the object. | |
setTInfoId ($id) | |
set tInfoId attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
setShardId ($s) | |
set shardid attribute of the object. | |
setUser_Position ($u) | |
set user_position attribute of the object. | |
setView_Position ($v) | |
set view_position attribute of the object. | |
setClient_Version ($c) | |
set client_version attribute of the object. | |
setPatch_Version ($p) | |
set patch_version attribute of the object. | |
setServer_Tick ($s) | |
set server_tick attribute of the object. | |
setConnect_State ($c) | |
set connect_state attribute of the object. | |
setLocal_Address ($l) | |
set local_address attribute of the object. | |
setMemory ($m) | |
set memory attribute of the object. | |
setOS ($o) | |
set os attribute of the object. | |
setProcessor ($p) | |
set processor attribute of the object. | |
setCPUId ($c) | |
set cpu_id attribute of the object. | |
setCPU_Mask ($c) | |
set cpu_mask attribute of the object. | |
setHT ($h) | |
set ht attribute of the object. | |
setNel3D ($n) | |
set nel3d attribute of the object. | |
setUser_Id ($u) | |
set user_id attribute of the object. | |
-Static Public Member Functions | |
static | create_Ticket_Info ($info_array) |
create a ticket_info entry. | |
static | TicketHasInfo ($ticket_id) |
check if a specific ticket has extra info or not. | |
-Private Attributes | |
$tInfoId | |
The id of ticket_info entry. | |
$ticket | |
The ticket linked to this ticket_info entry. | |
$shardid | |
The shard id. | |
$user_position | |
The user's character position. | |
$view_position | |
The view position of the character. | |
$client_version | |
The client version in use. | |
$patch_version | |
The patch version in use. | |
$server_tick | |
The current server tick. | |
$connect_state | |
The connect state. | |
$local_address | |
local ip | |
$memory | |
memory usage information | |
$os | |
os information | |
$processor | |
processor information | |
$cpu_id | |
the cpu id | |
$cpu_mask | |
the cpu mask | |
$ht | |
tbh I have no idea :D | |
$nel3d | |
the nel3d version | |
$user_id | |
The users id. |
Class that handles additional info sent by ticket creation ingame.
-If a user creates a ticket ingame, there are a lot of extra $_GET parameters being sent inside the http request that might have something todo with the ticket. for example the OS the user uses or the processor of it's computer, but also the current client version etc. This information can be stored and retrieved by using the ticket_info class.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -create | -( | -) | -- |
creates a new 'ticket_info' entry.
-this method will use the object's attributes for creating a new 'ticket_info' entry in the database.
- -static create_Ticket_Info | -( | -$ | -info_array | ) | - [static] |
-
create a ticket_info entry.
-$info_array | the info array (this can be the entire $_GET array being sent by the ingame browser) |
getClient_Version | -( | -) | -- |
get client_version attribute of the object.
- -getConnect_State | -( | -) | -- |
get connect_state attribute of the object.
- -getCPU_Mask | -( | -) | -- |
get cpu_mask attribute of the object.
- -getCPUId | -( | -) | -- |
get cpu_id attribute of the object.
- -getHT | -( | -) | -- |
get ht attribute of the object.
- -getLocal_Address | -( | -) | -- |
get local_address attribute of the object.
- -getMemory | -( | -) | -- |
get memory attribute of the object.
- -getNel3D | -( | -) | -- |
get nel3d attribute of the object.
- -getOS | -( | -) | -- |
get os attribute of the object.
- -getPatch_Version | -( | -) | -- |
get patch_version attribute of the object.
- -getProcessor | -( | -) | -- |
get processor attribute of the object.
- -getServer_Tick | -( | -) | -- |
get server_tick attribute of the object.
- -getShardId | -( | -) | -- |
get shardid attribute of the object.
- -getTicket | -( | -) | -- |
get ticket attribute of the object.
- -getTInfoId | -( | -) | -- |
get tInfoId attribute of the object.
- -getUser_Id | -( | -) | -- |
get user_id attribute of the object.
- -getUser_Position | -( | -) | -- |
get user_position attribute of the object.
- -getView_Position | -( | -) | -- |
get view_position attribute of the object.
- -load_With_Ticket | -( | -$ | -id | ) | -- |
loads the object's attributes by using a ticket's id.
-loads the object's attributes by giving a ticket's entry id.
-$id | the id of the ticket, the ticket_info entry of that ticket should be loaded. |
load_With_TInfoId | -( | -$ | -id | ) | -- |
loads the object's attributes by using a ticket_info id.
-loads the object's attributes by giving a ticket_info's entry id.
-$id | the id of the ticket_info entry that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array. |
setClient_Version | -( | -$ | -c | ) | -- |
set client_version attribute of the object.
-$c | client version number |
setConnect_State | -( | -$ | -c | ) | -- |
set connect_state attribute of the object.
-$c | string that defines the connect state. |
setCPU_Mask | -( | -$ | -c | ) | -- |
set cpu_mask attribute of the object.
-$c | mask of the cpu |
setCPUId | -( | -$ | -c | ) | -- |
set cpu_id attribute of the object.
-$c | cpu id information |
setHT | -( | -$ | -h | ) | -- |
set ht attribute of the object.
- -setLocal_Address | -( | -$ | -l | ) | -- |
set local_address attribute of the object.
-$l | local address |
setMemory | -( | -$ | -m | ) | -- |
set memory attribute of the object.
-$m | memory usage |
setNel3D | -( | -$ | -n | ) | -- |
set nel3d attribute of the object.
-$n | version information about NeL3D |
setOS | -( | -$ | -o | ) | -- |
set os attribute of the object.
-$o | set os version information |
setPatch_Version | -( | -$ | -p | ) | -- |
set patch_version attribute of the object.
-$p | patch version number |
setProcessor | -( | -$ | -p | ) | -- |
set processor attribute of the object.
-$p | processor information |
setServer_Tick | -( | -$ | -s | ) | -- |
set server_tick attribute of the object.
-$s | integer that resembles the server tick |
setShardId | -( | -$ | -s | ) | -- |
set shardid attribute of the object.
-$s | (integer) shard id |
setTicket | -( | -$ | -t | ) | -- |
set ticket attribute of the object.
-$t | integer id of the ticket linked to the info object |
setTInfoId | -( | -$ | -id | ) | -- |
set tInfoId attribute of the object.
-$id | integer id of ticket_info object itself |
setUser_Id | -( | -$ | -u | ) | -- |
set user_id attribute of the object.
-$u | the user_id. |
setUser_Position | -( | -$ | -u | ) | -- |
set user_position attribute of the object.
-$u | the users position |
setView_Position | -( | -$ | -v | ) | -- |
set view_position attribute of the object.
-$v | the view position |
static TicketHasInfo | -( | -$ | -ticket_id | ) | - [static] |
-
check if a specific ticket has extra info or not.
-Not all tickets have extra info, only tickets made ingame do. This function checks if a specific ticket does have a ticket_info entry linked to it.
-$ticket_id | the id of the ticket that we want to query |
$client_version [private] |
-
The client version in use.
- -$connect_state [private] |
-
The connect state.
- -$cpu_id [private] |
-
the cpu id
- -$cpu_mask [private] |
-
the cpu mask
- -$ht [private] |
-
tbh I have no idea :D
- -$local_address [private] |
-
local ip
- -$memory [private] |
-
memory usage information
- -$nel3d [private] |
-
the nel3d version
- -$os [private] |
-
os information
- -$patch_version [private] |
-
The patch version in use.
- -$processor [private] |
-
processor information
- -$server_tick [private] |
-
The current server tick.
- -$shardid [private] |
-
The shard id.
- -$ticket [private] |
-
The ticket linked to this ticket_info entry.
- -$tInfoId [private] |
-
The id of ticket_info entry.
- -$user_id [private] |
-
The users id.
- -$user_position [private] |
-
The user's character position.
- -$view_position [private] |
-
The view position of the character.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Class that handles the logging. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
load_With_TLogId ($id) | |
loads the object's attributes. | |
update () | |
update attributes of the object to the DB. | |
getTLogId () | |
get tLogId attribute of the object. | |
getTimestamp () | |
get timestamp attribute of the object. | |
getQuery () | |
get query attribute of the object. | |
getAuthor () | |
get author attribute of the object. | |
getTicket () | |
get ticket attribute of the object. | |
getAction () | |
get the action id out of the query by decoding it. | |
getArgument () | |
get the argument out of the query by decoding it. | |
getActionTextArray () | |
get the action text(string) array. | |
setTLogId ($id) | |
set tLogId attribute of the object. | |
setTimestamp ($t) | |
set timestamp attribute of the object. | |
setQuery ($q) | |
set query attribute of the object. | |
setAuthor ($a) | |
set author attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
-Static Public Member Functions | |
static | getLogsOfTicket ($ticket_id) |
return all log entries related to a ticket. | |
static | createLogEntry ($ticket_id, $author_id, $action, $arg=-1) |
create a new log entry. | |
static | constr_TLogId ($id) |
return constructed element based on TLogId | |
static | getAllLogs ($ticket_id) |
return all log entries related to a ticket. | |
-Private Attributes | |
$tLogId | |
The id of the log entry. | |
$timestamp | |
The timestamp of the log entry. | |
$query | |
The query (json encoded array containing action id & argument) | |
$author | |
author of the log | |
$ticket | |
the id of the ticket related to the log entry |
Class that handles the logging.
-The logging will be used when a ticket is created, a reply is added, if someone views a ticket, if someone assigns a ticket to him or if someone forwards a ticket. This class provides functions to get retrieve those logs and also make them.
--the Action IDs being used are:
-__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static constr_TLogId | -( | -$ | -id | ) | - [static] |
-
return constructed element based on TLogId
-$id | ticket_log id of the entry that we want to load into our object. |
static createLogEntry | -( | -$ | -ticket_id, | -
- | - | $ | -author_id, | -
- | - | $ | -action, | -
- | - | $ | -arg = -1 |
-
- | ) | - [static] |
-
create a new log entry.
-It will check if the $TICKET_LOGGING global var is true, this var is used to turn logging on and off. In case it's on, the log message will be stored. the action id and argument (which is -1 by default), will be json encoded and stored in the query field in the db.
-$ticket_id | the id of the ticket related to the new log entry |
$author_id | the id of the user that instantiated the logging. |
$action | the action id (see the list in the class description) |
$arg | argument for the action (default = -1) |
getAction | -( | -) | -- |
get the action id out of the query by decoding it.
- -getActionTextArray | -( | -) | -- |
get the action text(string) array.
-this is being read from the language .ini files.
- -static getAllLogs | -( | -$ | -ticket_id | ) | - [static] |
-
return all log entries related to a ticket.
-$ticket_id | the id of the ticket of which we want all related log entries returned. |
getArgument | -( | -) | -- |
get the argument out of the query by decoding it.
- -getAuthor | -( | -) | -- |
get author attribute of the object.
- -static getLogsOfTicket | -( | -$ | -ticket_id | ) | - [static] |
-
return all log entries related to a ticket.
-$ticket_id | the id of the ticket of which we want all related log entries returned. |
getQuery | -( | -) | -- |
get query attribute of the object.
- -getTicket | -( | -) | -- |
get ticket attribute of the object.
- -getTimestamp | -( | -) | -- |
get timestamp attribute of the object.
- -getTLogId | -( | -) | -- |
get tLogId attribute of the object.
- -load_With_TLogId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a ticket_log entries ID (TLogId).
-id | the id of the ticket_log entry that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array. |
setAuthor | -( | -$ | -a | ) | -- |
set author attribute of the object.
-$a | integer id of the user who created the log entry |
setQuery | -( | -$ | -q | ) | -- |
set query attribute of the object.
-$q | the encoded query |
setTicket | -( | -$ | -t | ) | -- |
set ticket attribute of the object.
-$t | integer id of ticket of which the log entry is related to. |
setTimestamp | -( | -$ | -t | ) | -- |
set timestamp attribute of the object.
-$t | timestamp of the log entry |
setTLogId | -( | -$ | -id | ) | -- |
set tLogId attribute of the object.
-$id | integer id of the log entry |
update | -( | -) | -- |
update attributes of the object to the DB.
- -$author [private] |
-
author of the log
- -$query [private] |
-
The query (json encoded array containing action id & argument)
- -$ticket [private] |
-
the id of the ticket related to the log entry
- -$timestamp [private] |
-
The timestamp of the log entry.
- -$tLogId [private] |
-
The id of the log entry.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Data class that holds a lot of queries that load specific tickets. - More...
--Public Member Functions | |
loadAllNotAssignedTickets () | |
loads the not yet assigned tickets query into the objects attributes. | |
loadAllTickets () | |
loads the 'all' tickets query into the objects attributes. | |
loadAllOpenTickets () | |
loads the 'all open' tickets query into the objects attributes. | |
loadAllClosedTickets () | |
loads the 'closed' tickets query into the objects attributes. | |
loadToDoTickets ($user_id) | |
loads the 'todo' tickets query & params into the objects attributes. | |
loadAssignedandWaiting ($user_id) | |
loads the 'tickets asssigned to a user and waiting on support' query & params into the objects attributes. | |
createQueue ($userid, $groupid, $what, $how, $who) | |
loads the 'created' query & params into the objects attributes. | |
getQuery () | |
get query attribute of the object. | |
getParams () | |
get params attribute of the object. | |
-Private Attributes | |
$query | |
The query that loads specific tickets. | |
$params | |
The parameter array that's being needed by the query. |
Data class that holds a lot of queries that load specific tickets.
-These queries are being used by the ticket_queue_handler class. An object of this class holds 2 attributes: the query and the params used for the query.
- -createQueue | -( | -$ | -userid, | -
- | - | $ | -groupid, | -
- | - | $ | -what, | -
- | - | $ | -how, | -
- | - | $ | -who | -
- | ) | -- |
loads the 'created' query & params into the objects attributes.
-This function creates dynamically a query based on the selected features.
-$who | specifies if we want to user the user_id or group_id to form the query. |
$userid | the user's id to whom the tickets should be assigned/not assigned |
$groupid | the group's id to whom the tickets should be forwarded/not forwarded |
$what | specifies what kind of tickets we want to return: waiting for support, waiting on user, closed |
$how | specifies if the tickets should be or shouldn't be assigned/forwarded to the group/user selected. |
getParams | -( | -) | -- |
get params attribute of the object.
- -getQuery | -( | -) | -- |
get query attribute of the object.
- -loadAllClosedTickets | -( | -) | -- |
loads the 'closed' tickets query into the objects attributes.
- -loadAllNotAssignedTickets | -( | -) | -- |
loads the not yet assigned tickets query into the objects attributes.
- -loadAllOpenTickets | -( | -) | -- |
loads the 'all open' tickets query into the objects attributes.
- -loadAllTickets | -( | -) | -- |
loads the 'all' tickets query into the objects attributes.
- -loadAssignedandWaiting | -( | -$ | -user_id | ) | -- |
loads the 'tickets asssigned to a user and waiting on support' query & params into the objects attributes.
-$user_id | the user's id to whom the tickets should be assigned |
loadToDoTickets | -( | -$ | -user_id | ) | -- |
loads the 'todo' tickets query & params into the objects attributes.
-first: find the tickets assigned to the user with status = waiting on support, second find all not assigned tickets that aren't forwarded yet. find all tickets assigned to someone else witht status waiting on support, with timestamp of last reply > 1 day, find all non-assigned tickets forwarded to the support groups to which that user belongs
-$user_id | the user's id to whom the tickets should be assigned |
$params [private] |
-
The parameter array that's being needed by the query.
- -$query [private] |
-
The query that loads specific tickets.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
returns tickets (queues) that are related in some way. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
getTickets ($input, $user_id) | |
returns the tickets that are related in someway defined by $input. | |
getPagination () | |
get pagination attribute of the object. | |
createQueue ($userid, $groupid, $what, $how, $who) | |
creates the queue. | |
-Static Public Member Functions | |
static | getNrOfTicketsToDo ($user_id) |
get the number of tickets in the todo queue for a specific user. | |
static | getNrOfTicketsAssignedWaiting ($user_id) |
get the number of tickets assigned to a specific user and waiting for support. | |
static | getNrOfTickets () |
get the total number of tickets. | |
static | getNewestTicket () |
get the ticket object of the latest added ticket. | |
-Private Attributes | |
$pagination | |
Pagination object, this way only a few tickets (related to that pagenumber) will be shown. | |
$queue | |
The queue object, being used to get the queries and parameters. |
returns tickets (queues) that are related in some way.
-This class handles the creation and returning of existing ticket queues. Normally a $_GET['get'] parameter is being used to identify what kind of tickets should be shown. the getTickets() function uses this parameter($input) and uses the ticket_queue class to load the specific query.
- -__construct | -( | -) | -- |
A constructor.
-Instantiates the queue object.
- -createQueue | -( | -$ | -userid, | -
- | - | $ | -groupid, | -
- | - | $ | -what, | -
- | - | $ | -how, | -
- | - | $ | -who | -
- | ) | -- |
creates the queue.
-afterwards the getTickets function should be called, else a lot of extra parameters had to be added to the getTickets function..
- -static getNewestTicket | -( | -) | - [static] |
-
get the ticket object of the latest added ticket.
- -static getNrOfTickets | -( | -) | - [static] |
-
get the total number of tickets.
- -static getNrOfTicketsAssignedWaiting | -( | -$ | -user_id | ) | - [static] |
-
get the number of tickets assigned to a specific user and waiting for support.
-$user_id | the user being queried |
static getNrOfTicketsToDo | -( | -$ | -user_id | ) | - [static] |
-
get the number of tickets in the todo queue for a specific user.
-$user_id | the user being queried |
getPagination | -( | -) | -- |
get pagination attribute of the object.
- -getTickets | -( | -$ | -input, | -
- | - | $ | -user_id | -
- | ) | -- |
returns the tickets that are related in someway defined by $input.
-The $input parameter should be a string that defines what kind of queue should be loaded. A new pagination object will be instantiated and will load 10 entries, related to the $_GET['pagenum'] variable.
-$input | identifier that defines what queue to load. |
$user_id | the id of the user that browses the queues, some queues can be depending on this. |
$pagination [private] |
-
Pagination object, this way only a few tickets (related to that pagenumber) will be shown.
- -$queue [private] |
-
The queue object, being used to get the queries and parameters.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
handles functions related to replies on tickets. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'ticket_reply' entry. | |
load_With_TReplyId ($id) | |
loads the object's attributes. | |
update () | |
updates a ticket_reply entry based on the objects attributes. | |
getTicket () | |
get ticket attribute of the object. | |
getContent () | |
get content attribute of the object. | |
getAuthor () | |
get author attribute of the object. | |
getTimestamp () | |
get timestamp attribute of the object. | |
getTReplyId () | |
get tReplyId attribute of the object. | |
getHidden () | |
get hidden attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
setContent ($c) | |
set content attribute of the object. | |
setAuthor ($a) | |
set author attribute of the object. | |
setTimestamp ($t) | |
set timestamp attribute of the object. | |
setTReplyId ($i) | |
set tReplyId attribute of the object. | |
setHidden ($h) | |
set hidden attribute of the object. | |
-Static Public Member Functions | |
static | constr_TReplyId ($id) |
return constructed element based on TReplyId. | |
static | getRepliesOfTicket ($ticket_id, $view_as_admin) |
return all replies on a specific ticket. | |
static | createReply ($content, $author, $ticket_id, $hidden, $ticket_creator) |
creates a new reply on a ticket. | |
-Private Attributes | |
$tReplyId | |
The id of the reply. | |
$ticket | |
the ticket id related to the reply | |
$content | |
the content of the reply | |
$author | |
The id of the user that made the reply. | |
$timestamp | |
The timestamp of the reply. | |
$hidden | |
indicates if reply should be hidden for normal users or not |
handles functions related to replies on tickets.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static constr_TReplyId | -( | -$ | -id | ) | - [static] |
-
return constructed element based on TReplyId.
-$id | the Id the reply we want to load. |
create | -( | -) | -- |
creates a new 'ticket_reply' entry.
-this method will use the object's attributes for creating a new 'ticket_reply' entry in the database (the now() function will create the timestamp).
- -static createReply | -( | -$ | -content, | -
- | - | $ | -author, | -
- | - | $ | -ticket_id, | -
- | - | $ | -hidden, | -
- | - | $ | -ticket_creator | -
- | ) | - [static] |
-
creates a new reply on a ticket.
-Creates a ticket_content entry and links it with a new created ticket_reply, a log entry will be written about this. In case the ticket creator replies on a ticket, he will set the status by default to 'waiting on support'.
-$content | the content of the reply |
$author | the id of the reply creator. |
$ticket_id | the id of the ticket of which we want the replies. |
$hidden | should be 0 or 1 |
$ticket_creator | the ticket's starter his id. |
getAuthor | -( | -) | -- |
get author attribute of the object.
- -getContent | -( | -) | -- |
get content attribute of the object.
- -getHidden | -( | -) | -- |
get hidden attribute of the object.
- -static getRepliesOfTicket | -( | -$ | -ticket_id, | -
- | - | $ | -view_as_admin | -
- | ) | - [static] |
-
return all replies on a specific ticket.
-$ticket_id | the id of the ticket of which we want the replies. |
$view_as_admin | if the browsing user is an admin/mod it should be 1, this will also show the hidden replies. |
getTicket | -( | -) | -- |
get ticket attribute of the object.
- -getTimestamp | -( | -) | -- |
get timestamp attribute of the object.
-The output format is defined by the Helpers class function, outputTime().
- -getTReplyId | -( | -) | -- |
get tReplyId attribute of the object.
- -load_With_TReplyId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a ticket_reply's id.
-$id | the id of the ticket_reply that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array. |
setAuthor | -( | -$ | -a | ) | -- |
set author attribute of the object.
-$a | integer id of the user |
setContent | -( | -$ | -c | ) | -- |
set content attribute of the object.
-$c | integer id of the ticket_content entry |
setHidden | -( | -$ | -h | ) | -- |
set hidden attribute of the object.
-$h | should be 0 or 1 |
setTicket | -( | -$ | -t | ) | -- |
set ticket attribute of the object.
-$t | integer id of the ticket |
setTimestamp | -( | -$ | -t | ) | -- |
set timestamp attribute of the object.
-$t | timestamp of the reply |
setTReplyId | -( | -$ | -i | ) | -- |
set tReplyId attribute of the object.
-$i | integer id of the ticket_reply |
update | -( | -) | -- |
updates a ticket_reply entry based on the objects attributes.
- -$author [private] |
-
The id of the user that made the reply.
- -$content [private] |
-
the content of the reply
- -$hidden [private] |
-
indicates if reply should be hidden for normal users or not
- -$ticket [private] |
-
the ticket id related to the reply
- -$timestamp [private] |
-
The timestamp of the reply.
- -$tReplyId [private] |
-
The id of the reply.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
user entry point in the ticket system. - More...
--Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
load_With_TUserId ($id) | |
loads the object's attributes. | |
update () | |
update the object's attributes to the db. | |
getPermission () | |
get permission attribute of the object. | |
getExternId () | |
get externId attribute of the object. | |
getTUserId () | |
get tUserId attribute of the object. | |
setPermission ($perm) | |
set permission attribute of the object. | |
setExternId ($id) | |
set externId attribute of the object. | |
setTUserId ($id) | |
set tUserId attribute of the object. | |
-Static Public Member Functions | |
static | createTicketUser ($extern_id, $permission) |
create a new ticket user. | |
static | isMod ($user) |
check if a ticket_user object is a mod or not. | |
static | isAdmin ($user) |
check if a ticket_user object is an admin or not. | |
static | constr_TUserId ($id) |
return constructed ticket_user object based on TUserId. | |
static | getModsAndAdmins () |
return a list of all mods/admins. | |
static | constr_ExternId ($id) |
return constructed ticket_user object based on ExternId. | |
static | change_permission ($user_id, $perm) |
change the permission of a ticket_user. | |
static | get_email_by_user_id ($id) |
return the email address of a ticket_user. | |
static | get_username_from_id ($id) |
return the username of a ticket_user. | |
static | get_id_from_username ($username) |
return the TUserId of a ticket_user by giving a username. | |
static | get_id_from_email ($email) |
return the ticket_user id from an email address. | |
-Private Attributes | |
$tUserId | |
The id of the user inside the ticket system. | |
$permission | |
The permission of the user. | |
$externId | |
The id of the user account in the www (could be drupal,...) that is linked to the ticket_user. |
user entry point in the ticket system.
-The ticket_user makes a link between the entire ticket system's lib db and the www user, which is stored in another db (this is the external ID). The externalID could be the ID of a drupal user or wordpress user,.. The ticket_user also stores the permission of that user, this way the permission system is inside the lib itself and can be used in any www version that you like. permission 1 = user, 2 = mod, 3 = admin.
- -__construct | -( | -) | -- |
A constructor.
-Empty constructor
- -static change_permission | -( | -$ | -user_id, | -
- | - | $ | -perm | -
- | ) | - [static] |
-
change the permission of a ticket_user.
-$user_id | the TUserId of the entry. |
$perm | the new permission value. |
static constr_ExternId | -( | -$ | -id | ) | - [static] |
-
return constructed ticket_user object based on ExternId.
-$id | the ExternId of the entry. |
static constr_TUserId | -( | -$ | -id | ) | - [static] |
-
return constructed ticket_user object based on TUserId.
-$id | the TUserId of the entry. |
static createTicketUser | -( | -$ | -extern_id, | -
- | - | $ | -permission | -
- | ) | - [static] |
-
create a new ticket user.
-$extern_id | the id of the user account in the www version (drupal,...) |
$permission | the permission that will be given to the user. 1=user, 2=mod, 3=admin |
static get_email_by_user_id | -( | -$ | -id | ) | - [static] |
-
return the email address of a ticket_user.
-$id | the TUserId of the entry. |
static get_id_from_email | -( | -$ | -) | - [static] |
-
return the ticket_user id from an email address.
-the emailaddress of a user. |
static get_id_from_username | -( | -$ | -username | ) | - [static] |
-
return the TUserId of a ticket_user by giving a username.
-$username | the username of a user. |
static get_username_from_id | -( | -$ | -id | ) | - [static] |
-
return the username of a ticket_user.
-$id | the TUserId of the entry. |
getExternId | -( | -) | -- |
get externId attribute of the object.
- -static getModsAndAdmins | -( | -) | - [static] |
-
return a list of all mods/admins.
-getPermission | -( | -) | -- |
get permission attribute of the object.
- -getTUserId | -( | -) | -- |
get tUserId attribute of the object.
- -static isAdmin | -( | -$ | -user | ) | - [static] |
-
check if a ticket_user object is an admin or not.
-$user | the ticket_user object itself |
static isMod | -( | -$ | -user | ) | - [static] |
-
check if a ticket_user object is a mod or not.
-$user | the ticket_user object itself |
load_With_TUserId | -( | -$ | -id | ) | -- |
loads the object's attributes.
-loads the object's attributes by giving a TUserId.
-$id | the id of the ticket_user that should be loaded |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array of the form array('TUserId' => id, 'Permission' => perm, 'ExternId' => ext_id). |
setExternId | -( | -$ | -id | ) | -- |
set externId attribute of the object.
-$id | the external id. |
setPermission | -( | -$ | -perm | ) | -- |
set permission attribute of the object.
-$perm | integer that indicates the permission level. (1= user, 2= mod, 3= admin) |
setTUserId | -( | -$ | -id | ) | -- |
set tUserId attribute of the object.
-$id | the ticket_user id |
update | -( | -) | -- |
update the object's attributes to the db.
- -$externId [private] |
-
The id of the user account in the www (could be drupal,...) that is linked to the ticket_user.
- -$permission [private] |
-
The permission of the user.
- -$tUserId [private] |
-
The id of the user inside the ticket system.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
handles basic user registration & management functions (shard related). - More...
--Public Member Functions | |
check_Register ($values) | |
checks if entered values before registering are valid. | |
checkUser ($username) | |
checks if entered username is valid. | |
checkPassword ($pass) | |
checks if the password is valid. | |
checkEmail ($email) | |
wrapper to check if the email address is valid. | |
validEmail ($email) | |
check if the emailaddress structure is valid. | |
check_change_password ($values) | |
check if the changing of a password is valid. | |
-Static Public Member Functions | |
static | generateSALT ($length=2) |
generate a SALT. | |
static | createUser ($values, $user_id) |
creates a user in the shard. | |
static | createPermissions ($pvalues) |
creates permissions in the shard db for a user. | |
-Protected Member Functions | |
checkUserNameExists ($username) | |
check if username already exists. | |
checkEmailExists ($email) | |
check if email already exists. | |
checkLoginMatch ($user, $pass) | |
check if username and password matches. | |
setAmsPassword ($user, $pass) | |
sets the shards password. | |
setAmsEmail ($user, $mail) | |
sets the shards email. | |
-Private Member Functions | |
confirmPassword ($pass_result, $pass, $confirmpass) | |
checks if the confirmPassword matches the original. |
handles basic user registration & management functions (shard related).
-The Users class is the basis class of WebUsers, this class provides functions being used by all CMS's and our own www version. The WebUsers class however needs to be reimplemented by using the CMS's it's funcionality. This class handles the writing to the shard db mainly, and in case it's offline: writing to the ams_querycache.
- -check_change_password | -( | -$ | -values | ) | -- |
check if the changing of a password is valid.
-a mod/admin doesn't has to fill in the previous password when he wants to change the password, however for changing his own password he has to fill it in.
-$values | an array containing the CurrentPass, ConfirmNewPass, NewPass and adminChangesOthers |
check_Register | -( | -$ | -values | ) | -- |
checks if entered values before registering are valid.
-$values | array with Username,Password, ConfirmPass and Email. |
checkEmail | -( | -$ | -) | -- |
wrapper to check if the email address is valid.
-the email address |
checkEmailExists | -( | -$ | -) | - [protected] |
-
checkLoginMatch | -( | -$ | -user, | -
- | - | $ | -pass | -
- | ) | - [protected] |
-
checkPassword | -( | -$ | -pass | ) | -- |
checks if the password is valid.
-$pass | the password willing to be used. |
checkUser | -( | -$ | -username | ) | -- |
checks if entered username is valid.
-$username | the username that the user wants to use. |
checkUserNameExists | -( | -$ | -username | ) | - [protected] |
-
confirmPassword | -( | -$ | -pass_result, | -
- | - | $ | -pass, | -
- | - | $ | -confirmpass | -
- | ) | - [private] |
-
checks if the confirmPassword matches the original.
-$pass_result | the result of the previous password check. |
$pass | the original pass. |
$confirmpass | the confirmation password. |
static createPermissions | -( | -$ | -pvalues | ) | - [static] |
-
creates permissions in the shard db for a user.
-incase the shard is offline it will place it in the ams_querycache.
-$pvalues | with username |
static createUser | -( | -$ | -values, | -
- | - | $ | -user_id | -
- | ) | - [static] |
-
creates a user in the shard.
-incase the shard is offline it will place it in the ams_querycache. You have to create a user first in the CMS/WWW and use the id for this function.
-$values | with name,pass and mail |
$user_id | the extern id of the user (the id given by the www/CMS) |
static generateSALT | -( | -$ | -length = 2 | ) | - [static] |
-
generate a SALT.
-$length | the length of the SALT which is by default 2 |
setAmsEmail | -( | -$ | -user, | -
- | - | $ | -|
- | ) | - [protected] |
-
sets the shards email.
-in case the shard is offline, the entry will be stored in the ams_querycache.
-$user | the usersname of the account of which we want to change the emailaddress. |
the new email address |
setAmsPassword | -( | -$ | -user, | -
- | - | $ | -pass | -
- | ) | - [protected] |
-
sets the shards password.
-in case the shard is offline, the entry will be stored in the ams_querycache.
-$user | the usersname of the account of which we want to change the password. |
$pass | the new password. |
validEmail | -( | -$ | -) | -- |
check if the emailaddress structure is valid.
-the email address |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
handles CMS/WWW related functions regarding user management & registration. - More...
--Public Member Functions | |
__construct ($UId=0) | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
checkLoginMatch ($username, $password) | |
check if the login username and password match the db. | |
getUId () | |
get uId attribute of the object. | |
getUsername () | |
get login attribute of the object. | |
getEmail () | |
get email attribute of the object. | |
getInfo () | |
get basic info of the object. | |
getReceiveMail () | |
get receiveMail attribute of the object. | |
getLanguage () | |
get language attribute of the object. | |
isLoggedIn () | |
check if the user is logged in. | |
setPassword ($user, $pass) | |
update the password. | |
setEmail ($user, $mail) | |
update the emailaddress. | |
getUsers () | |
return all users. | |
__construct ($UId=0) | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
checkLoginMatch ($username, $password) | |
check if the login username and password match the db. | |
getUId () | |
get uId attribute of the object. | |
getUsername () | |
get login attribute of the object. | |
getEmail () | |
get email attribute of the object. | |
getInfo () | |
get basic info of the object. | |
getReceiveMail () | |
get receiveMail attribute of the object. | |
getLanguage () | |
get language attribute of the object. | |
isLoggedIn () | |
check if the user is logged in. | |
setPassword ($user, $pass) | |
update the password. | |
setEmail ($user, $mail) | |
update the emailaddress. | |
getUsers () | |
return all users. | |
-Static Public Member Functions | |
static | getId ($username) |
returns te id for a given username | |
static | getIdFromEmail ($email) |
returns te id for a given emailaddress | |
static | setReceiveMail ($user, $receivemail) |
update the setReceiveMail value in the db. | |
static | setLanguage ($user, $language) |
update the language value in the db. | |
static | getAllUsersQuery () |
return the query that should get all users. | |
static | createWebuser ($name, $pass, $mail) |
creates a webuser. | |
static | getId ($username) |
returns te id for a given username | |
static | getIdFromEmail ($email) |
returns te id for a given emailaddress | |
static | setReceiveMail ($user, $receivemail) |
update the setReceiveMail value in the db. | |
static | setLanguage ($user, $language) |
update the language value in the db. | |
static | getAllUsersQuery () |
return the query that should get all users. | |
static | createWebuser ($name, $pass, $mail) |
creates a webuser. | |
-Protected Member Functions | |
checkUserNameExists ($username) | |
function that checks if a username exists already or not. | |
checkEmailExists ($email) | |
function that checks if a email exists already or not. | |
checkUserNameExists ($username) | |
function that checks if a username exists already or not. | |
checkEmailExists ($email) | |
function that checks if a email exists already or not. | |
-Private Attributes | |
$uId | |
The user id. | |
$login | |
The username. | |
The email address. | |
$firstname | |
The users first name. | |
$lastname | |
The users last name. | |
$gender | |
The gender. | |
$country | |
2 letter word matching the country of the user | |
$receiveMail | |
configuration regarding if the user wants to receive email notifications or not. | |
$language | |
Language of the user. |
handles CMS/WWW related functions regarding user management & registration.
-inherits from the Users class. The methods of this class have to be rewritten according to the CMS's functionality that you wish to use. The drupal_module has a webusers class of its own in the module itself.
- -__construct | -( | -$ | -UId = 0 | ) | -- |
A constructor.
-loads the object with the UID, if none is given it will use 0.
-$UId | the UID of the user you want to instantiate. |
__construct | -( | -$ | -UId = 0 | ) | -- |
A constructor.
-loads the object with the UID, if none is given it will use 0.
-$UId | the UID of the user you want to instantiate. |
checkEmailExists | -( | -$ | -) | - [protected] |
-
function that checks if a email exists already or not.
-This function overrides the function of the base class.
-the email address in question. |
Reimplemented from Users.
- -checkEmailExists | -( | -$ | -) | - [protected] |
-
function that checks if a email exists already or not.
-This function overrides the function of the base class.
-the email address in question. |
Reimplemented from Users.
- -checkLoginMatch | -( | -$ | -username, | -
- | - | $ | -password | -
- | ) | -- |
check if the login username and password match the db.
-$username | the inserted username |
$password | the inserted password (unhashed) |
Reimplemented from Users.
- -checkLoginMatch | -( | -$ | -username, | -
- | - | $ | -password | -
- | ) | -- |
check if the login username and password match the db.
-$username | the inserted username |
$password | the inserted password (unhashed) |
Reimplemented from Users.
- -checkUserNameExists | -( | -$ | -username | ) | - [protected] |
-
function that checks if a username exists already or not.
-This function overrides the function of the base class.
-$username | the username in question |
Reimplemented from Users.
- -checkUserNameExists | -( | -$ | -username | ) | - [protected] |
-
function that checks if a username exists already or not.
-This function overrides the function of the base class.
-$username | the username in question |
Reimplemented from Users.
- -static createWebuser | -( | -$ | -name, | -
- | - | $ | -pass, | -
- | - | $ | -|
- | ) | - [static] |
-
creates a webuser.
-it will set the language matching to the language cookie setting and add it to the www/CMS's DB.
-$name | the username |
$pass | the unhashed password |
the email address |
static createWebuser | -( | -$ | -name, | -
- | - | $ | -pass, | -
- | - | $ | -|
- | ) | - [static] |
-
creates a webuser.
-it will set the language matching to the language cookie setting and add it to the www/CMS's DB.
-$name | the username |
$pass | the unhashed password |
the email address |
static getAllUsersQuery | -( | -) | - [static] |
-
return the query that should get all users.
-static getAllUsersQuery | -( | -) | - [static] |
-
return the query that should get all users.
-getEmail | -( | -) | -- |
get email attribute of the object.
- -getEmail | -( | -) | -- |
get email attribute of the object.
- -static getId | -( | -$ | -username | ) | - [static] |
-
returns te id for a given username
-$username | the username |
static getId | -( | -$ | -username | ) | - [static] |
-
returns te id for a given username
-$username | the username |
static getIdFromEmail | -( | -$ | -) | - [static] |
-
returns te id for a given emailaddress
-the emailaddress |
static getIdFromEmail | -( | -$ | -) | - [static] |
-
returns te id for a given emailaddress
-the emailaddress |
getInfo | -( | -) | -- |
get basic info of the object.
-getInfo | -( | -) | -- |
get basic info of the object.
-getLanguage | -( | -) | -- |
get language attribute of the object.
- -getLanguage | -( | -) | -- |
get language attribute of the object.
- -getReceiveMail | -( | -) | -- |
get receiveMail attribute of the object.
- -getReceiveMail | -( | -) | -- |
get receiveMail attribute of the object.
- -getUId | -( | -) | -- |
get uId attribute of the object.
- -getUId | -( | -) | -- |
get uId attribute of the object.
- -getUsername | -( | -) | -- |
get login attribute of the object.
-(username)
- -getUsername | -( | -) | -- |
get login attribute of the object.
-(username)
- -getUsers | -( | -) | -- |
return all users.
-getUsers | -( | -) | -- |
return all users.
-isLoggedIn | -( | -) | -- |
check if the user is logged in.
-isLoggedIn | -( | -) | -- |
check if the user is logged in.
-set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array. |
set | -( | -$ | -values | ) | -- |
sets the object's attributes.
-$values | should be an array. |
setEmail | -( | -$ | -user, | -
- | - | $ | -|
- | ) | -- |
update the emailaddress.
-update the emailaddress in the shard + update the emailaddress in the www/CMS version.
-$user | the username |
the new emailaddress. |
setEmail | -( | -$ | -user, | -
- | - | $ | -|
- | ) | -- |
update the emailaddress.
-update the emailaddress in the shard + update the emailaddress in the www/CMS version.
-$user | the username |
the new emailaddress. |
static setLanguage | -( | -$ | -user, | -
- | - | $ | -language | -
- | ) | - [static] |
-
update the language value in the db.
-update the language in the www/CMS version.
-$user | the username |
$language | the new language value. |
static setLanguage | -( | -$ | -user, | -
- | - | $ | -language | -
- | ) | - [static] |
-
update the language value in the db.
-update the language in the www/CMS version.
-$user | the username |
$language | the new language value. |
setPassword | -( | -$ | -user, | -
- | - | $ | -pass | -
- | ) | -- |
update the password.
-update the password in the shard + update the password in the www/CMS version.
-$user | the username |
$pass | the new password. |
setPassword | -( | -$ | -user, | -
- | - | $ | -pass | -
- | ) | -- |
update the password.
-update the password in the shard + update the password in the www/CMS version.
-$user | the username |
$pass | the new password. |
static setReceiveMail | -( | -$ | -user, | -
- | - | $ | -receivemail | -
- | ) | - [static] |
-
update the setReceiveMail value in the db.
-update the receiveMail in the www/CMS version.
-$user | the username |
$receivemail | the receivemail setting . |
static setReceiveMail | -( | -$ | -user, | -
- | - | $ | -receivemail | -
- | ) | - [static] |
-
update the setReceiveMail value in the db.
-update the receiveMail in the www/CMS version.
-$user | the username |
$receivemail | the receivemail setting . |
$country [private] |
-
2 letter word matching the country of the user
- -$email [private] |
-
The email address.
- -$firstname [private] |
-
The users first name.
- -$gender [private] |
-
The gender.
- -$language [private] |
-
Language of the user.
- -$lastname [private] |
-
The users last name.
- -$login [private] |
-
The username.
- -$receiveMail [private] |
-
configuration regarding if the user wants to receive email notifications or not.
- -$uId [private] |
-
The user id.
- -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
|
|
|
| Ticket_User | ||||
| ||||||||
Assigned | Helpers | Pagination | Ticket | |||||
|
|
| Ticket_Category | Users | ||||
Ticket_Content |
| |||||||
DBLayer | In_Support_Group | Querycache | Ticket_Info | |||||
|
|
| Ticket_Log | WebUsers | ||||
Ticket_Queue | ||||||||
Forwarded | Mail_Handler | Support_Group | Ticket_Queue_Handler | |||||
| MyCrypt | Sync | Ticket_Reply | |||||
Gui_Elements | ||||||||
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
create_ticket () | |
This function is beign used to create a new ticket. |
create_ticket | -( | -) | -- |
This function is beign used to create a new ticket.
-It will first check if the user who executed this function is the person of whom the setting is or if it's a mod/admin. If this is not the case the page will be redirected to an error page. next it will filter the POST data and it will try to create the new ticket. Afterwards a redirecion to the ticket will occur.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
createticket () | |
This function is beign used to load info that's needed for the createticket page. |
createticket | -( | -) | -- |
This function is beign used to load info that's needed for the createticket page.
-the $_GET['user_id'] identifies for which user you try to create a ticket. A normal user can only create a ticket for himself, a mod/admin however can also create tickets for other users. It will also load all categories and return these, they will be used by the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
dashboard () | |
This function is beign used to load info that's needed for the dashboard page. |
dashboard | -( | -) | -- |
This function is beign used to load info that's needed for the dashboard page.
-check if the person who wants to view this page is a mod/admin, if this is not the case, he will be redirected to an error page. next it will fetch a lot of information regarding to the status of the ticket system (eg return the total amount of tickets) and return this information so it can be used by the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
We will take a look at the current db design, the way the classes are designed, the way the WWW version works and how it was reused in the drupal module.
-My project started with the design of our database. I had to think about the advanced AMS features in advance. This is the reason why there are still a few unused DB tables in the design, the plan however is to use those as soon as possible by implementing the extra features.
-The tables that are unused are the following:
-The idea for the ticket_groups was to provide the ability to bundle multiple tickets together in groups, this could be used for tickets that are alike or are in a weird way related. The idea for the tagging was to provide an extra system that allows to query tickets based on their tags (datamining). These features can be easily added in the future!
-Let's take a look at the 'used' tables. The database structure is shown in the image below. For each table I made a matching class that handles the info of that table.
-Quite central you can see the ticket table. As you can see, a ticket has a ticket_category field and author field, these hold the id of the related row in the ticket_category and ticket_user table. There's also the relation between a ticket and it's log entries, this is done by the ticket foreign key in the ticket_log table. The same counts for most other tables that are related to the ticket, they all got a ticket column used as foreign key.
-Another thing that you might notice is the separation between ticket_reply and ticket_content, this is a 1-to-1 relation and this makes it easier to search between the replies if we only need their general information without having to take care of the content. The ticket_user is another quite important table that's being foreigned keyed by the others. It holds the permission of a user and the externID links to an ID given by the CMS(or our own www version)
-Most things are pretty clear and straight forward, you can find the MYSQL Workbench file in the ryzom_ams/www/html/sql folder, which might give a better overview and can be used to update the DB easily when adding/modifying features in the future.
-As you might have noticed, the ryzom_ams directory contains 3 directories: the ams_lib dir, the www dir and a drupal_module dir.
-the ams_lib contains the following important dirs/files:
-the www contains the following important dirs/files:
-the drupal_module contains the following important dirs/files:
-Important: the func dir and inc dir in the drupal_module are almost empty, that's because the inc/func directories of the WWW version can be copied to the drupal version, they are exactly the same. However, because the drupal_module isn't completely up to date, the settings page doesn't has the extra fields (like gender,country,..) therefore the ingame template file, inc files related to that are still in the module.
-Like I mentioned above, each DB table has a class related that handles the data linked to that table and has functions working with that data.
-The private attributes of each class are similar to the fields in the DB table. Every class also has the following functions:
-These methods are being used by the public static functions of that class, which represent the 'real' AMS-functions, the ones being used by the inc/func files.
-You can reference for example the Support_Group class's information, which shows this setup!
-- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Data Structures | |
class | WebUsers |
handles CMS/WWW related functions regarding user management & registration. More... |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Variables | |
$cfg ['db']['web']['host'] = variable_get('ryzommanage_webserverurl', 'localhost') | |
This file contains all variables needed by other php scripts. | |
$cfg ['db']['web']['port'] = variable_get('ryzommanage_webmysqlport', '3306') | |
$cfg ['db']['web']['name'] = variable_get('ryzommanage_webdbname', 'drupal') | |
$cfg ['db']['web']['user'] = variable_get('ryzommanage_webusername', 'shard') | |
$cfg ['db']['web']['pass'] = variable_get('ryzommanage_webpassword', '') | |
$cfg ['db']['lib']['host'] = variable_get('ryzommanage_libserverurl', 'localhost') | |
$cfg ['db']['lib']['port'] = variable_get('ryzommanage_libmysqlport', '3306') | |
$cfg ['db']['lib']['name'] = variable_get('ryzommanage_libdbname', 'ryzom_ams_lib') | |
$cfg ['db']['lib']['user'] = variable_get('ryzommanage_libusername', 'shard') | |
$cfg ['db']['lib']['pass'] = variable_get('ryzommanage_libpassword', '') | |
$cfg ['db']['shard']['host'] = variable_get('ryzommanage_shardserverurl', 'localhost') | |
$cfg ['db']['shard']['port'] = variable_get('ryzommanage_shardmysqlport', '3306') | |
$cfg ['db']['shard']['name'] = variable_get('ryzommanage_sharddbname', 'nel') | |
$cfg ['db']['shard']['user'] = variable_get('ryzommanage_shardusername', 'shard') | |
$cfg ['db']['shard']['pass'] = variable_get('ryzommanage_shardpassword', '') | |
$cfg ['db']['ring']['host'] = variable_get('ryzommanage_ringserverurl', 'localhost') | |
$cfg ['db']['ring']['port'] = variable_get('ryzommanage_ringmysqlport', '3306') | |
$cfg ['db']['ring']['name'] = variable_get('ryzommanage_ringdbname', 'ring_open') | |
$cfg ['db']['ring']['user'] = variable_get('ryzommanage_ringusername', 'shard') | |
$cfg ['db']['ring']['pass'] = variable_get('ryzommanage_ringpassword', '') | |
$cfg ['mail']['default_mailserver'] = '{imap.gmail.com:993/imap/ssl}INBOX' | |
$cfg ['mail']['default_groupemail'] = 'amsryzom@gmail.com' | |
$cfg ['mail']['default_groupname'] = 'Ryzomcore Support' | |
$cfg ['mail']['default_username'] = 'amsryzom@gmail.com' | |
$cfg ['mail']['default_password'] = 'lol123bol' | |
$cfg ['mail']['host'] = "ryzomcore.com" | |
$SUPPORT_GROUP_IMAP_CRYPTKEY = "azerty" | |
$TICKET_MAILING_SUPPORT = false | |
$MAIL_DIR = "/tmp/mail" | |
$MAIL_LOG_PATH = "/tmp/mail/cron_mail.log" | |
$cfg ['crypt']['key'] = 'Sup3rS3cr3tStuff' | |
$cfg ['crypt']['enc_method'] = 'AES-256-CBC' | |
$cfg ['crypt']['hash_method'] = "SHA512" | |
$TOS_URL = variable_get('ryzommanage_TOS', 'www.mytosurlhere.com') | |
$ALLOW_UNKNOWN = true | |
$CREATE_RING = true | |
$AMS_LIB = dirname( __FILE__ ) . '/ams_lib' | |
$AMS_TRANS = $AMS_LIB . '/translations' | |
$AMS_CACHEDIR = $AMS_LIB . '/cache' | |
$SITEBASE = dirname( __FILE__ ) | |
$BASE_WEBPATH = 'http://localhost:40917/drupal' | |
$IMAGELOC_WEBPATH = $BASE_WEBPATH. '/sites/all/modules/ryzommanage/ams_lib/img' | |
$WEBPATH = $BASE_WEBPATH .'/ams' | |
$INGAME_WEBPATH = $BASE_WEBPATH . '/ingame' | |
$CONFIG_PATH = dirname( __FILE__ ) | |
$DEFAULT_LANGUAGE = 'en' | |
$TICKET_LOGGING = true | |
$TIME_FORMAT = "m-d-Y H:i:s" | |
$INGAME_LAYOUT = "basic" | |
$FORCE_INGAME = false |
$ALLOW_UNKNOWN = true | -
$AMS_CACHEDIR = $AMS_LIB . '/cache' | -
$AMS_LIB = dirname( __FILE__ ) . '/ams_lib' | -
$AMS_TRANS = $AMS_LIB . '/translations' | -
$BASE_WEBPATH = 'http://localhost:40917/drupal' | -
$cfg['db']['web']['host'] = variable_get('ryzommanage_webserverurl', 'localhost') | -
This file contains all variables needed by other php scripts.
- - -$cfg['db']['web']['port'] = variable_get('ryzommanage_webmysqlport', '3306') | -
$cfg['db']['web']['name'] = variable_get('ryzommanage_webdbname', 'drupal') | -
$cfg['db']['web']['user'] = variable_get('ryzommanage_webusername', 'shard') | -
$cfg['db']['web']['pass'] = variable_get('ryzommanage_webpassword', '') | -
$cfg['db']['lib']['host'] = variable_get('ryzommanage_libserverurl', 'localhost') | -
$cfg['db']['lib']['port'] = variable_get('ryzommanage_libmysqlport', '3306') | -
$cfg['db']['lib']['name'] = variable_get('ryzommanage_libdbname', 'ryzom_ams_lib') | -
$cfg['db']['lib']['user'] = variable_get('ryzommanage_libusername', 'shard') | -
$cfg['db']['lib']['pass'] = variable_get('ryzommanage_libpassword', '') | -
$cfg['db']['shard']['host'] = variable_get('ryzommanage_shardserverurl', 'localhost') | -
$cfg['db']['shard']['port'] = variable_get('ryzommanage_shardmysqlport', '3306') | -
$cfg['db']['shard']['name'] = variable_get('ryzommanage_sharddbname', 'nel') | -
$cfg['db']['shard']['user'] = variable_get('ryzommanage_shardusername', 'shard') | -
$cfg['db']['shard']['pass'] = variable_get('ryzommanage_shardpassword', '') | -
$cfg['db']['ring']['host'] = variable_get('ryzommanage_ringserverurl', 'localhost') | -
$cfg['db']['ring']['port'] = variable_get('ryzommanage_ringmysqlport', '3306') | -
$cfg['db']['ring']['name'] = variable_get('ryzommanage_ringdbname', 'ring_open') | -
$cfg['db']['ring']['user'] = variable_get('ryzommanage_ringusername', 'shard') | -
$cfg['db']['ring']['pass'] = variable_get('ryzommanage_ringpassword', '') | -
$cfg['mail']['default_mailserver'] = '{imap.gmail.com:993/imap/ssl}INBOX' | -
$cfg['mail']['default_groupemail'] = 'amsryzom@gmail.com' | -
$cfg['mail']['default_groupname'] = 'Ryzomcore Support' | -
$cfg['mail']['default_username'] = 'amsryzom@gmail.com' | -
$cfg['mail']['default_password'] = 'lol123bol' | -
$cfg['mail']['host'] = "ryzomcore.com" | -
$cfg['crypt']['key'] = 'Sup3rS3cr3tStuff' | -
$cfg['crypt']['enc_method'] = 'AES-256-CBC' | -
$cfg['crypt']['hash_method'] = "SHA512" | -
$CONFIG_PATH = dirname( __FILE__ ) | -
$CREATE_RING = true | -
$DEFAULT_LANGUAGE = 'en' | -
$FORCE_INGAME = false | -
$IMAGELOC_WEBPATH = $BASE_WEBPATH. '/sites/all/modules/ryzommanage/ams_lib/img' | -
$INGAME_LAYOUT = "basic" | -
$INGAME_WEBPATH = $BASE_WEBPATH . '/ingame' | -
$MAIL_DIR = "/tmp/mail" | -
$MAIL_LOG_PATH = "/tmp/mail/cron_mail.log" | -
$SITEBASE = dirname( __FILE__ ) | -
$SUPPORT_GROUP_IMAP_CRYPTKEY = "azerty" | -
$TICKET_LOGGING = true | -
$TICKET_MAILING_SUPPORT = false | -
$TIME_FORMAT = "m-d-Y H:i:s" | -
$TOS_URL = variable_get('ryzommanage_TOS', 'www.mytosurlhere.com') | -
$WEBPATH = $BASE_WEBPATH .'/ams' | -
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
settings () | |
getCountryArray () |
getCountryArray | -( | -) | -- |
settings | -( | -) | -- |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
show_user () |
show_user | -( | -) | -- |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
error () | |
This function is beign used to load info that's needed for the error page. |
error | -( | -) | -- |
This function is beign used to load info that's needed for the error page.
-if a error_code session var is set it will unset it (else 404 is used), and it will return the error code so it can be used in the template.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/assigned.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/dblayer.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/forwarded.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/in_support_group.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/mail_handler.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/mycrypt.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/pagination.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/querycache.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/support_group.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/sync.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_category.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_content.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_info.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_log.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_queue.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_queue_handler.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_reply.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_user.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/cron/mail_cron.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/cron/sync_cron.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/drupal_module/ryzommanage/config.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/drupal_module/ryzommanage/autoload/webusers.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/drupal_module/ryzommanage/inc/logout.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/drupal_module/ryzommanage/inc/settings.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/drupal_module/ryzommanage/inc/show_user.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/config.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/index.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/autoload/webusers.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/add_sgroup.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/add_user.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/add_user_to_sgroup.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/change_info.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/change_mail.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/change_password.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/change_receivemail.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/login.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/modify_email_of_sgroup.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/func/reply_on_ticket.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/change_permission.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/createticket.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/dashboard.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/error.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/login.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/logout.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/register.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/settings.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/sgroup_list.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_queue.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_reply.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_sgroup.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket_info.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket_log.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_user.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/syncing.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/inc/userlist.php | |
/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/sql/install.php | |
info.php |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Data Structures | |
class | Forwarded |
Handles the forwarding of a ticket to a support_group. More... |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
login () | |
This function is beign used to login a user. |
login | -( | -) | -- |
This function is beign used to login a user.
-It will first check if the sent POST data returns a match with the DB, if it does, some session variables will be appointed to the user and he will be redirected to the index page again. If it didn't match, the template will be reloaded and a matching error message will be shown.
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Data Structures | |
class | Gui_Elements |
Helper class for generating gui related elements. More... |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Data Structures | |
class | In_Support_Group |
Handles the linkage of users being in a support group. More... |
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
login () | |
This function is beign used to load info that's needed for the login page. |
login | -( | -) | -- |
This function is beign used to load info that's needed for the login page.
-it will try to auto-login, this can only be used while ingame, the web browser sends additional cookie information that's also stored in the open_ring db. We will compare the values and if they match, the user will be automatically logged in!
- - -- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
Welcome to the documentation pages of the ryzom account management system library.
- Doxygen is being used to generate these webpages. They should offer a good reference for anyone who is interested in working with the AMS library.
if you want more information take a look at the ryzomcore wikipages and the design pages
-- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
- - - |
- Ryzom Account Management System
- 1.0
-
-
- |
-
-
-
-
-Functions | |
__autoload ($className) | |
Base include file for library functions for AMS. |
__autoload | -( | -$ | -className | ) | -- |
Base include file for library functions for AMS.
-Autoload function that loads the classes in case they aren't loaded yet.
- -