AdminPageFramework_FieldType_submit::getField PHP Method

getField() protected method

protected getField ( $aField )
    protected function getField($aField)
    {
        $aField = $this->_getFormatedFieldArray($aField);
        $_aInputAttributes = $this->_getInputAttributes($aField);
        $_aLabelAttributes = $this->_getLabelAttributes($aField, $_aInputAttributes);
        $_aLabelContainerAttributes = $this->_getLabelContainerAttributes($aField);
        return $aField['before_label'] . "<div " . $this->getAttributes($_aLabelContainerAttributes) . ">" . $this->_getExtraFieldsBeforeLabel($aField) . "<label " . $this->getAttributes($_aLabelAttributes) . ">" . $aField['before_input'] . $this->_getExtraInputFields($aField) . "<input " . $this->getAttributes($_aInputAttributes) . " />" . $aField['after_input'] . "</label>" . "</div>" . $aField['after_label'];
    }

Usage Example

 /**
  * Returns the output of the field type.
  * 
  * @since       2.1.5       Moved from the AdminPageFramework_FormField class. The name was changed from getHiddenField().
  * @since       3.3.1       Changed from `_replyToGetField()`.
  */
 protected function getField($aField)
 {
     /* Set some required values */
     $aField['attributes']['name'] = "__import[submit][{$aField['input_id']}]";
     $aField['label'] = $aField['label'] ? $aField['label'] : $this->oMsg->get('import');
     return parent::getField($aField);
 }
All Usage Examples Of AdminPageFramework_FieldType_submit::getField