-
$_all_elements
-
All elements in the select list. saved for performance reasons.
-
$_attachment_map
-
This array maps attachment identifiers to image identifier/derived image name pairs.
-
$_callback
-
In case the options are returned by a callback, this member holds the callback instance.
-
$_callback
-
Optional callback that will be used if the storage variant "callback" has been called.
-
$_callback
-
In case the options are returned by a callback, this member holds the callback instance.
-
$_config
-
Configuration as passed from the callback.
-
$_controllers
-
Array of Datamanager 2 controllers for child object display and management
-
$_creation_controllers
-
Array of Datamanager 2 controllers for child object creation
-
$_currentGroupName
-
The current group running
-
$_currentGroups
-
The stack of groups
-
$_currentGroupTemplates
-
All group templates for running groups (i.e. prepared and ready).
-
$_current_tmpname
-
The current working file.
-
$_current_tmpname
-
The current working file.
-
$_defaults
-
The defaults to use when loading the data from the "artificial" storage.
-
$_editable
-
-
$_element
-
The input textbox used which needs to be frozen when operating on the captcha.
-
$_elements
-
The QF Element list added to the form. Saved for freezing/unfreezing.
-
$_elements
-
The list of elements added to the widget, indexed by their element name.
-
$_elements
-
The list of elements added to the widget, indexed by their element name.
-
$_elementTemplate
-
Element template string
-
$_exitcode
-
Latest exit code
-
$_external_config
-
This variable contains configuration data which is not directly related to the operation of the type, but required for the operation of external tools like the storage manager. The type should never touch this variable, which is controlled by a corresponding getter/setter pair.
-
$_external_config
-
This variable contains configuration data which is not directly related to the operation of the type, but required for the operation of external tools like the storage manager. The type should never touch this variable, which is controlled by a corresponding getter/setter pair.
-
$_field
-
A reference to the schema field we should draw. Description texts etc. are taken from here.
-
$_fieldname
-
The name of the schema field we are currently processing.
-
$_filename
-
The original filename of the uploaded file.
-
$_filename
-
The original filename of the uploaded file.
-
$_filter
-
The image-filter instance to use.
-
$_filter
-
The image-filter instance to use.
-
$_form
-
The QuickForm we are using.
-
$_formmanager
-
A reference to the Formmanager instance.
-
$_formTemplate
-
Form template string
-
$_group
-
The group of elements forming our widget.
-
$_group
-
The group of elements forming our widget.
-
$_groupElements
-
Array with HTML generated for group elements
-
$_groupElementTemplate
-
Template for an element inside a group
-
$_groupTemplate
-
Element template string
-
$_groupTemplates
-
Array containing the templates for elements within groups
-
$_groupWrap
-
HTML that wraps around the group elements
-
$_groupWraps
-
Array containing the templates for group wraps.
-
$_headerTemplate
-
Header Template string
-
$_hiddenHtml
-
Collected HTML of the hidden fields
-
$_html
-
The HTML of the form
-
$_identifier
-
The current image identifier to use when operating on images.
-
$_inGroup
-
True if we are inside a group
-
$_initialize_dependencies
-
Whether widget should always load its dependencies on initialization, or only during add_elements_to_form call.
-
$_key_field
-
The key field used for referencing.
-
$_lastfield
-
-
$_list_all_done
-
This flag will be set after list_all has been executed to short-cut various lookups where possible.
-
$_loaded_groups
-
The cache of loaded group names, indexed by the selected key field.
-
$_membership_objects
-
This is a QB resultset of all membership objects currently constructed. It is indexed by membership record guid. It will be populated during startup, when the stored data is loaded. During save, this list will be used to determine the objects that have to be deleted.
-
$_member_limit_regex
-
This is a regular expression pattern constructed from $member_limit_like to verify active records against the regex. Tied to $member_limit_like and only valid during convert_to_storage.
-
$_namespace
-
This is the Namespace to use for all HTML/CSS/JS elements. It is deduced by the formmanager and tries to be as smart as possible to work safely with more then one form on a page.
-
$_original_mimetype
-
The original mimetype of the uploaded file.
-
$_original_mimetype
-
The original mimetype of the uploaded file.
-
$_original_tmpname
-
The name of the original temporary uploaded file (which will already be converted to a Web-Aware format).
-
$_original_tmpname
-
The name of the original temporary uploaded file (which will already be converted to a Web-Aware format).
-
$_passphrase
-
The passphrase currently in use.
-
$_pending_attachments
-
This list is used when updating an existing image. It keeps track
-
$_pending_attachments
-
This list is used when updating an existing attachment. It keeps track
-
$_plusrow_group
-
The dummyrow used to create a plusrow.
-
$_raw_schema
-
The raw schema array as read by the system. This is a reference into the schema database.
-
$_raw_schemadb
-
The raw schema database as read by the system.
-
$_real_value
-
The real value as stored in the object. This takes crypting etc. into account.
-
$_requiredNoteTemplate
-
Required Note template string
-
$_schema
-
A reference to the data schema used for processing.
-
$_schema
-
The schema (not the schema database!) to use for operation. This variable will always contain a parsed representation of the schema, so that one can swiftly switch between individual schemas of the Database.
-
$_schema
-
The schema (not the schema database!) to use for operation. This variable will always contain a parsed representation of the schema, so that one can swiftly switch between individual schemas of the Database.
-
$_schemadb
-
The schema database in use for the child elements
-
$_schemadb
-
The schema database to use for operation. This variable will always contain a parsed representation of the schema, so that one can swiftly switch between individual schemas of the Database. This is a list of midcom_helper_datamanager2_schema instances, indexed by their name.
-
$_select_element
-
The select element in use. This need spearate tracking due to the potential group code. This makes tracking of empty return values much easier. It is populated during add_elements_to_form().
-
$_session_domain
-
The session namespace to use.
-
$_session_key
-
The session key in use for this Formmanager instance.
-
$_target_mimetype
-
The target mimetype used after automatic conversion for all generated images.
-
$_target_mimetype
-
The target mimetype used after automatic conversion for all generated images.
-
$_templates
-
Array containing the templates for customised elements
-
$_title
-
The image title entered by the user. Stored in each attachments title field.
-
$_tmpid_fieldname
-
The name of the hidden field used to remember the temporary object id.
-
$_type
-
This is a reference to the type we're based on.
-
$_types
-
The list of types which should be used for rendering. They must match the schemadb passed to the class.
-
$_upload_element
-
The QF upload form element, used for processing.
-
$_value_field
-
The field use for display purposes.
-
_add_attachment_row
-
Adds a row for an existing attachment
-
_add_element
-
Creates an element that is returened and added to a row
-
_add_expand_js
-
-
_add_external_html_elements
-
Adds the external HTML dependencies, both JS and CSS. A static flag prevents multiple insertions of these dependencies.
-
_add_external_html_elements
-
Adds the external HTML dependencies, both JS and CSS. A static flag prevents multiple insertions of these dependencies.
-
_add_image_row
-
Adds a row for an existing image
-
_add_initscript
-
This helper will construct the TinyMCE initscript based on the specified configuration.
-
_add_new_upload_row
-
Adds the new upload row to the bottom of the table.
-
_add_new_upload_row
-
Adds the new upload row to the bottom of the table.
-
_add_rules_and_filters
-
This helper function adds all rules and filters which are deducable from the schema to the form. It recognizes the follwing schema options:
-
_add_table_footer
-
Adds the table footer.
-
_add_table_footer
-
Adds the table footer.
-
_add_table_header
-
Adds the table header to the widget.
-
_add_table_header
-
Adds the table header to the widget.
-
_add_thumbnail_to_derived_images
-
Small internal helper function. It adds a derived 'thumbnail' image to the list used if and only if the auto_thumbnail option is set. Any existing thumbnail declaration will be silently overwritten!
-
_add_thumbnail_to_derived_images
-
Small internal helper function. It adds a derived 'thumbnail' image to the list used if and only if the auto_thumbnail option is set. Any existing thumbnail declaration will be silently overwritten!
-
_auto_convert_to_web_type
-
Automatically convert the uploaded file to a web-compatible type. Uses only the first image of multi-page uploads (like PDFs) and populates the _target_mimetype member accordingly. The orignal_tmpname file is manipulated directly.
-
_auto_convert_to_web_type
-
Automatically convert the uploaded file to a web-compatible type. Uses only the first image of multi-page uploads (like PDFs) and populates the _target_mimetype member accordingly. The orignal_tmpname file is manipulated directly.
-
_cast_formgroup_to_replacedelete
-
Switches the Element Group from a simple upload form to a replace/delete constellation.
-
_cast_formgroup_to_upload
-
Switches the Element Group from a replace/delete constellation to a simple upload form.
-
_cast_to_storage_object
-
cast $storage to a simple midgard storage implementation. the reference should propagate this.
-
_check_class
-
-
_check_for_update
-
The following checks are made, in order:
-
_check_for_update
-
The following checks are made, in order:
-
_check_new_upload
-
Checks whether a new file has been uploaded. If yes, it is processed.
-
_check_new_upload
-
Checks whether a new file has been uploaded. If yes, it is processed.
-
_complete_field_defaults
-
Internal helper function which completes all missing field declaration members so that all fields can be treated uniformly.
-
_compute_elements
-
Computes the element list to form the widget. It populates the _elements memeber, which is initialized with a new, empty array during startup.
-
_compute_elements
-
Computes the element list to form the widget. It populates the _elements memeber, which is initialized with a new, empty array during startup.
-
_convert_multiple_from_storage
-
Converts the selected options according to the multiple_storagemode setting.
-
_convert_multiple_to_storage
-
Converts the selected options according to the multiple_storagemode setting.
-
_create_default_renderer
-
Creates an instance of the renderer set in the system configuration. This is called during the initialize code and will make the renderer available immediately after startup.
-
_create_frozen_elements
-
Create the frozen element listing.
-
_create_frozen_elements
-
Constructs the widget for frozen operation: Only a single static element is added indicating the current type state.
-
_create_initscript
-
Generates the initscript for the current field.
-
_create_plusrow
-
create an empty row at the bottom of
-
_create_random_suffix
-
Creates random string of 8 characters
-
_create_replace_elements
-
Creates the elements to manage an existing upload, offering "delete" and "upload new file" operations.
-
_create_unfrozen_elements
-
Create the unfrozen element listing.
-
_create_upload_elements
-
Creates the upload elements for empty types.
-
_create_working_copy
-
This function creates a new working copy and stores the filename in _current_tmpname.
-
_create_working_copy
-
This function creates a new working copy and stores the filename in _current_tmpname.
-
_csv_encode
-
Encodes the given string into CSV according to these rules: Any appearance of the separator or one of the two newline characters \n and \r will trigger quoting. In quoting mode, the entire string will be enclosed in double-quotes.
-
_get_advanced_configuration
-
Returns the "advanced" configuration
-
_get_configuration
-
Returns the configuration theme based on the local_config_theme.
-
_get_imploded_options
-
Prepares the imploded storage string. All entries containing the pipe char (used as glue) will be logged and skipped silently.
-
_get_key
-
Returns the key as configured for the given group.
-
_get_master_foreign_key
-
Returns the foreign key of the master object. This is either the ID or the GUID of the master object, depending on the $master_is_id member.
-
_get_mimetype
-
Internal helper function, determines the mime-type of the specified file.
-
_get_mimetype
-
Internal helper function, determines the mime-type of the specified file.
-
_get_simple_configuration
-
Returns the default/simple configuraiton:
-
_get_single_key
-
-
_get_tiny_configuration
-
Returns the "tiny" configuration
-
_is_ajax_editable
-
-
_is_widget_visible
-
This helper function checks wether a given widget is visible.
-
_load_attachment
-
This function will load a given attachment from the disk, and then calls a function which updates the $attachments_info listing.
-
_load_creation_controllers
-
-
_load_group
-
Loads the group referenced by the key passed. The loaded group is written into the _loaded_groups field. If the list_all_done flag is set, the function will exit silently without doing anything.
-
_load_membership_objects
-
Loads all membership records from the database. May only be called if an storage object is defined.
-
_load_schema
-
This function parses the schema and populates all members with the corresponding information, completing defaults where neccessary.
-
_load_schemadb
-
This functnio loads the schema database into the class, either from a copy already in memory, or from an URL resolvable by midcom_get_snippet_content.
-
_load_types
-
This function will create all type objects for the current schema. It will load class files where neccessary (using require_once), and then create a set of instances based on the schema.
-
_load_widget
-
This function will create all widget objects for the current schema. It will load class files where neccessary (using require_once), and then create a set of instances based on the schema.
-
_load_widget
-
This function will create all widget objects for the current schema. It will load class files where neccessary (using require_once), and then create a set of instances based on the schema.
-
_load_widgets
-
...
-
_on_configuring
-
Initialize the value with an empty Date class.
-
_on_configuring
-
This function, is called before the configuration keys are merged into the types configuration.
-
_on_configuring
-
Set the base URL accordingly (this requires midcom_config access and is thus not possible using class member initializers.
-
_on_configuring
-
This changes the defaults for the textarea size to something more usable for a WYSIWYG editor.
-
_on_configuring
-
This function, is called before the configuration keys are merged into the types configuration.
-
_on_configuring
-
Compatibility handler for the deprecated is_html configuration option.
-
_on_configuring
-
Adapts the min/maxyear defaults if the base date is set to UNIXDATE storage.
-
_on_initialize
-
The initialization event handler verifies the correct type.
-
_on_initialize
-
The initialization event handler, check type.
-
_on_initialize
-
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_initialize
-
This startup handler validates that the class is populated correctly.
-
_on_initialize
-
The initialization event handler validates the base type.
-
_on_initialize
-
Validates the base type
-
_on_initialize
-
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
-
_on_initialize
-
The initialization event handler verifies the used type.
-
_on_initialize
-
The initialization event handler validates the base type.
-
_on_initialize
-
The initialization event handler verifies the correct type.
-
_on_initialize
-
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
-
_on_initialize
-
This event handler is called during construction, so passing references to $this to the outside is unsafe at this point.
-
_on_initialize
-
This event handler is called after construction, so passing references to $this to the outside is safe at this point.
-
_on_initialize
-
This is called during intialization the function is used to
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_initialize
-
The initialization event handler creates the captcha passphrase (if neccessary).
-
_on_initialize
-
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
-
_on_initialize
-
The initialization event handler validates the base type
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_initialize
-
Validates the base type.
-
_on_initialize
-
This startup handler validates that the privileges array is populated.
-
_on_initialize
-
The initialization event handler verifies the correct type.
-
_on_initialize
-
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
-
_on_initialize
-
The initialization event handler post-processes the maxlength setting.
-
_on_load_data
-
-
_on_load_data
-
Override this function to implement the storage method for your backend.
-
_on_load_data
-
This returns the defaults set. An empty string is used for unset defaults.
-
_on_store_data
-
We don't store anything, this can be safely ignored therefore.
-
_on_store_data
-
-
_on_store_data
-
Override this function to implement the storage method for your backend.
-
_on_update_object
-
This callback is invoked once the storage object has been completly updated with the information from all types. You need to store it to the database at this point.
-
_on_update_object
-
We do as if we can store successfully at all times.
-
_on_update_object
-
-
_on_validate
-
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
-
_on_validate
-
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
-
_on_validate
-
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
-
_on_validate
-
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
-
_on_validate
-
Type-specific validation callback, this is executed before any custom validation rules which apply through the customization interface.
-
_on_validate
-
The validation callback ensures that we are in the bounds defined by the type configuration. The value is rounded prior to processing.
-
_prepareTemplate
-
Helper method for renderElement
-
_process_options
-
Reads and validates the configuration options. Invalid options are logged and ignored.
-
_round_value
-
Rounds the value according to the precision rules. If arbitary precision is set, no rounding is done, and the function exits without changing the value.
-
_save_attachment_listing
-
This function synchronizes the attachment listing parameter of this field with the current attachment state.
-
_save_derived_image
-
This is the actual code which filters and saves a derived image.
-
_save_derived_image
-
This is the actual code which filters and saves a derived image.
-
_save_derived_images
-
This loops over the defined derived images (if any) and constructs each of them in turn.
-
_save_derived_images
-
This loops over the defined derived images (if any) and constructs each of them in turn.
-
_save_image_listing
-
This saves a map of attachment identifiers to image identifier/name pairs.
-
_save_main_image
-
Saves the main image to the type, doing transformation work if configured to do so.
-
_save_main_image
-
Saves the main image to the type, doing transformation work if configured to do so.
-
_save_original
-
If we are configured to do so, we save the original image.
-
_save_original
-
If we are configured to do so, we save the original image.
-
_setGroupTemplates
-
Called by start/finishGroup() to set the current template elements
-
_set_image
-
Adds or updates an image to the type. Loads and processes the $tmpname file on disk. The identifier is used to select the image in question.
-
_set_image_size
-
This is a simple helper which evaluates the imagesize information of a given file and adds that information as parameters to the attachmend identified by its identifier.
-
_sort_attachments
-
This override adds a sorting call for the images member, which is sorted by main image filename.
-
_sort_attachments
-
This function sorts the attachment lists by filename. It has to be called after each attachment operation. It uses a user-defined ordering function for each of the two arrays to be sorted: _sort_attachments_callback() and _sort_attachments_info_callback().
-
_sort_attachments_callback
-
User-defined array sorting callback, used for sorting $attachments. See the usort() documentation for further details.
-
_sort_attachments_info_callback
-
User-defined array sorting callback, used for sorting $attachments_info. See the usort() documentation for further details.
-
_sort_images_callback
-
User-defined array sorting callback, used for sorting $images. See the usort() documentation for further details.
-
_translate
-
This is a shortcut to the translate_schema_string function.
-
_translate
-
This is a shortcut to the translate_schema_string function.
-
_update_attachment_info
-
Synchronizes the attachments info array with the attachment referenced by the identifier.
-
_update_attachment_info
-
Adds information specific to this type to the attachment info block (based on the information in the $_attachment_map):
-
_update_member_limit_regex
-
Synchronizes the member list regex with the given LIKE query.
-
_update_real_value
-
Internal helper function, which converts the currently set value (the clear-text password) to the desired storage format, either crypting or prepending a double asterisk.
-
$callback
-
The name of or reference to the callback object to be used.
-
$callback_method
-
The name of the callback method to execute. This defaults to _dm2_create_callback.
-
$callback_object
-
A reference to the object containing the creation callback. This reference must be set prior initialization.
-
$child_class
-
-
$child_constraints
-
-
$child_foreign_key_fieldname
-
-
$child_schemadb
-
-
$class
-
Class to search for
-
$component
-
Which component the searched class belongs to
-
$confirm_text
-
The confirmation note appended to the label of the second, password confirmation field.
-
$constraints
-
Associative array of constraints (besides the search term), always AND
-
$crypted
-
Indicating crypted operation
-
$csv_export_key
-
Set this to true if you want the keys to be exported to the csv dump instead of the values. Note, that this does not affect import, which is only available with keys, not values.
-
$csv_export_key
-
Set this to true if you want the keys to be exported to the csv dump instead of the values. Note, that this does not affect import, which is only available with keys, not values.
-
$csv_export_key
-
Set this to true if you want the keys to be exported to the csv dump instead of the values. Note, that this does not affect import, which is only available with keys, not values.
-
$customdata
-
This array holds custom information attached to this schema. Its exact usage is component dependant.
-
can_do
-
Checks wether the current user has the given privilege on the storage backend.
-
can_do
-
Checks wether the current user has the given privilege on the storage backend.
-
clearAllTemplates
-
Clears all the HTML out of the templates that surround notes, elements, etc.
-
compute_form_result
-
This function computes the form result based on the button clicked and on the current validation result.
-
convert_from_csv
-
CVS conversion is mapped to regular type conversion.
-
convert_from_csv
-
-
convert_from_csv
-
-
convert_from_csv
-
-
convert_from_csv
-
CVS conversion is mapped to regular type conversion.
-
convert_from_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_from_csv
-
-
convert_from_csv
-
-
convert_from_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_from_csv
-
-
convert_from_csv
-
-
convert_from_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_from_csv
-
Constructs the object based on its CSV representation (which is already decoded in terms of escaping.)
-
convert_from_storage
-
Converts storage format to live format, all invalid keys are dropped, and basic validation is done to ensure constraints like allow_multiple are met.
-
convert_from_storage
-
Loads the privileges value from the database if we have sufficient privileges, otherwise the value stays false. This is ok as storage operations will be ignored as well.
-
convert_from_storage
-
First, we load the attachment_map information so that we can collect all images together. Then we call the base class.
-
convert_from_storage
-
-
convert_from_storage
-
Reads all entries from the mapping table. This overrides the base types I/O code completly.
-
convert_from_storage
-
-
convert_from_storage
-
Converts storage format to live format, all invalid keys are dropped, and basic validation is done to ensure constraints like allow_multiple are met.
-
convert_from_storage
-
Calls the base type to read all attachments, then extracts the title of the main attachment, if applicable.
-
convert_from_storage
-
Loades the privilege from the DB if and only if a storage object is already present and we have sufficient privileges.
-
convert_from_storage
-
Converts storage format to live format, all invalid keys are dropped, and basic validation is done to ensure constraints like allow_multiple are met.
-
convert_from_storage
-
Converts from storage format to "operational" format, which might include more information then the pure storage format. Depending on the $serialized_storage member, the framework will automatically deal with deserializaiton of the information.
-
convert_from_storage
-
Explicitly converts the passed value into a float, there is a str_replace() added to account for possibly broken localized strings (although they shouldn't happen during saving, you never know).
-
convert_from_storage
-
-
convert_from_storage
-
-
convert_from_storage
-
This function loads all known attachments from the storage object. It will leave the field empty in case the storage object is null.
-
convert_from_storage
-
This function uses the PEAR Date constructor to handle the conversion.
-
convert_from_storage
-
This function loads child objects of the storage object. It will leave the field empty in case the storage object is null.
-
convert_list_to_stdout
-
Converts the given list of objects (usually a QB resultset) to CSV using the configuration currently set up in the component.
-
convert_to_csv
-
-
convert_to_csv
-
-
convert_to_csv
-
-
convert_to_csv
-
-
convert_to_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_to_csv
-
-
convert_to_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_to_csv
-
-
convert_to_csv
-
CSV conversion works from the storage representation, converting the arrays into simple text lists.
-
convert_to_csv
-
-
convert_to_csv
-
CVS conversion is mapped to regular type conversion.
-
convert_to_csv
-
CVS conversion is mapped to regular type conversion.
-
convert_to_csv
-
Transforms the current objects' state into a CSV string representation. Escaping and other encoding is done by the caller, you just return the string.
-
convert_to_html
-
The HTML-Version of the image type can take two forms, depending on type configuration:
-
convert_to_html
-
-
convert_to_html
-
-
convert_to_html
-
The HTML-Version of the image type can take two forms, depending on type configuration:
-
convert_to_html
-
-
convert_to_html
-
-
convert_to_html
-
-
convert_to_html
-
Transforms the current objects' state into HTML representation. This is used for displaying type contents in an automatic fashion.
-
convert_to_html
-
Renders localized and rounded to specified precision.
-
convert_to_html
-
-
convert_to_html
-
-
convert_to_html
-
-
convert_to_html
-
The HTML representation returns either the configured texts or a checked / unchecked icon if left on defaults.
-
convert_to_html
-
-
convert_to_html
-
Displays the child objects
-
convert_to_storage
-
-
convert_to_storage
-
-
convert_to_storage
-
-
convert_to_storage
-
Converts Date object to storage representation.
-
convert_to_storage
-
-
convert_to_storage
-
Updates the attachment titles.
-
convert_to_storage
-
Stores the privileges to the database. This call retrieves a temporary object if neccessary.
-
convert_to_storage
-
-
convert_to_storage
-
-
convert_to_storage
-
-
convert_to_storage
-
The current value is converted into a string before being passed to the caller. Any decimal characters that are not in a form PHP can recognize on parsing will be unified before returning them.
-
convert_to_storage
-
Updates the mapping table to match the current selection.
-
convert_to_storage
-
Writes the privilege to the DB unless the privilege member is still null (in which case the inherited default will kick in). In all other cases the type will have already populated storage->object with a temporary object in set_value().
-
convert_to_storage
-
-
convert_to_storage
-
Calls base class
-
convert_to_storage
-
Merges selection and others arrays, the validation cycle ensures that they are right.
-
convert_to_storage
-
Converts from "operational" format to from storage format. Depending on the $serialized_storage member, the framework will automatically deal with deserializaiton of the information.
-
create
-
This is a static factory method which lets you dynamically create controller instances.
-
create_object
-
DM2 creation callback for creating children.
-
create_renderer
-
Creates a new instance of the renderer specified by $name. It must be a valid renderer
-
create_temporary_object
-
This function will populate the $object member with a temporary object obtained by the MidCOM temporary object service.
-
create.php
-
-
controller.php
-
-
csv.php
-
-
captcha.php
-
-
captcha.php
-
-
composite.php
-
-
captcha.php
-
-
checkbox.php
-
-
composite.php
-
-
$mapping_class_name
-
Mandatory option. Holds the name of the DBA class used for the mapping code. The class must satisfy the above rules.
-
$master_fieldname
-
Mandatory option. Holds the fieldname containing the (GU)ID of the master object in the mapping table.
-
$master_is_id
-
Set this to true if you want the ID instead of the GUID to be used for mapping purposes.
-
$maximum
-
The upper bound of valid values, set to null to disable checking (default).
-
$maximum_items
-
-
$maxlength
-
Maximum length of the string encaspulated by this type. 0 means no limit.
-
$maxlength
-
Maximum length of the string encaspulated by this type. 0 means no limit.
-
$maxlength
-
Maximum length of the string encaspulated by this type. 0 means no limit.
-
$maxyear
-
Maximum Year available for selection.
-
$maxyear
-
Maximum Year available for selection.
-
$mce_config_snippet
-
The MCE configuration snippet to use. Argument must be applicable to use with midcom_get_snippet_content.
-
$member_fieldname
-
Mandatory option. Holds the fieldname containing the membership keys in the mapping table.
-
$member_limit_like
-
This SQL LIKE combatibel constraint limits the number of valid member keys if set (see class introduction).
-
$minimum
-
The lower bound of valid values, set to null to disable checking (default).
-
$minyear
-
Minimum Year available for selection.
-
$minyear
-
Minimum Year available for selection.
-
$multiple_storagemode
-
The storage mode used when multiselect is enabled, see the class' introduction for details.
-
midgard.php
-
-
mnrelation.php
-
-
midcom_helper_datamanager2_baseclasses_filter
-
Standard constructor, as defined by the schema specification. Pre initializes all members.
-
midcom_helper_datamanager2_baseclasses_filter
-
Datamanger 2 Form Manager data filter base class.
-
midcom_helper_datamanager2_callback_select_grouplister
-
DM2 Select Type Callback Toolkit: Midgard Group Lister
-
midcom_helper_datamanager2_callback_select_grouplister
-
The default constructor reads in the configuration. See above for allowed options.
-
midcom_helper_datamanager2_controller
-
Initializes the class. The real startup is done by the initialize() call.
-
midcom_helper_datamanager2_controller
-
Datamanger 2 Data Manager controller base class.
-
midcom_helper_datamanager2_controller_ajax
-
Datamanger 2 Data Manager AJAX controller class.
-
midcom_helper_datamanager2_controller_create
-
Datamanger 2 Data Manager object creation controller class.
-
midcom_helper_datamanager2_controller_nullstorage
-
Datamanger 2 Data Manager null storage controller class.
-
midcom_helper_datamanager2_controller_simple
-
Datamanger 2 Data Manager simple controller class.
-
midcom_helper_datamanager2_csv
-
Datamanager 2 CSV Export helper class.
-
midcom_helper_datamanager2_csv
-
Initializes the class. The real startup is done by the initialize() call.
-
midcom_helper_datamanager2_datamanager
-
The constructor loads the schema database to use but does nothing else so far.
-
midcom_helper_datamanager2_datamanager
-
Datamanger 2 Data Manager core class.
-
midcom_helper_datamanager2_formmanager
-
Initializes the Form manager with a list of types for a given schema.
-
midcom_helper_datamanager2_formmanager
-
Datamanger 2 Form Manager core class.
-
midcom_helper_datamanager2_formmanager_ajax
-
Datamanger 2 ajax Form Manager class.
-
midcom_helper_datamanager2_formmanager_ajax
-
Initializes the Form manager with a list of types for a given schema.
-
midcom_helper_datamanager2_formmanager_paged
-
Initializes the Form manager with a list of types for a given schema.
-
midcom_helper_datamanager2_formmanager_paged
-
Datamanger 2 Paged Form Manager class.
-
midcom_helper_datamanager2_interface
-
Constructor.
-
midcom_helper_datamanager2_interface
-
Datamanger 2 Component Interface Class. This is a pure code library.
-
midcom_helper_datamanager2_renderer_simple
-
A concrete renderer for HTML_QuickForm,
-
midcom_helper_datamanager2_schema
-
Construct a schema, takes a schema snippet URI resolveable through the midcom_get_snippet_content() helper function.
-
midcom_helper_datamanager2_schema
-
Datamanger 2 Schema class.
-
midcom_helper_datamanager2_storage
-
Creates the storage interface class, and initializes it to a given data schema.
-
midcom_helper_datamanager2_storage
-
Datamanger 2 Data storage base class.
-
midcom_helper_datamanager2_storage_midgard
-
Datamanger 2 Data storage implementation: Pure Midgard object.
-
midcom_helper_datamanager2_storage_midgard
-
Start up the storage manager and bind it to a given MidgardObject.
-
midcom_helper_datamanager2_storage_null
-
Datamanger 2 Data storage implementation: NULL storage object.
-
midcom_helper_datamanager2_storage_null
-
TODO
-
midcom_helper_datamanager2_storage_tmp
-
Start up the storage manager and bind it to a given temporary object.
-
midcom_helper_datamanager2_storage_tmp
-
Datamanger 2 Data storage implementation: Temporary storage object.
-
midcom_helper_datamanager2_type
-
Constructor.
-
midcom_helper_datamanager2_type
-
Datamanger 2 Data Type base class.
-
midcom_helper_datamanager2_type_blobs
-
Datamanger 2 Blob management type.
-
midcom_helper_datamanager2_type_boolean
-
Datamanger 2 Simple boolean datatype.
-
midcom_helper_datamanager2_type_captcha
-
Datamanger 2 captcha base type. Does not provide any functionality, just an empty base type so that the DM2 Formmanager can link into the system.
-
midcom_helper_datamanager2_type_composite
-
Datamanager 2 composite object management type.
-
midcom_helper_datamanager2_type_date
-
Datamanger 2 date datatype. The type is based on the PEAR date types types.
-
midcom_helper_datamanager2_type_image
-
Datamanger 2 Image type.
-
midcom_helper_datamanager2_type_images
-
Datamanger 2 Images type.
-
midcom_helper_datamanager2_type_mnrelation
-
Datamanger 2 m:n membership management type.
-
midcom_helper_datamanager2_type_number
-
Datamanger 2 Simple number datatype. The type is based on the PHP floating point types, not an arbitary precision number system.
-
midcom_helper_datamanager2_type_parameters
-
Datamanger 2 parameters type. This allows the editing of all parameters of the storage object.
-
midcom_helper_datamanager2_type_password
-
Datamanger 2 midgard_person compatible password datatype
-
midcom_helper_datamanager2_type_privilege
-
Datamanger 2 Simple privilege datatype.
-
midcom_helper_datamanager2_type_privilegeset
-
Datamanger 2 privilege set datatype.
-
midcom_helper_datamanager2_type_select
-
Datamanger 2 Simple select type. This allows the selection of one or more values from a given list. It is possible to enable adding "unreferenced" items in a "others" listing, but those are outside the normal processing.
-
midcom_helper_datamanager2_type_table
-
Datamanger 2 table type.
-
midcom_helper_datamanager2_type_text
-
Datamanger 2 Simple text datatype. The text value encaspulated by this type is passed as-is to the storage layers, no specialieties done, just a string.
-
midcom_helper_datamanager2_widget
-
Datamanger 2 Widget base class.
-
midcom_helper_datamanager2_widget
-
Constructor.
-
midcom_helper_datamanager2_widget_captcha
-
Datamanger 2 captcha widget
-
midcom_helper_datamanager2_widget_checkbox
-
Datamanger 2 simple checkbox
-
midcom_helper_datamanager2_widget_composite
-
Datamanger 2 composite widget
-
midcom_helper_datamanager2_widget_downloads
-
Datamanger 2 download widget
-
midcom_helper_datamanager2_widget_image
-
Datamanger 2 simple image widget
-
midcom_helper_datamanager2_widget_images
-
Datamanger 2 images widget
-
midcom_helper_datamanager2_widget_jsdate
-
Datamanger 2 JS date widget
-
midcom_helper_datamanager2_widget_password
-
Datamanger 2 password widget
-
midcom_helper_datamanager2_widget_privilege
-
Datamanger 2 simple privilege
-
midcom_helper_datamanager2_widget_privilegecheckbox
-
Datamanger 2 privilege checkbox widget.
-
midcom_helper_datamanager2_widget_radiocheckselect
-
Datamanger 2 simple checkbox / radiobox select widget.
-
midcom_helper_datamanager2_widget_select
-
Datamanger 2 simple select widget.
-
midcom_helper_datamanager2_widget_simpledate
-
Datamanger 2 simple date widget
-
midcom_helper_datamanager2_widget_table
-
Datamanger 2 simple table widget
-
midcom_helper_datamanager2_widget_text
-
Datamanger 2 simple text widget
-
midcom_helper_datamanager2_widget_textarea
-
Datamanger 2 simple textarea widget
-
midcom_helper_datamanager2_widget_tinymce
-
Datamanger 2 TinyMCE driven textarea widget
-
midcom_helper_datamanager2_widget_universalchooser
-
Datamanger 2 universal "chooser" widget.
-
$schema
-
This variable holds the schema currently in use, it has been created from the array stored in the $_schemadb member.
-
$schemadb
-
The schemadb to handle by this controller. This is a list of midcom_helper_datamanager2_schema instances, indexed by their name. Set this member using the load_schemadb or set_schemadb helpers unless you know what you're doing.
-
$schemaname
-
The name of the schema to use. If this is left to null, the first schema from the database is used instead.
-
$schemaname
-
The name of the schema to use. If this is left to null, the first schema from the database is used instead.
-
$searchfields
-
Fields/properties to search the keyword for, always OR and specified after the constaints above
-
$selection
-
A list of the currently selected keys. This is an array even for single select types, in which case the validation limits it to one item. The values array consists only of the object keys, use the resolver function to get the corresponding values.
-
$separator
-
Separator to use between fields, this defaults to ",".
-
$serialized_storage
-
Set this to true during one of the startup callbacks if you need to have the datastorage (de)serialized automatically during I/O operations.
-
$show_time
-
Indicates wether the timestamp should be shown or not.
-
$show_title
-
Controls title processing.
-
$size
-
The size of the input box.
-
$storage
-
This is the storage implementation which is used for operation on the types. It encaspulates the storage target.
-
$storage
-
A reference to the storage object that this type is using. Use this for attachment management. The variable may be null until actual processing starts. It may also change during the lifetime of a type. You should therefore be careful.
-
$storage_type
-
The storage type to use, see the class introduction for details.
-
$style_element_name
-
-
simple.php
-
-
simple.php
-
-
schema.php
-
-
storage.php
-
-
select.php
-
-
select.php
-
-
simpledate.php
-
-
save
-
This function will save the current state of all types to disk. A full validation cycle is done beforehand, if any validation fails, the function aborts and sets the $validation_errors member variable accordingly.
-
setElementTemplate
-
Sets element template
-
setFormTemplate
-
Sets form template
-
setGroupElementTemplate
-
Sets element template for elements within a group
-
setGroupTemplate
-
Sets template for a group wrapper
-
setHeaderTemplate
-
Sets header template
-
setRequiredNoteTemplate
-
Sets the note indicating required fields template
-
set_external_config
-
Sets an external configuration option. Besides other parts in the datamanager framework, nobody should ever have to touch this information.
-
set_external_config
-
Sets an external configuration option. Besides other parts in the datamanager framework, nobody should ever have to touch this information.
-
set_fieldname
-
Simple setter, populates the $_fieldname member.
-
set_form
-
Set the form reference.
-
set_image
-
Adds the image to the type. Loads and processes the $tmpname file on disk.
-
set_renderer
-
Sets the form's renderer based on an existing renderer instance.
-
set_schema
-
This function activates the given schema. This will drop all existing types and create a new set of them which are in the default state at this point.
-
set_schemadb
-
Uses an already loaded schema database. If you want to load a schema database from disk, use the load_schemadb method instead.
-
set_storage
-
Sets the current datamanager instance to the storage object given, which may either be a MidCOM DBA object (which is encaspulated by a midgard datamanger storage instance).
-
set_storage
-
Small helper which sets the current storage object to a new one. The object is used by-reference.
-
set_storage
-
This function sets the system to use a specific storage object. You can pass
-
set_value
-
Wrapper to set the value of this instance type aware: It enforces conversion to a float type and rounds it to the correct precision if applicable. This function should be preferred to regular assignment operations in case you plan to do further work with the types value.
-
set_value
-
Sets the privileges value. If the privilege record has not yet been created, it creates a new one (getting a temporary object from the DM core if neccessary).
-
startForm
-
Called when visiting a form, before processing any form elements
-
startGroup
-
Called when visiting a group, before processing any group elements
-
store
-
Stores a set of types to the configured storage object. This is done by subclass implementations, where this function serves as a request switch.
-
sync_type_with_widget
-
-
sync_type_with_widget
-
When syncing data we clear the capatcha data in the session.
-
sync_type_with_widget
-
The current selection is compatible to the widget value only for multiselects.
-
sync_type_with_widget
-
The current selection is compatible to the widget value only for multiselects.
-
sync_type_with_widget
-
Synchronizes if and only if either the base object is yet null (new object being created) or the user has privileges permissions on the base object.
-
sync_type_with_widget
-
This function is invoked if the widget should extract the corresponding data from the form results passed in $results. Form validation has already been done before, this function will only be called if and only if the form validation succeeds.
-
sync_type_with_widget
-
Synchronizes if and only if we have the permissions.
-
sync_type_with_widget
-
-
sync_type_with_widget
-
-
sync_type_with_widget
-
Nothing to do here.
-
sync_type_with_widget
-
-
sync_type_with_widget
-
Nothing to do here.
-
sync_type_with_widget
-
-
sync_type_with_widget
-
Synchronize the title field
-
sync_type_with_widget
-
Tells the base date class instance to parse the value from the input field.
-
sync_type_with_widget
-
-
sync_type_with_widget
-
The current selection is compatible to the widget value only for multiselects.