Returns the fields array as a 'foo=:foo, bar=:bar' string for updates

@return string String for updates
330034
private function getUpdateFieldsString()
    {
        // Create placeholders
        $fieldsPlaceholders = array_map(function ($field) {
            return $field . '=:' . $field;
        }, array_keys($this->fields));

        // Return complete fields string
        return implode(',', $fieldsPlaceholders);
    }
998849
public function getUpdated()
    {
        $set = new ArrayList();
        foreach ($this->updated as $arrItem) {
            $set->push(ArrayData::create($arrItem));
        }
        return $set;
    }
148323
public function getUsedFields()
    {
        if (empty($this->usedFields)) {
            $this->usedFields = [];
            foreach (AddressField::getAll() as $field) {
                if (strpos($this->format, '%' . $field) !== false) {
                    $this->usedFields[] = $field;
                }
            }
        }

        return $this->usedFields;
    }
1275804
protected function _getFieldList()
    {
        $fields[] = $this->_getFieldsFor($this->_sql);

        foreach ($this->_sql->getJoins() as $join) {
            $str = $this->_getFieldsFor($join);
            if (!$str) {
                continue;
            }
            $fields[] = $str;
        }
        return implode(', ', $fields);
    }
1097779
public String getFields() {

        if (m_parameters.getFields() == null) {
            return "";
        }
        StringBuffer result = new StringBuffer();
        Iterator<String> it = m_parameters.getFields().iterator();
        while (it.hasNext()) {
            result.append(it.next());
            result.append(" ");
        }
        return result.toString();
    }
349436
protected function changedRevisionableFields()
    {
        $changes = [];
        foreach ($this->dirtyData as $key => $value) {
            // check that the field is revisionable, and the data is dirty enough
            if ($this->isRevisionable($key) && !is_array($value)) {
                if (is_object($original = array_get($this->originalData, $key)) || is_string($original)) {
                    $original = trim($original);
                }

                if (is_object($updated = array_get($this->updatedData, $key)) || is_string($updated)) {
                    $updated = trim($updated);
                }

                if ($original != $updated) {
                    $changes[$key] = $value;
                }
            } else {
                // if it's not dirty enough, then remove the field from the array
                unset($this->updatedData[$key]);
                unset($this->originalData[$key]);
            }
        }

        return $changes;
    }
877157
public function getFields()
    {
        $joins = $this->_sql->getJoins();
        $fields = $this->_sql->getFields();

        if (!is_array($fields)) {
            return $fields;
        }

        if (count($joins) > 0 && $this->_sql->prefixTableName) {
            $table = $this->_sql->getTableName();
            foreach ($fields as $key => $field) {
                $fields[$key] = "{$table}.{$field}";
            }
        }

        return implode(', ', $fields);
    }
321837
protected function getFieldsExistingMessages()
    {
        $fieldsMessages = [];
        $formObject = $this->getFormObject();

        if ($formObject->formWasSubmitted()
            && $formObject->hasFormResult()
        ) {
            foreach ($this->getFormObject()->getConfiguration()->getFields() as $field) {
                $fieldsMessages[$field->getName()] = $this->getSingleFieldExistingMessages($field);
            }
        }

        return $fieldsMessages;
    }
566179
protected function __getFieldMetaString()
    {
        $strOutput = "";

        if (is_array($this->__fieldmeta)) {
            foreach ($this->__fieldmeta as $key => $value) {
                if (! in_array($key, $this->__reservedmeta)) {
                    $strOutput .= " {$key}=\"{$value}\"";
                }
            }
        }

        return $strOutput;
    }
85118
public function getChangedFields() {
        $snapshotData = $this->getSnapshotData();
        if(!is_array($snapshotData)) {
            $fields = array_values($this->getModelsMetaData()->getColumnMap($this));
        } else {
            $snapshotData = $this->getSnapshotData();
            $databaseTypes = $this->getDatabaseTypes();
            foreach($snapshotData as $key=>$value) {
                if(array_key_exists($key, $databaseTypes)) {
                    $databaseType = $databaseTypes[$key];
                    switch($databaseType) {
                        case Column::TYPE_BOOLEAN:
                            $value = (bool)$value;
                            break;
                        case Column::TYPE_INTEGER:
                            $value = (int)$value;
                            break;
                        case Column::TYPE_FLOAT:
                        case Column::TYPE_DOUBLE:
                            $value = (float)$value;
                            break;
                    }
                    $snapshotData[$key] = $value;
                }
            }
            $fields = [];
            foreach($this->getModelsMetaData()->getColumnMap($this) as $shortName) {
                if(!array_key_exists($shortName, $snapshotData)) {
                    $fields[] = $shortName;
                    continue;
                }
                $snapData = $snapshotData[$shortName];
                $fieldValue = $this->readAttribute($shortName);
                if($snapData !== $fieldValue) {
                    $fields[] = $shortName;
                    continue;
                }
            }
        }
        return array_diff($fields, ['updatedAt', 'createdAt']);
    }
117257
public function getFields()
    {
        $fields = array_keys($this->fillable);
        if (!empty($fields) && is_integer($fields[0]))
            // only alias provided
            $fields = array_values($this->fillable);

        return array_merge($fields, $this->appends, array_keys($this->attributes));
    }
759308
public function getCMSFields()
    {
        $fields = parent::getCMSFields();
        $fields->addFieldsToTab(
            "Root.Main",
            array(
                DropdownField::create(
                    'ShowHome',
                    'Show home',
                    array(
                        "1" => "Yes",
                        "0" => "No"
                    ),
                    1
                )
            )
        );

        $this->extend('updateCMSFields', $fields);

        return $fields;
    }
632682
private function getFieldName()
    {
        $environment   = $this->getEnvironment();
        $inputProvider = $environment->getInputProvider();

        $fieldName = $inputProvider->hasValue('name') ? $inputProvider->getValue('name') : null;
        if (null === $fieldName) {
            return $fieldName;
        }

        if (('select' !== $inputProvider->getParameter('act'))
            && ('edit' !== $inputProvider->getParameter('mode'))
        ) {
            return $fieldName;
        }

        $dataDefinition = $environment->getDataDefinition();
        $sessionStorage = $environment->getSessionStorage();

        $session = $sessionStorage->get($dataDefinition->getName() . '.' . $inputProvider->getParameter('select'));

        $originalPropertyName = null;
        foreach ($session['models'] as $modelId) {
            if (null !== $originalPropertyName) {
                break;
            }

            $propertyNamePrefix = \str_replace('::', '____', $modelId) . '_';
            if (0 !== strpos($fieldName, $propertyNamePrefix)) {
                continue;
            }

            $originalPropertyName = \substr($fieldName, \strlen($propertyNamePrefix));
        }

        if (!$originalPropertyName) {
            return $fieldName;
        }

        return $originalPropertyName;
    }
480426
function getSignatureString() {
		$parts = array();

		foreach($this->fieldsInOrder as $f) {
			$val = $this->$f;
			if ($val === null) {
				$val = "";
			}
			elseif (is_bool($val)) {
				if ($val) {
					$val = "true";
				} else {
					$val = "false";
				}
			} elseif (is_array($val)) {
				// There are never more than 2 levels, we don't need recursive walk
				$valParts = array();
				foreach($val as $v) {
					if (is_scalar($v)) {
						$valParts[] = $v;
					} else {
						$valParts[] = implode("|", $v);
					}
				}
				$val = implode("|", $valParts);
			}
			$parts[] = $val;
		}

		foreach ($this->auxFieldsInOrder as $f) {
			$val = $this->$f;
			if ($val !== null) {
				$parts[] = $val;
			}
		}

		return implode("|", $parts);
	}
657212
public function getQuery()
    {
        $set = array();
        foreach ($this->set as $key => $value) {
            $set[] = '"'.$key.'" = '.$value;
        }
        
        return 'UPDATE '. $this->table
            . ' SET ' . implode(', ', $set)
            . ' WHERE '. implode(' AND ', $this->where).';';
    }
1061337
public function getColumnArray() {
        $fields = array('name','type','passThrough','default','nullable',
                        'index','unique','after','pkey');
        $fields = array_flip($fields);
        foreach($fields as $key => &$val)
            $val = $this->{$key};
        unset($val);
        return $fields;
    }
1352307
protected function _getFieldsAndPlaceholders()
    {
        $fields = $this->_sql->getFields();
        $parts = [];
        foreach ($fields as $field) {
            $parts[] = "{$field} = :{$field}";
        }
        return implode(', ', $parts);
    }