Build the field name with prefix applied.

@return string
484730
public function buildPrefixedFieldName()
    {
        $field_name = $this->field->getAttribute('field_name');

        if ($this->prefix) {
            $adjustedPrefix = str_replace('.', '[', $this->prefix);

            if (str_contains($adjustedPrefix, '[')) {
                $adjustedPrefix = $adjustedPrefix.']';
            }

            return $adjustedPrefix.'['.$field_name.']';
        }

        return $field_name;
    }
408633
public function ___build(): string
    {
        $tables = \implode(', ', $this->from);
        $where = $limit = '';

        if ($this->where !== '') {
            $where = \sprintf(' WHERE %s', $this->where);
        }
        if ($this->limit !== 0) {
            $limit = \sprintf(' LIMIT %s', $this->limit);
        }

        return \sprintf('DELETE FROM %s%s%s', $tables, $where, $limit);
    }
537811
public function prepareFieldName(string $fieldName) : string
    {
        $fieldNames = $this->prepareQueryElement($fieldName, null, null, false);

        return $fieldNames[0][0];
    }
948955
public function getPrefix()
  {
    $uuid = uniqid(static::CACHE_CHECK_PREFIX, true);
    $prefix = wp_cache_get($this->prefix, static::CACHE_GROUP_KEY, false, $uuid);

    if ($prefix !== $uuid) {
      return $prefix;
    }

    $this->setPrefix($this->prefix);
    return $this->getPrefix();
  }
894558
public function buildValues()
	{
		$fields = [];
		$values = [];

		foreach ($this->values as $field => $value)
		{
			$fields[] = $this->connection->quoteName($field);
			$values[] = '?';
			$this->bind(is_string($value) ? trim($value) : $value);
		}

		return '(' . implode(',', $fields) . ') VALUES (' . implode(',', $values) . ')';
	}
531859
public function getPrefix()
    {
        $returnValue = (string) '';

        
        
        //prevent to use empty prefix. By default the name is used!
        if(empty($this->prefix) && !empty($this->name)){
        	$this->prefix = $this->name . '_';
        }
        
        $returnValue = $this->prefix;
        
        

        return (string) $returnValue;
    }
33182
public function getFieldName()
    {
        $ret = $this->getName();
        if ($this->getNamePrefix()) {
            $ret = $this->getNamePrefix() . '_' . $ret;
        }
        return $ret;
    }
66893
protected function buildPrefix()
    {

        if ($this->currentLevel === false) {
            return "";
        } else {
            $prefix = $this->currentLevel;
            $this->currentLevel = false;

            return $prefix . ".";
        }
    }
165182
private function buildUpdateSql(): string
    {
        $sql = 'UPDATE ' . $this->tableName . ' SET ';
        $fieldArr = [];
        foreach ($this->updateData as $key => $value) {
            if ($value === null) {
                $fieldArr[] = ($key . '=NULL');
            } elseif (is_string($value)) {
                $fieldArr[] = ($key . '=' . $this->pdo->quote($value));
            } else {
                $fieldArr[] = ($key . '=' . strval($value));
            }
        }
        $sql .= implode(', ', $fieldArr);
        if (! empty($this->whereStr)) {
            $sql .= (' WHERE ' . $this->buildWhereStr());
        }
        return $sql;
    }
619939
public function addNameToSelect()
    {
        $fields = $this->_getNameFields();
        $adapter = $this->getConnection();
        $concatenate = array();

        if (isset($fields['prefix'])) {
            $concatenate[] = $adapter->getCheckSql(
                '{{prefix}} IS NOT NULL AND {{prefix}} != \'\'',
                $adapter->getConcatSql(array('LTRIM(RTRIM({{prefix}}))', '\' \'')),
                '\'\''
            );
        }

        $concatenate[] = 'LTRIM(RTRIM({{firstname}}))';
        $concatenate[] = '\' \'';
        if (isset($fields['middlename'])) {
            $concatenate[] = $adapter->getCheckSql(
                '{{middlename}} IS NOT NULL AND {{middlename}} != \'\'',
                $adapter->getConcatSql(array('LTRIM(RTRIM({{middlename}}))', '\' \'')),
                '\'\''
            );
        }

        $concatenate[] = 'LTRIM(RTRIM({{lastname}}))';
        if (isset($fields['suffix'])) {
            $concatenate[] = $adapter
                ->getCheckSql(
                    '{{suffix}} IS NOT NULL AND {{suffix}} != \'\'',
                    $adapter->getConcatSql(array('\' \'', 'LTRIM(RTRIM({{suffix}}))')),
                    '\'\''
                );
        }

        $nameExpr = $adapter->getConcatSql($concatenate);


        $this->addExpressionFieldToSelect('name', $nameExpr, $fields);

        return $this;
    }
70998
public function getExtendedName()
    {
        $type = $this->getType();

        if ($type) {
            $extendedName = $type->getName();
        } else {
            $extendedName = '';
        }

        $catTitle = $this->getCategoryTitle();
        if ($catTitle !== null) {
            $extendedName .= '-' . $this->getCategoryTitle();
        }

        $extendedName .= '-' . $this->getName();

        return $extendedName;
    }
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;
    }
108404
public function prefix($name)
    {
        if ($prefix = $this->config()->attribute['prefix']) {
            
            if (strpos($name, $prefix) !== 0) {
                return sprintf('%s%s', $prefix, $name);
            }
            
        }
        
        return $name;
    }
55589
public function getOGPrefix()
    {
        // Add Default Namespace URI:
        
        $ns = ['og' => $this->getNamespaceURI('og')];
        
        // Add Page Namespace URI:
        
        if ($type = $this->owner->getOGTypeNamespace()) {
            $ns[$type] = $this->getNamespaceURI($type);
        }
        
        // Build Prefix Array:
        
        $prefix = [];
        
        foreach (array_filter($ns) as $name => $uri) {
            $prefix[] = sprintf('%s: %s#', $name, $uri);
        }
        
        // Answer Prefix Attribute:
        
        return sprintf(' prefix="%s"', implode(' ', $prefix));
    }
497084
public function handleField(Field $field)
    {
        $prefix = $this->prefix . strtoupper($field->name);

        if (!isset($field->label)) {
            $field->label = $prefix . '_LABEL';
        }

        if (preg_match('~^([A-Z_]+)$~', $field->label, $match)) {
            $prefix = $match[1];
        }

        if (preg_match('~^([A-Z_]+?)_LABEL$~', $field->label, $match)) {
            $prefix = $match[1];
        }

        if (!isset($field->description)) {
            $field->description = $prefix . '_DESC';
        }

        if (preg_match('~^([A-Z_]+?)_DESC$~', $field->description, $match)) {
            $prefix = $match[1];
        }

        if (!isset($field->hint)) {
            $field->hint = $prefix . '_HINT';
        }

        if (!isset($field->role)) {
            if (isset($this->special[$field->name])) {
                $field->role = $this->special[$field->name];
            }
        }

        if (isset($field->role)) {
            $this->fieldAliases[$field->role] = $field->name;
        }

        $this->reflector->addField($field);
    }
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;
    }
1107443
protected function getClassNamePrefix()
    {
        $prefix = $this->input->getOption('prefix');

        if (empty($prefix)) {
            $prefix = $this->classNamePrefix;
        }

        return $prefix;
    }