Public Member Functions | |
getEditableHtmlOptions () | |
resolveModelPermissionsArray () | |
Static Public Member Functions | |
static | getSelectableGroupsData () |
Protected Member Functions | |
getExplicitReadWriteModelPermissions () | |
getAttributeName () | |
renderControlEditable () | |
assertModelIsValid () | |
renderControlNonEditable () | |
renderLabel () | |
renderError () | |
resolveData () | |
resolveSelectedType () | |
resolveSelectedGroup () | |
renderSelectableGroupsContent () | |
resolveAttributeNameAndRelatedAttributes () | |
resolveSelectableAttributeNameAndRelatedAttributes () | |
getSelectableAttributeName () | |
findFirstGroupPermitable () | |
Static Protected Member Functions | |
static | getPermissionTypes () |
Element to expose explicit permission setting on a model in a simple way in the user interface. While this does not have a full user interface offering of the available permission setting mechanisms, this element provides a way for a user to quickly and easily add a group to a model in a view. In the future this element will support adding ad-hoc groups and users to a model. Any selection made using this element assumes that the explicit action is both read and write.
Definition at line 46 of file ExplicitReadWriteModelPermissionsElement.php.
renderControlEditable | ( | ) | [protected] |
Renders the setting as a radio list. The second radio option also has a dropdown of available groups as part of the label.
Reimplemented from Element.
Definition at line 63 of file ExplicitReadWriteModelPermissionsElement.php.
renderLabel | ( | ) | [protected] |
Override to ensure label is pointing to the right input id
Reimplemented from Element.
Reimplemented in DerivedExplicitReadWritePermissionsContactWebFormElement, DerivedExplicitReadWritePermissionsUserConfigElement, and DerivedExplicitReadWriteModelPermissionsElement.
Definition at line 108 of file ExplicitReadWriteModelPermissionsElement.php.
renderError | ( | ) | [protected] |
This type of element does not support ActiveForm errors
Reimplemented from Element.
Definition at line 121 of file ExplicitReadWriteModelPermissionsElement.php.
resolveData | ( | ) | [protected] |
Definition at line 140 of file ExplicitReadWriteModelPermissionsElement.php.
resolveSelectedType | ( | ) | [protected] |
Based on the model's attribute value being a explicitReadWriteModelPermissions object, resolves the selected type value.
Reimplemented in DerivedExplicitReadWritePermissionsContactWebFormElement, ReportExplicitReadWriteModelPermissionsElement, DerivedExplicitReadWritePermissionsUserConfigElement, and DerivedExplicitReadWriteModelPermissionsElement.
Definition at line 162 of file ExplicitReadWriteModelPermissionsElement.php.
resolveSelectedGroup | ( | ) | [protected] |
Based on the model's attribute value being a explicitReadWriteModelPermissions object, resolves the selected group value if available.
Reimplemented in DerivedExplicitReadWritePermissionsContactWebFormElement, ReportExplicitReadWriteModelPermissionsElement, DerivedExplicitReadWritePermissionsUserConfigElement, and DerivedExplicitReadWriteModelPermissionsElement.
Definition at line 185 of file ExplicitReadWriteModelPermissionsElement.php.