[net.nehmer.account] element index

Package indexes

All elements
a c e g i l m n p r v _
_
top
Variable $_account
The account which has been activated, not valid otherwise.
Variable $_account
The user account we are managing. This is taken from the currently active user if no account is specified in the URL, or from the GUID passed to the system.
Variable $_account
The user account we are managing. This is taken from the currently active user if no account is specified in the URL, or from the GUID passed to the system.
Variable $_account
The user account we are managing. This is taken from the currently active user if no account is specified in the URL, or from the GUID passed to the system.
Variable $_account
The user account we are managing. This is taken from the currently active user if no account is specified in the URL, or from the GUID passed to the system.
Variable $_account_type
The type of account which is being registered. This is a schema name.
Variable $_avatar
The Avatar image, if set.
Variable $_avatar
The Avatar image, if set.
Variable $_avatar_thumbnail
The Avatar thumbnail image, if set.
Variable $_avatar_thumbnail
The Avatar thumbnail image, if set.
Variable $_controller
The controller used to display the password changer dialog.
Variable $_controller
The DM2 controller used to edit the datamanager form.
Variable $_controller
The datamanager controller instance used to create the new record.
Variable $_datamanager
The datamanager used to load the account-related information.
Variable $_datamanager
The datamanager used to load the account-related information.
Variable $_datamanager
The datamanager used to load the account-related information.
Variable $_fields
This is a list of visible field names of the current account. It is computed after account loading. They are listed in the order they appear in the schema.
Variable $_person
The person record of the account which has been activated. Not valid otherwise.
Variable $_processing_msg
Helper variable, containg a localized message to be shown to the user indicating the form's processing state.
Variable $_processing_msg
The account activation processing message. Used for already-activated style messages.
Variable $_processing_msg
Helper variable, containg a localized message to be shown to the user indicating the form's processing state.
Variable $_processing_msg_raw
The raw, untranslated processing message. Use this if you want to have your own translation beside the defaults given by the component. The variable contains the l10n string IDs.
Variable $_processing_msg_raw
The raw, untranslated processing message. Use this if you want to have your own translation beside the defaults given by the component. The variable contains the l10n string IDs.
Variable $_processing_msg_raw
The raw, untranslated processing message. Use this if you want to have your own translation beside the defaults given by the component. The variable contains the l10n string IDs.
Variable $_schemadb
The schema database in use at this topic. This is loaded on-demand only.
Variable $_schemadb
The schema database to use when creating new accounts.
Variable $_stage
This member indicates the processing stage we are in, this is used in the sessioning code to connect the various requests. The value is transited by a hidden form element.
Variable $_success
This is true if we did successfully change the password. It will then display a simple password-changed-successfully response.
Variable $_topic
The topic we are managing.
Variable $_type_groups
Internal helper, which contains a list of all midcom_core_group records for the defined account types.
Variable $_user
The midcom_core_user object matching the loaded account. This is useful for isonline checkes and the like.
Variable $_view_quick
This is true if we are in the quick-view mode, which displays only the administrativly assigned fields, along with a link to the full profile view. This makes live a bit easier when including profiles in other components.
Variable $_view_self
This flag is set to true if we are viewing the account of the currently registered user. This influences the access control of the account display.
Variable $_visible_fields
This is a list of visible field names of the current account. It is computed after account loading. They are listed in the order they appear in the schema.
Variable $_visible_fields_user_selection
This is an array extracted out of the parameter net.nehmer.account/visible_field_list, which holds the names of all fields the user has marked visible. This is loaded once when determining visibilities.
Variable $_visible_fields_user_selection
This is an array extracted out of the parameter net.nehmer.account/visible_field_list, which holds the names of all fields the user has marked visible. This is loaded once when determining visibilities.
Method _activate_account
This call will actually activate the account, gaining privileges using the sudo service.
Method _auto_publish_account_details
This call automatically publishes the account details if the component is configured to do so. This encompasses all user-publishable schema fields regardless of their content.
Method _check_old_password
This function checks the old password entered into the pwchange_controller against the account password.
Method _compute_cancel_membership_confirm_hash
Helper function which takes a number of login session specific items into account, that should protect against social-hacking attacks on a user not actually wanting to cancel his membership.
Method _compute_fields
This function iterates over the field list and produces the information needed to render the form. All linked fields are consolidated together in the order they appear, with the master field being the only one in the main array, and the rest available as "linkers".
Method _compute_visible_fields
This function iterates over the field list in the schema and puts a list of fields the user may see together.
Method _create_account
This function will create a new controller based on the simple storage backend to store the entered information into a newly created storage object.
Method _create_null_controller
This starts up a datamanager suitable for the first stage of processing. It will render the form without any storage object.
Method _drop_account
Actually deletes the current account. On any error, generate_error is triggered.
Method _handler_activate
This is a simple handler which verifies if the argument pair given in the URL is a correct Person GUID / Account Activation Hash pair. If yes, the account will be activated, and the user will be relocated to a success page.
Method _handler_cancel_membership
This function prepares everything to cancel the membership, it basically follows the same procedure as handle_password.
Method _handler_edit
This handler loads the account, validates permissions and starts up the datamanager.
Method _handler_lostpassword
This function prepares everything to update the username, it basically follows the same procedure as handle_password.
Method _handler_password
The handler provides publishing support. After creating and preparing all members, it will first process the form. Afterwards, it provides the means to display the publishing form.
Method _handler_publish
The handler provides publishing support. After creating and preparing all members, it will first process the form. Afterwards, it provides the means to display the publishing form.
Method _handler_publish_ok
This handler is shown upon successful processing. While it is always valid, no actual operation is done at this point, the publish handler does this and relocates here on success.
Method _handler_register
This handler manages the actual input of the required information, using the DM2.
Method _handler_select_type
This is the main request handler, which shows a list of account types based on the schema database. If only one schema is available, it automatically relocates to the corresponding form.
Method _handler_username
This function prepares everything to update the username, it basically follows the same procedure as handle_password.
Method _handler_view
The view handler will load the account and set the appropriate flags for startup preparation according to the handler name.
Method _handler_welcome
Simple welcome page, lists available plugins. All work done in the show call.
Method _handle_confirm_stage
This function handles the confirm stage. Cancel relocates back to the account type selection screen, next will save previous will go back to allow the user to edit the data.
Method _handle_input_stage
This is an internal helper function which handles the input stage, e.g. the form which is open for input.
Method _invoke_account_activation_callback
This function invokes the callback set in the component configuration upon activation of an account. It will be executed at the end of the activation with sudo privilgeges.
Method _invoke_cancel_membership_callback
This function invokes the callback set in the component configuration upon deleting an account. It will be executed immediately before the actual delete operation.
Method _is_field_visible
This helper uses the 'visible_mode' customdata member to compute actual visibility of a field. Possible settings:
Method _is_field_visible
This helper uses the 'visible_mode' customdata member to compute actual visibility of a field.
Method _load_plugin
Loads the plugin identified by $name. Only the on-site listing is loaded.
Method _load_plugin
Loads the plugin identified by $name. Only the on-site listing is loaded.
Method _load_plugin_class
Loads the file/snippet neccessary for a given plugin, according to its configuration.
Method _load_plugin_class
Loads the file/snippet neccessary for a given plugin, according to its configuration.
Method _load_schema_db
Internal helper, which loads the schema database into the member _schemadb if it has not yet been loaded.
Method _load_type_groups
Internal helper, which loads the account group listing into the member _type_groups if it has not yet been loaded.
Method _on_can_handle
This event hook will load any on-site plugin that has been recognized in the configuration.
Method _on_can_handle
This event hook will load any on-site plugin that has been recognized in the configuration.
Method _on_execute
Method _on_initialize
Method _on_initialize
Method _on_initialize
Method _patch_schema
This function patches the active schema to have the correct navigation buttons present.
Method _prepare_datamanager
Internal helper funciton, prepares a datamanager based on the current account.
Method _prepare_datamanager
Internal helper funciton, prepares a datamanager based on the current account.
Method _prepare_datamanager
Internal helper funciton, prepares a datamanager based on the current account.
Method _prepare_datamanager
Internal helper funciton, prepares a datamanager based on the current account.
Method _prepare_lostpassword_formmanager
This function prepares the form manager used to change the password.
Method _prepare_plugin
Prepares the actual plugin by adding all neccessary information to the request switch.
Method _prepare_plugin
Prepares the actual plugin by adding all neccessary information to the request switch.
Method _prepare_pwchange_formmanager
This function prepares the form manager used to change the password.
Method _prepare_request_data
This function prepares the requestdata with all computed values.
Method _prepare_request_data
This function prepares the requestdata with all computed values.
Method _prepare_request_data
This function prepares the requestdata with all computed values.
Method _prepare_request_data
This is the request data preparation code used during the actual registration sequence.
Method _prepare_request_data
This function prepares the requestdata with all computed values.
Method _prepare_usernamechange_formmanager
This function prepares the form manager used to change the password.
Method _process_cancel_membership
Actual membership cancellation, looks for the REQUEST key cancel_ok and then invalidates the password and sets a property about when the account was disabled.
Method _process_form
This function processes the form, computing the visible field list for the current selection. If no form submission can be found, the method exits unconditionally.
Method _process_image_upload
Helper function, called during form processing. Takes any image upload from the avatar field and processes it accordingly.
Method _process_lostpassword_form
This function processes the form, creating a new password and mailing it to the user in question.
Method _process_pwchange_form
This function processes the form, computing the visible field list for the current selection. If no form submission can be found, the method exits unconditionally.
Method _process_usernamechange_form
This function processes the form, computing the visible field list for the current selection. If no form submission can be found, the method exits unconditionally.
Method _register_username_validation_rule
Add further validation rules, this is done with the form directly, as we have to register the callback first. We have to load the callback file manually, as we don't add it to the standard loader code.
Method _render_field
A little helper which extracts the view of the given type
Method _render_field
A little helper which extracts the view of the given type
Method _reset_password
This is an internal helper function, resetting the password for the given username to a randomly generated one.
Method _send_registration_mail
This is a simple function which generates and sends an account registration confirmation including the randomly-generated password and the corresponding activation link.
Method _send_reset_mail
This is a simple function which generates and sends a password reset mail.
Method _send_welcome_mail
Sends a welcome mail to the user given in the _account member. It will exit directly if the net.nehmer.mail integration is disabled.
Method _show_activate
Lists the available account types.
Method _show_cancel_membership
Shows either the mebership cancel confirmation dialog or a succcess message.
Method _show_edit
The rendering code consists of a standard init/loop/end construct.
Method _show_lostpassword
Shows either the username change dialog or a succcess message.
Method _show_password
Shows the the password changing dialog.
Method _show_publish
This handler loops over all fields, displaying them in turn. The sequence is
Method _show_publish_ok
This handler shows the successful-publishing message, it has the same information available, as the actual publishing hanlder, but it consists of only one style element, containing a simple "your details have been submitted message".
Method _show_register
Lists the available account types.
Method _show_select_type
Lists the available account types.
Method _show_username
Shows either the username change dialog or a succcess message.
Method _show_view
The rendering code consists of a standard init/loop/end construct.
Method _show_welcome
Method _update_image_attachment
Internal helper, which takes a file and creates or updates the corresponding attachment identified by its name.
Method _update_password
This helper will update the password to the new value and synchronize the last changed timestamp accordingly.
a
top
Page admin.php
admin.php in admin.php
c
top
Method check_user_name
This function checks a username against the database. If the username already exists,
Method create_remote_controller
This is a factory method which creates a remote controller instance bound to a specific topic.
Page cleanup.php
cleanup.php in cleanup.php
e
top
Page edit.php
edit.php in edit.php
g
top
Method get_account_schema
This function returns a schema class instance matching the user passed to the method. It defaults to the currently active user.
Method get_account_type
Returns the account type of the specified user, defaulting to the currently authenticated user. It uses group membership tests to validate the assignment. In case of multiple matches, the first schema match is returned, in case of no matches false is returned. Critical errors trigger generate_error.
Method get_content_from_account
This function will create a flat array suitable for rendering. You can use this to display specific account data anywhere you need it..
Method get_defaults_from_account
This function will create a flat array suitable for usage as defaults with a DM2 Form manager. You can use this to build new objects based on the current account.
Method get_leaves
i
top
Page interfaces.php
interfaces.php in interfaces.php
l
top
Method list_account_types
This helper lists an accociative array with account types and their titles.
m
top
Page maintain.php
maintain.php in maintain.php
n
top
Page navigation.php
navigation.php in navigation.php
Class net_nehmer_account_admin
Account Manager AIS interface class
Method net_nehmer_account_admin
Class net_nehmer_account_callbacks_validation
Form Validation helper methods.
Method net_nehmer_account_callbacks_validation
Class net_nehmer_account_cron_cleanup
Cleanup Cronjob Handler
Class net_nehmer_account_handler_edit
Account Management handler class: Edit Account
Method net_nehmer_account_handler_edit
Method net_nehmer_account_handler_maintain
Class net_nehmer_account_handler_maintain
Account Management handler class: Account Publishing class
Class net_nehmer_account_handler_publish
Account Management handler class: Account Publishing class
Method net_nehmer_account_handler_publish
Method net_nehmer_account_handler_register
Class net_nehmer_account_handler_register
Account Management handler class: Register new Account
Class net_nehmer_account_handler_view
Account Management handler class: View Account
Method net_nehmer_account_handler_view
Class net_nehmer_account_interface
Account Manager MidCOM interface class.
Method net_nehmer_account_interface
Constructor.
Method net_nehmer_account_navigation
Simple constructor, calls base class.
Class net_nehmer_account_navigation
Account Management NAP interface class
Class net_nehmer_account_remote
Account Management remote interface class
Method net_nehmer_account_remote
Creates an instance of this class bound to the topic referenced by the argument.
Method net_nehmer_account_viewer
Class net_nehmer_account_viewer
Account Management site interface class
p
top
Page publish.php
publish.php in publish.php
r
top
Page register.php
register.php in register.php
Page remote.php
remote.php in remote.php
v
top
Page validation.php
validation.php in validation.php
Page view.php
view.php in view.php
Page viewer.php
viewer.php in viewer.php
Method verify_existing_user_name
This function checks a username against the database for existence.
a c e g i l m n p r v _