Datamanager 2 privilege selection

As with all subclasses, the actual initialization is done in the initialize() function, not in the constructor, to allow for error handling.

This widget supports the privilege type only. It shows a menu rendered as multi state checkbox having allowed, denied and inherited as options and default selected according to the type's value.

The widget will not display itself if the user does not have privileges permission on the storage object.

package midcom.helper.datamanager2


_on_initialize ()

The initialization event handler validates the base type.


booleanIndicating Success

add_elements_to_form ($attributes)

Adds the elements to the form if we have the permissions.



freeze ()

get_default ()

is_frozen ()

sync_type_with_widget ($results)



unfreeze ()



Array $_element

The QF Element added to the form.

Saved for freezing/unfreezing.

access protected

String $_jscript

Holds the javascript to render the privilege selection widget
access protected

Array $_privilege_options

Holds the privileges to be included in the selection widget
access protected