/* Extract the field if present, return null if not defined

@param string $fieldName name of the field to extract

@return string field contents if found, null otherwise
483184
private function getField($fieldName)
    {
        if (array_key_exists($fieldName, $this->snsMessage)) {
            return $this->snsMessage[$fieldName];
        } else {
            return null;
        }
    }
368299
public function hasField($fieldName)
    {
        $fields = array_filter($this->fields, function(Field $field) use ($fieldName) {
            return $field->name == $fieldName || $field->getNameWithAlias() == $fieldName;
        });

        if (count($fields) == 0) {
            return false;
        }

        return true;
    }
1177653
public function exclude($fieldName = null)
    {
        if ( ! isset($this->query['select'])) {
            $this->query['select'] = array();
        }

        $fieldNames = is_array($fieldName) ? $fieldName : func_get_args();

        foreach ($fieldNames as $fieldName) {
            $this->query['select'][$fieldName] = 0;
        }

        return $this;
    }
1059644
public function input($fieldName)
    {
        if ($this->isMethod('post')) {
            return (isset($_POST[$fieldName])) ? $_POST[$fieldName] : '';
        }

        if ($this->isMethod('get')) {
            return (isset($_GET[$fieldName])) ? $_GET[$fieldName] : '';
        }

        if ($this->isMethod('put')) {
            parse_str(file_get_contents("php://input"), $PUT);

            return (isset($PUT[$fieldName])) ? $PUT[$fieldName] : '';
        }

        if ($this->isMethod('patch')) {
            parse_str(file_get_contents("php://input"), $PATCH);

            return (isset($PATCH[$fieldName])) ? $PATCH[$fieldName] : '';
        }

        if ($this->isMethod('delete')) {
            parse_str(file_get_contents("php://input"), $DELETE);

            return (isset($DELETE[$fieldName])) ? $DELETE[$fieldName] : '';
        }
    }
722101
public function getFieldIndex(string $fieldName): int
    {
        $result = \pg_field_num($this->handle, $fieldName);

        if (-1 === $result) {
            throw new \Error(\sprintf('No field with name "%s" in result', $fieldName));
        }

        return $result;
    }
928837
protected function unEscapeFieldName($fieldName)
    {
        $parts = array();
        $match = preg_match('/record_(\d+)_(\w+)/i', $fieldName, $parts);

        if (!$match) {
            return false;
        } else {
            return array(
                'id' => $parts[1],
                'name' => $parts[2],
            );
        }
    }
1362970
public function getName($arrayName = null)
    {
        if ($arrayName === null) {
            $arrayName = $this->arrayName;
        }

        if ($arrayName) {
            return $arrayName.'['.implode('][', HtmlHelper::nameToArray($this->fieldName)).']';
        }

        return $this->fieldName;
    }
1159365
function &fieldNamed($fieldName)
    {
        $return = NULL;
        if (isset($this->_fields[$fieldName])) {
            $return =& $this->_fields[$fieldName];
        }

        return $return;
    }
390264
public function getField($fieldname) {
        $i = $this->findFieldInArray($fieldname);
        if ($i !== null) {
            return $this->fields[$i];
        }
        return null;
    }
823373
@Override public final String getHeaderField(String fieldName) {
    try {
      return fieldName == null
          ? StatusLine.get(getResponse().getResponse()).toString()
          : getHeaders().get(fieldName);
    } catch (IOException e) {
      return null;
    }
  }
118737
public function getFieldMapping($fieldName)
    {
        if (!isset($this->fieldMappings[$fieldName])) {
            return false;
        }

        return $this->fieldMappings[$fieldName];
    }
532616
public function getHighlight(string $fieldName): ? string
    {
        return isset($this->highlights[$fieldName])
            ? ((string) $this->highlights[$fieldName])
            : null;
    }
571200
public function getLocalizedFieldName($fieldName)
    {
        if ($this->isLocalizedField($fieldName) || $this->isLocalizedRelation($fieldName)) {
            return self::localized_field($fieldName);
        }
        trigger_error("Field '$fieldName' is not a localized field", E_USER_ERROR);
    }
903456
public function old($fieldName)
    {
        if ($this->isMethod('get') && $this->session->has('planet_oldInput')) {

            $oldInput = $this->session->get('planet_oldInput');

            return ($oldInput != null) ? $oldInput[$fieldName] : '';

        }
    }
1062170
final static public function getMappedProperty($fieldName) {
		
		$binds = static::getBinds();
		return in_array($fieldName, $binds) ? array_search($fieldName, $binds) : NULL;
		
	}
552919
public DOField getFieldByName(String fieldName) {
		int idx = this.getIndexOfField(fieldName);
		if (idx != -1)
			return this.getFieldByIndex(idx);
		return null;
	}
218291
public function getInclude($fieldName)
    {
        if ($this->isInclude($fieldName) === false) {
            return false;
        }

        return $this->mapping[$fieldName]['include'];
    }