Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
Element Class Reference
Inheritance diagram for Element:
ActivitySummaryElement AddressElement ArchivedEmailMatchingElement AttributeTypeElement AvatarTypeAndEmailElement BackgroundTextureElement BaseNotificationElement BorderPositionElement ByTimeWorkflowInQueueSummaryElement CalculatedNumberElement CampaignItemStageFilterRadioElement CheckBoxElement CloseTaskCheckBoxElement CollectionElement CommentsElement ConversationLatestElement CustomColorElement CustomThemeColorArrayElement DateElement DateTimeElement DateTimeUserElement DerivedUserStatusElement DesktopNotificationElement DropDownDependencyElement DropDownElement DurationElement EditableDropDownCollectionElement EmailAddressInformationElement EmailMessageAllRecipientTypesElement EmailMessageBccRecipientsElement EmailMessageCcRecipientsElement EmailMessageContentElement EmailMessageSenderElement EmailMessageToRecipientsElement EmailTemplateBuiltTypeElement EmailTemplateHtmlAndTextContentElement ExplicitReadWriteModelPermissionsElement FancyDividerStyleRadioElement FilterByRadioElement FullNameElement ImageElement ImportFileUploadElement ImportResultsFilterRadioElement ImportRulesTypeRadioDropDownElement JobLogStatusElement JobLogTypeElement KanbanBoardOptionsElement LabelElement LatestActivitiesMashableFilterRadioElement LatestActivitiesOwnedByFilterRadioElement LatestActivitiesRollUpFilterRadioElement LeaderboardPointsElement LeaderboardRankElement LeaderboardUserElement LeadsConvertToAccountRadioElement LeadsConvertToOpportunityRadioElement ListAttributesSelectionElement MarketingListsSubscriptionTypeFilterRadioElement MarketingMetricsGroupByRadioElement MashableInboxOptionsByModelRadioElement MashableInboxStatusRadioElement MashableInboxSummaryElement MeetingDaySummaryElement MenuItemsSelectionElement MissionLatestElement MissionsListTypeFilterRadioElement MissionStatusElement MixedAttributeTypesForWorkflowActionAttributeElement MixedChartRangeAndSeriesElement MixedDateTypesElement MixedLoggedInUserTypesAndUsersElement MixedNumberTypesElement ModelElement ModelsElement ModuleForWizardModelRadioDropDownElement ModuleGlobalSearchAttributesElement MultiSelectRelatedModelsAutoCompleteElement NotificationConfigurationTableHeadElement NullElement OpportunityTimeInStageElement PolicyIntegerAndStaticDropDownElement PolicyPasswordExpiryElement ProductStageFilterRadioElement ReadOnlyElement RedactorElement SelectBaseTemplateElement SelectPrimaryOrSecondaryCompositeElement SellPriceFormulaInformationElement SendATestEmailToElement SettingsLogoFileUploadElement SocialItemAndCommentsElement SortableContactWebFormAttributesElement StateToggleElement SuperAdministratorToUseElement TaskCheckListItemsListElement TestImapConnectionElement TestLdapConnectionElement TextAreaElement TextElement ThemeColorElement TitleFullNameElement TogglePrimaryOrSecondaryInputRadioElement UniqueIdentifierElement UpdateAccountLatestActivityDateTimeElement UpdateContactLatestActivityDateTimeElement WorkflowMessageInQueueSummaryElement

Public Member Functions

 __construct ($model, $attribute, $form=null, array $params=array())
 
 render ()
 
 getEditableNameIds ()
 
 getAttribute ()
 
 renderAsControlNonEditable ()
 

Static Public Member Functions

static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 

Data Fields

 $params
 
 $editableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}{error}</td>'
 
 $nonEditableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}</td>'
 

Protected Member Functions

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

Protected Attributes

 $model
 
 $attribute
 
 $form
 

Detailed Description

Abstraction of the various view elements. Examples include Text fields, checkboxes, and date fields.

Element can render an editable or non-editable version and will populate information based on the provided attribute and model.

Definition at line 44 of file Element.php.

Constructor & Destructor Documentation

__construct (   $model,
  $attribute,
  $form = null,
array  $params = array() 
)

Constructs the element specifying the model and attribute. In the case of needing to show editable information, a form is also provided.

Parameters
$formOptional. If supplied an editable element will be rendered.
$paramsCan have additional parameters for use. 'wide' true or false is an example parameter

Definition at line 66 of file Element.php.

Member Function Documentation

render ( )

Generates the element content.

Returns
A string containing the element's content.

Definition at line 80 of file Element.php.

renderLabel ( )
protected

Generate the element label content

Returns
A string containing the element's label

Definition at line 94 of file Element.php.

renderError ( )
protected

Generate the error content. Used by editable content

Returns
error content

Definition at line 139 of file Element.php.

renderScopedErrorId (   $inputNameIdPrefix,
  $attribute 
)
protected

For related models such as Email, Address, and CurrencyValue, a scoped error id is required. This is because we treat those related attributes effectively on the base model for showing validation errors.

Parameters
string$inputNameIdPrefix
string$attribute
Returns
string

Definition at line 152 of file Element.php.

renderEditable ( )
protected

Generate editable version of the element includes the lable, control, and error content

Returns
A string containing the element's content.

Definition at line 164 of file Element.php.

renderNonEditable ( )
protected

Generate non-editable version of the element includes label and control elements

Returns
A string containing the element's content.

Definition at line 179 of file Element.php.

getColumnSpan ( )
protected

Determines correct column span based on params 'wide' value

Definition at line 195 of file Element.php.

getEditableNameIds ( )

Get the collection of id/names of inputs and other parts of the element.

Definition at line 229 of file Element.php.

resolveContentTemplate (   $template,
  $data 
)
protected

Resolves the editable or non-editable template with data.

Returns
string. resolved $template

Definition at line 253 of file Element.php.

getEditableInputId (   $attributeName = null,
  $relationAttributeName = null 
)
protected

An input Id is typically formed like: modelClassName_attributeName or modelClassName_attributeName_relationAttributeName. This method resolves the input Id string.

Parameters
string$attributeName
string$relationAttributeName
Returns
string representing the content of the input id.

Definition at line 277 of file Element.php.

getEditableInputName (   $attributeName = null,
  $relationAttributeName = null 
)
protected

An input name is typically formed like: modelClassName[attributeName] or modelClassName[attributeName][relationAttributeName]. This method resolves the input name string. Also handles scenarios where attributeName has something like abc[def]. This method will properly account for that.

Parameters
string$attributeName
string$relationAttributeName
Returns
string representing the content of the input name.

Definition at line 303 of file Element.php.

static resolveInputNameForEditableInput (   $attributeName)
static
See Also
$this->getEditableInputName()
Parameters
string$attributeName

Definition at line 325 of file Element.php.

resolveInputPrefix ( )
protected

An input Id or name is typically constructed like: modelClassName[attributeName]. The 'modelClassName' is considered the prefix of the input. Any inputPrefix specified in the parameters coming into the element will be used, otherwise the model class name will be utilized.

Returns
string representing the content of the input prefix.

Definition at line 340 of file Element.php.


The documentation for this class was generated from the following file:
Generated on Tue Sep 29 2020 07:10:45
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.