AdminPageFramework_Form_View___FieldTitle::get PHP Method

get() public method

public get ( )
    public function get()
    {
        $_sOutput = '';
        $aField = $this->aFieldset;
        if (!$aField['show_title_column']) {
            return '';
        }
        $_oInputTagIDGenerator = new AdminPageFramework_Form_View___Generate_FieldInputID($aField, 0);
        $_aLabelAttributes = array('class' => $this->getClassAttribute('admin-page-framework-field-title', $this->aClassSelectors), 'for' => $_oInputTagIDGenerator->get());
        $_sOutput .= $aField['title'] ? "<label " . $this->getAttributes($_aLabelAttributes) . "'>" . "<a id='{$aField['field_id']}'></a>" . "<span title='" . esc_attr(strip_tags(is_array($aField['description']) ? implode('&#10;', $aField['description']) : $aField['description'])) . "'>" . $aField['title'] . $this->_getTitleColon($aField) . "</span>" . "</label>" . $this->_getToolTip($aField['tip'], $aField['field_id']) . $this->_getDebugInfo($aField) : '';
        $_sOutput .= $this->_getFieldOutputsInFieldTitleAreaFromNestedFields($aField);
        return $_sOutput;
    }

Usage Example

 protected function _getFieldByContainer(array $aFieldset, array $aOpenCloseTags)
 {
     $aOpenCloseTags = $aOpenCloseTags + array('open_container' => '', 'close_container' => '', 'open_title' => '', 'close_title' => '', 'open_main' => '', 'close_main' => '');
     $_oFieldTitle = new AdminPageFramework_Form_View___FieldTitle($aFieldset, '', $this->aSavedData, $this->aFieldErrors, $this->aFieldTypeDefinitions, $this->aCallbacks, $this->oMsg);
     $_aOutput = array();
     if ($aFieldset['show_title_column']) {
         $_aOutput[] = $aOpenCloseTags['open_title'] . $_oFieldTitle->get() . $aOpenCloseTags['close_title'];
     }
     $_aOutput[] = $aOpenCloseTags['open_main'] . $this->getFieldsetOutput($aFieldset) . $aOpenCloseTags['close_main'];
     return $aOpenCloseTags['open_container'] . implode(PHP_EOL, $_aOutput) . $aOpenCloseTags['close_container'];
 }
All Usage Examples Of AdminPageFramework_Form_View___FieldTitle::get