ExplicitReadWriteModelPermissionsElement Class Reference

Inheritance diagram for ExplicitReadWriteModelPermissionsElement:
Element DerivedExplicitReadWriteModelPermissionsElement DerivedExplicitReadWritePermissionsUserConfigElement ReportExplicitReadWriteModelPermissionsElement DerivedExplicitReadWritePermissionsContactWebFormElement EmailTemplateExplicitReadWriteModelPermissionsElement

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 ()

Detailed Description

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.

See also:
ExplicitReadWriteModelPermissions
ExplicitReadWriteModelPermissionsUtil

Definition at line 46 of file ExplicitReadWriteModelPermissionsElement.php.


Member Function Documentation

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.

Returns:
A string containing the element's content.

Reimplemented from Element.

Definition at line 63 of file ExplicitReadWriteModelPermissionsElement.php.

renderLabel (  )  [protected]

Override to ensure label is pointing to the right input id

Returns:
A string containing the element's label

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

Returns:
error content

Reimplemented from Element.

Definition at line 121 of file ExplicitReadWriteModelPermissionsElement.php.

resolveData (  )  [protected]
Returns:
array of options for the radio drop down.

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.

Returns:
string

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.

Returns:
string

Reimplemented in DerivedExplicitReadWritePermissionsContactWebFormElement, ReportExplicitReadWriteModelPermissionsElement, DerivedExplicitReadWritePermissionsUserConfigElement, and DerivedExplicitReadWriteModelPermissionsElement.

Definition at line 185 of file ExplicitReadWriteModelPermissionsElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Mar 25 07:10:25 2017