[midcom.helper.datamanager2] element index

Package indexes

All elements
a b c d e f g h i j k l m n o p r s t u v w _
_
top
Variable $_all_elements
All elements in the select list. saved for performance reasons.
Variable $_attachment_map
This array maps attachment identifiers to image identifier/derived image name pairs.
Variable $_callback
In case the options are returned by a callback, this member holds the callback instance.
Variable $_callback
Optional callback that will be used if the storage variant "callback" has been called.
Variable $_callback
In case the options are returned by a callback, this member holds the callback instance.
Variable $_config
Configuration as passed from the callback.
Variable $_controllers
Array of Datamanager 2 controllers for child object display and management
Variable $_creation_controllers
Array of Datamanager 2 controllers for child object creation
Variable $_currentGroupName
The current group running
Variable $_currentGroups
The stack of groups
Variable $_currentGroupTemplates
All group templates for running groups (i.e. prepared and ready).
Variable $_current_tmpname
The current working file.
Variable $_current_tmpname
The current working file.
Variable $_defaults
The defaults to use when loading the data from the "artificial" storage.
Variable $_editable
Variable $_element
The input textbox used which needs to be frozen when operating on the captcha.
Variable $_elements
The QF Element list added to the form. Saved for freezing/unfreezing.
Variable $_elements
The list of elements added to the widget, indexed by their element name.
Variable $_elements
The list of elements added to the widget, indexed by their element name.
Variable $_elementTemplate
Element template string
Variable $_exitcode
Latest exit code
Variable $_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.
Variable $_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.
Variable $_field
A reference to the schema field we should draw. Description texts etc. are taken from here.
Variable $_fieldname
The name of the schema field we are currently processing.
Variable $_filename
The original filename of the uploaded file.
Variable $_filename
The original filename of the uploaded file.
Variable $_filter
The image-filter instance to use.
Variable $_filter
The image-filter instance to use.
Variable $_form
The QuickForm we are using.
Variable $_formmanager
A reference to the Formmanager instance.
Variable $_formTemplate
Form template string
Variable $_group
The group of elements forming our widget.
Variable $_group
The group of elements forming our widget.
Variable $_groupElements
Array with HTML generated for group elements
Variable $_groupElementTemplate
Template for an element inside a group
Variable $_groupTemplate
Element template string
Variable $_groupTemplates
Array containing the templates for elements within groups
Variable $_groupWrap
HTML that wraps around the group elements
Variable $_groupWraps
Array containing the templates for group wraps.
Variable $_headerTemplate
Header Template string
Variable $_hiddenHtml
Collected HTML of the hidden fields
Variable $_html
The HTML of the form
Variable $_identifier
The current image identifier to use when operating on images.
Variable $_inGroup
True if we are inside a group
Variable $_initialize_dependencies
Whether widget should always load its dependencies on initialization, or only during add_elements_to_form call.
Variable $_key_field
The key field used for referencing.
Variable $_lastfield
Variable $_list_all_done
This flag will be set after list_all has been executed to short-cut various lookups where possible.
Variable $_loaded_groups
The cache of loaded group names, indexed by the selected key field.
Variable $_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.
Variable $_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.
Variable $_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.
Variable $_original_mimetype
The original mimetype of the uploaded file.
Variable $_original_mimetype
The original mimetype of the uploaded file.
Variable $_original_tmpname
The name of the original temporary uploaded file (which will already be converted to a Web-Aware format).
Variable $_original_tmpname
The name of the original temporary uploaded file (which will already be converted to a Web-Aware format).
Variable $_passphrase
The passphrase currently in use.
Variable $_pending_attachments
This list is used when updating an existing image. It keeps track
Variable $_pending_attachments
This list is used when updating an existing attachment. It keeps track
Variable $_plusrow_group
The dummyrow used to create a plusrow.
Variable $_raw_schema
The raw schema array as read by the system. This is a reference into the schema database.
Variable $_raw_schemadb
The raw schema database as read by the system.
Variable $_real_value
The real value as stored in the object. This takes crypting etc. into account.
Variable $_requiredNoteTemplate
Required Note template string
Variable $_schema
A reference to the data schema used for processing.
Variable $_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.
Variable $_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.
Variable $_schemadb
The schema database in use for the child elements
Variable $_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.
Variable $_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().
Variable $_session_domain
The session namespace to use.
Variable $_session_key
The session key in use for this Formmanager instance.
Variable $_target_mimetype
The target mimetype used after automatic conversion for all generated images.
Variable $_target_mimetype
The target mimetype used after automatic conversion for all generated images.
Variable $_templates
Array containing the templates for customised elements
Variable $_title
The image title entered by the user. Stored in each attachments title field.
Variable $_tmpid_fieldname
The name of the hidden field used to remember the temporary object id.
Variable $_type
This is a reference to the type we're based on.
Variable $_types
The list of types which should be used for rendering. They must match the schemadb passed to the class.
Variable $_upload_element
The QF upload form element, used for processing.
Variable $_value_field
The field use for display purposes.
Method _add_attachment_row
Adds a row for an existing attachment
Method _add_element
Creates an element that is returened and added to a row
Method _add_expand_js
Method _add_external_html_elements
Adds the external HTML dependencies, both JS and CSS. A static flag prevents multiple insertions of these dependencies.
Method _add_external_html_elements
Adds the external HTML dependencies, both JS and CSS. A static flag prevents multiple insertions of these dependencies.
Method _add_image_row
Adds a row for an existing image
Method _add_initscript
This helper will construct the TinyMCE initscript based on the specified configuration.
Method _add_new_upload_row
Adds the new upload row to the bottom of the table.
Method _add_new_upload_row
Adds the new upload row to the bottom of the table.
Method _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:
Method _add_table_footer
Adds the table footer.
Method _add_table_footer
Adds the table footer.
Method _add_table_header
Adds the table header to the widget.
Method _add_table_header
Adds the table header to the widget.
Method _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!
Method _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!
Method _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.
Method _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.
Method _cast_formgroup_to_replacedelete
Switches the Element Group from a simple upload form to a replace/delete constellation.
Method _cast_formgroup_to_upload
Switches the Element Group from a replace/delete constellation to a simple upload form.
Method _cast_to_storage_object
cast $storage to a simple midgard storage implementation. the reference should propagate this.
Method _check_class
Method _check_for_update
The following checks are made, in order:
Method _check_for_update
The following checks are made, in order:
Method _check_new_upload
Checks whether a new file has been uploaded. If yes, it is processed.
Method _check_new_upload
Checks whether a new file has been uploaded. If yes, it is processed.
Method _complete_field_defaults
Internal helper function which completes all missing field declaration members so that all fields can be treated uniformly.
Method _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.
Method _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.
Method _convert_multiple_from_storage
Converts the selected options according to the multiple_storagemode setting.
Method _convert_multiple_to_storage
Converts the selected options according to the multiple_storagemode setting.
Method _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.
Method _create_frozen_elements
Create the frozen element listing.
Method _create_frozen_elements
Constructs the widget for frozen operation: Only a single static element is added indicating the current type state.
Method _create_initscript
Generates the initscript for the current field.
Method _create_plusrow
create an empty row at the bottom of
Method _create_random_suffix
Creates random string of 8 characters
Method _create_replace_elements
Creates the elements to manage an existing upload, offering "delete" and "upload new file" operations.
Method _create_unfrozen_elements
Create the unfrozen element listing.
Method _create_upload_elements
Creates the upload elements for empty types.
Method _create_working_copy
This function creates a new working copy and stores the filename in _current_tmpname.
Method _create_working_copy
This function creates a new working copy and stores the filename in _current_tmpname.
Method _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.
Method _get_advanced_configuration
Returns the "advanced" configuration
Method _get_configuration
Returns the configuration theme based on the local_config_theme.
Method _get_imploded_options
Prepares the imploded storage string. All entries containing the pipe char (used as glue) will be logged and skipped silently.
Method _get_key
Returns the key as configured for the given group.
Method _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.
Method _get_mimetype
Internal helper function, determines the mime-type of the specified file.
Method _get_mimetype
Internal helper function, determines the mime-type of the specified file.
Method _get_simple_configuration
Returns the default/simple configuraiton:
Method _get_single_key
Method _get_tiny_configuration
Returns the "tiny" configuration
Method _is_ajax_editable
Method _is_widget_visible
This helper function checks wether a given widget is visible.
Method _load_attachment
This function will load a given attachment from the disk, and then calls a function which updates the $attachments_info listing.
Method _load_creation_controllers
Method _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.
Method _load_membership_objects
Loads all membership records from the database. May only be called if an storage object is defined.
Method _load_schema
This function parses the schema and populates all members with the corresponding information, completing defaults where neccessary.
Method _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.
Method _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.
Method _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.
Method _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.
Method _load_widgets
...
Method _on_configuring
Initialize the value with an empty Date class.
Method _on_configuring
This function, is called before the configuration keys are merged into the types configuration.
Method _on_configuring
Set the base URL accordingly (this requires midcom_config access and is thus not possible using class member initializers.
Method _on_configuring
This changes the defaults for the textarea size to something more usable for a WYSIWYG editor.
Method _on_configuring
This function, is called before the configuration keys are merged into the types configuration.
Method _on_configuring
Compatibility handler for the deprecated is_html configuration option.
Method _on_configuring
Adapts the min/maxyear defaults if the base date is set to UNIXDATE storage.
Method _on_initialize
The initialization event handler verifies the correct type.
Method _on_initialize
The initialization event handler, check type.
Method _on_initialize
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_initialize
This startup handler validates that the class is populated correctly.
Method _on_initialize
The initialization event handler validates the base type.
Method _on_initialize
Validates the base type
Method _on_initialize
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
Method _on_initialize
The initialization event handler verifies the used type.
Method _on_initialize
The initialization event handler validates the base type.
Method _on_initialize
The initialization event handler verifies the correct type.
Method _on_initialize
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
Method _on_initialize
This event handler is called during construction, so passing references to $this to the outside is unsafe at this point.
Method _on_initialize
This event handler is called after construction, so passing references to $this to the outside is safe at this point.
Method _on_initialize
This is called during intialization the function is used to
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_initialize
The initialization event handler creates the captcha passphrase (if neccessary).
Method _on_initialize
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
Method _on_initialize
The initialization event handler validates the base type
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_initialize
Validates the base type.
Method _on_initialize
This startup handler validates that the privileges array is populated.
Method _on_initialize
The initialization event handler verifies the correct type.
Method _on_initialize
Initialize the class, if neccessary, create a callback instance, otherwise validate that an option array is present.
Method _on_initialize
The initialization event handler post-processes the maxlength setting.
Method _on_load_data
Method _on_load_data
Override this function to implement the storage method for your backend.
Method _on_load_data
This returns the defaults set. An empty string is used for unset defaults.
Method _on_store_data
We don't store anything, this can be safely ignored therefore.
Method _on_store_data
Method _on_store_data
Override this function to implement the storage method for your backend.
Method _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.
Method _on_update_object
We do as if we can store successfully at all times.
Method _on_update_object
Method _on_validate
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
Method _on_validate
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
Method _on_validate
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
Method _on_validate
The validateion callback ensures that we dont't have an array or an object as a value, which would be wrong.
Method _on_validate
Type-specific validation callback, this is executed before any custom validation rules which apply through the customization interface.
Method _on_validate
The validation callback ensures that we are in the bounds defined by the type configuration. The value is rounded prior to processing.
Method _prepareTemplate
Helper method for renderElement
Method _process_options
Reads and validates the configuration options. Invalid options are logged and ignored.
Method _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.
Method _save_attachment_listing
This function synchronizes the attachment listing parameter of this field with the current attachment state.
Method _save_derived_image
This is the actual code which filters and saves a derived image.
Method _save_derived_image
This is the actual code which filters and saves a derived image.
Method _save_derived_images
This loops over the defined derived images (if any) and constructs each of them in turn.
Method _save_derived_images
This loops over the defined derived images (if any) and constructs each of them in turn.
Method _save_image_listing
This saves a map of attachment identifiers to image identifier/name pairs.
Method _save_main_image
Saves the main image to the type, doing transformation work if configured to do so.
Method _save_main_image
Saves the main image to the type, doing transformation work if configured to do so.
Method _save_original