-
$_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