All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
ExplicitReadWriteModelPermissionsElement Class Reference
Inheritance diagram for ExplicitReadWriteModelPermissionsElement:
Element DerivedExplicitReadWriteModelPermissionsElement DerivedExplicitReadWritePermissionsUserConfigElement ReportExplicitReadWriteModelPermissionsElement CampaignDerivedExplicitReadWriteModelPermissionsElement DerivedExplicitReadWritePermissionsContactWebFormElement EmailTemplateExplicitReadWriteModelPermissionsElement

Public Member Functions

 getEditableHtmlOptions ()
 
 resolveModelPermissionsArray ()
 
- Public Member Functions inherited from Element
 __construct ($model, $attribute, $form=null, array $params=array())
 
 render ()
 
 getEditableNameIds ()
 
 getAttribute ()
 
 renderAsControlNonEditable ()
 

Static Public Member Functions

static getSelectableGroupsData ()
 
- Static Public Member Functions inherited from Element
static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 

Protected Member Functions

 getExplicitReadWriteModelPermissions ()
 
 getAttributeName ()
 
 renderControlEditable ()
 
 assertModelIsValid ()
 
 renderControlNonEditable ()
 
 renderLabel ()
 
 renderError ()
 
 resolveData ()
 
 resolveSelectedType ()
 
 resolveSelectedGroup ()
 
 renderSelectableGroupsContent ()
 
 resolveAttributeNameAndRelatedAttributes ()
 
 resolveSelectableAttributeNameAndRelatedAttributes ()
 
 getSelectableAttributeName ()
 
 findFirstGroupPermitable ()
 
- Protected Member Functions inherited from Element
 renderLabel ()
 
 resolveIdForLabel ()
 
 getFormattedAttributeLabel ()
 
 resolveNonActiveFormFormattedLabel ($label)
 
 renderError ()
 
 renderScopedErrorId ($inputNameIdPrefix, $attribute)
 
 renderEditable ()
 
 renderNonEditable ()
 
 renderControlEditable ()
 
 renderControlNonEditable ()
 
 getColumnSpan ()
 
 getDisabledValue ()
 
 getHtmlOptions ()
 
 resolveContentTemplate ($template, $data)
 
 getEditableInputId ($attributeName=null, $relationAttributeName=null)
 
 getEditableInputName ($attributeName=null, $relationAttributeName=null)
 
 resolveInputPrefix ()
 
 resolveInputIdPrefix ()
 
 resolveInputNamePrefix ()
 
 getListViewGridId ()
 

Static Protected Member Functions

static getPermissionTypes ()
 

Additional Inherited Members

- Data Fields inherited from Element
 $params
 
 $editableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}{error}</td>'
 
 $nonEditableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}</td>'
 
- Protected Attributes inherited from Element
 $model
 
 $attribute
 
 $form
 

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.

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

Definition at line 108 of file ExplicitReadWriteModelPermissionsElement.php.

renderError ( )
protected

This type of element does not support ActiveForm errors

Returns
error content

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

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

Definition at line 185 of file ExplicitReadWriteModelPermissionsElement.php.


The documentation for this class was generated from the following file:
Generated on Fri Feb 21 2020 07:10:45