Returns the field this Section will be sorted by, or calls
`getDefaultSortingField()` if the configuration file doesn't
contain any settings for that Section.

@since Symphony 2.3
@throws Exception
@return string
Either the field ID or the string 'id'.
438051
public function getSortingField()
    {
        $result = Symphony::Configuration()->get('section_' . $this->get('handle') . '_sortby', 'sorting');

        return (is_null($result) ? $this->getDefaultSortingField() : $result);
    }
622428
protected function getCsvFieldsTerminator()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $fieldTerminator = $config->getConfigParam('sGiCsvFieldTerminator');

        if (!$fieldTerminator) {
            $fieldTerminator = $config->getConfigParam('sCSVSign');
        }
        if (!$fieldTerminator) {
            $fieldTerminator = $this->defaultStringTerminator;
        }

        return $fieldTerminator;
    }
309261
public static function getMainField()
    {
        //
        $attribute = 'MainField';

        // retrieve value from class setting definition
        if (!static::hasClassAttribute($attribute)) {
            $mainField = null;

            //
            $schema = static::getSchema();

            //
            foreach ($schema as $field => &$attributes) {
                if ($attributes['Key'] == 'PRI') {
                    continue;
                }

                //
                $mainField = $field;

                //
                break;
            }

            // store as setting for future request
            static::setClassAttribute($attribute, $mainField);
        }

        // return primary key field name
        return static::getClassAttribute($attribute);
    }
406263
public function getIdField() {
	if(!empty($this->headers)
	&& !in_array($this->idField, $this->headers)) {
		throw new InvalidFieldException($this->idField);
	}

	return $this->idField;
}
508370
public function getSortingOrder()
    {
        $result = Symphony::Configuration()->get('section_' . $this->get('handle') . '_order', 'sorting');

        return (is_null($result) ? 'asc' : $result);
    }
580855
public String getId() {
        String id =  getPropertyAsString(FIELD_ID);
        if (id == null){
            return getPropertyAsString(FIELD_ITEM_ID);
        }
        return id;
    }
1307957
public function getFieldId()
    {
        if (isset($this->_data['gtap_id_app_field']) && $this->_data['gtap_id_app_field']) {
            return FieldsDefinition::makeKey(
                    FieldMaintenanceModel::APPOINTMENTS_NAME,
                    $this->_data['gtap_id_app_field']
                    );
        }
    }
123066
protected function getListField()
    {
        $id = $this->getParam(0);

        if (!isset($id)) {
            return $this->field->getList(array('limit' => $this->getLimit()));
        }

        if ($this->getParam('type')) {
            return $this->field->getList(array('type' => $id, 'limit' => $this->getLimit()));
        }

        if ($this->getParam('widget')) {
            return $this->field->getList(array('widget' => $id, 'limit' => $this->getLimit()));
        }

        if (!is_numeric($id)) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        $result = $this->field->get($id);

        if (empty($result)) {
            $this->errorAndExit($this->text('Unexpected result'));
        }

        return array($result);
    }
284372
protected function getLayoutId()
    {
        $paragraph = $this->findParagraph();

        if ( empty( $paragraph ) )
        {
            /* @var $structure \Core\Model\SubDomain\Structure */
            $structure = $this->getServiceLocator()
                              ->get( 'Grid\Core\Model\SubDomain\Model' )
                              ->findActual();

            return $structure->defaultLayoutId;
        }
        else
        {
            return $paragraph->layoutId;
        }
    }
1086184
public int getDefaultDisplayFieldSeq()
    {
        String iKeyOrder = this.getDefaultScreenKeyArea();
        if (iKeyOrder == null)
        {
            for (int i = 0; i < this.getFieldCount(); i++)
            {
            	if (this.getField(i).isHidden())
            		continue;
                if (this.getField(i) instanceof StringField)
                    return i;
            }
            return DBConstants.MAIN_FIELD + 1;
        }
        for (int i = 0; i < this.getFieldCount(); i++)
        {
            if (this.getField(i) == this.getKeyArea(iKeyOrder).getField(DBConstants.FILE_KEY_AREA))
                return i;
        }
        return DBConstants.MAIN_FIELD + 1;
    }
867790
public function __fieldFix()
    {
        $schema = $this->getClassSchema();
        foreach ($this->__calculateSaveDownRows() as $column) {
            if (!isset($schema[$column]['type'])) {
                throw new Exception("No type hinting/docblock found for '{$column}' in '" . get_called_class() . "'.", E_USER_WARNING);
            }

            $type = $schema[$column]['type'];
            if ($type == "integer" && !is_int($this->$column)) {
                $this->$column = intval($this->$column);
            }
        }
        return true;
    }
35909
public function _render_field()
    {
        $ret = [];

        if (!$this->args['field']) {
            throw new Exception([
                'No fields defined for table',
            ]);
        }

        foreach ($this->args['field'] as $field => $options) {
            if ($options instanceof Expression) {
                $ret[] = $this->_escape($field).' '.$this->_consume($options);
                continue;
            }

            $ret[] = $this->_render_one_field($field, $options);
        }

        return implode(',', $ret);
    }
1125327
public function getId()
    {
        $idField = ItemInterface::IDFIELD;

        if (isset($this->_fields[$idField])) {
            return $this->_fields[$idField];
        }

        return NULL;
    }
186420
public function get_sort_columns() {
        if (!$this->setup) {
            throw new coding_exception('Cannot call get_sort_columns until you have called setup.');
        }

        if (empty($this->prefs['sortby'])) {
            return array();
        }

        foreach ($this->prefs['sortby'] as $column => $notused) {
            if (isset($this->columns[$column])) {
                continue; // This column is OK.
            }
            if (in_array($column, get_all_user_name_fields()) &&
                    isset($this->columns['fullname'])) {
                continue; // This column is OK.
            }
            // This column is not OK.
            unset($this->prefs['sortby'][$column]);
        }

        return $this->prefs['sortby'];
    }
995033
public function getField($field_name)
    {
        $field = null;
        
        if (isset($this->m_fields[$field_name]))
        {
            $field = $this->m_fields[$field_name];
        }
        else
        {
            $err_msg = '[' . $field_name . '] does not exist in table ' .
                       '[' . $this->m_name . ']';
            
            throw new \Exception($err_msg);
        }
        
        return $field;
    }
242745
public function getSections()
    {
        $sections = array();

        foreach ($this->section as $sectionObj) {

            $section = new Section;

            foreach (static::$sectionattributes as $attribute) {
                $section->{$attribute} = $this->getValue((string)$sectionObj->attributes()->{$attribute});
            }

            $fields = $sectionObj->fields;
            $section->setFields($this->getFields($fields));
            $sections[$section->id] = $section;

        }

        return $sections;
    }
797363
protected function _getIndexTitleField()
    {
        $action = $this->_action();

        $field = $action->getConfig('scaffold.index_title_field');
        if ($field === null) {
            $field = $this->_table()->getDisplayField();
        }

        return $field;
    }