Returns name of the first varchar field which could be used as a "label"

@access public
@return string
772643
function GetDescriptorName($remove_prefix = true)
	{
		foreach ($this->Columns as $column)
		{
			if ($column->Type == "varchar")
			{
				return ($remove_prefix) ? $this->RemovePrefix($column->Name) : $column->Name;
			}
		}

		// give up because there are no varchars in this table
		return $this->GetPrimaryKeyName($remove_prefix);
	}
289455
public function getSQLType()
    {
        $class = get_class($this);
        $start = strrpos($class, '\\') + 1;
        $len   = strlen($class) - $start - 4;

        return substr($class, strrpos($class, '\\') + 1, $len);
    }
144153
public function getFullName()
    {
        $fullName = $this->getFirstName() . ' ' . $this->getLastName();
        if (strlen(trim($fullName))) {
            return $fullName;
        }
        return $this->getDisplayName();
    }
988123
public function getName($ucfirst = false)
    {
        $value = $this->camelCase($this->name);
        if (true === $ucfirst) {
            return ucfirst($value);
        } else {
            return $value;
        }
    }
735775
public function getName()
    {
        $tableName = '';
        if ($this->hasSchema()) {
            $tableName = $this->guessSchemaName() . $this->database->getSchemaDelimiter();
        }

        $tableName .= $this->commonName;

        return $tableName;
    }
1221039
public function getFullName()
    {
        if ($this->firstName && $this->lastName) {
            return "{$this->firstName} {$this->lastName}";
        } elseif ($this->firstName) {
            return $this->firstName;
        } elseif ($this->lastName) {
            return $this->lastName;
        } else {
            return '';
        }
    }
968675
protected function firstLetter()
    {
        $string = trim((string) $this->getParameter('string'));
        $lower = (boolean) $this->getParameter('lower');
        return StringUtils::firstLetter($string, $lower);
    }
956444
protected function name()
	{
		$len = strcspn($this->data, "\x0A:", $this->position);
		if (isset($this->data[$this->position + $len]))
		{
			if ($this->data[$this->position + $len] === "\x0A")
			{
				$this->position += $len;
				$this->state = 'new_line';
			}
			else
			{
				$this->name = substr($this->data, $this->position, $len);
				$this->position += $len + 1;
				$this->state = 'value';
			}
		}
		else
		{
			$this->state = false;
		}
	}
862011
public function inputName()
    {
        if ($this->inputName) {
            $name = $this->inputName;
        } else {
            $name = $this->propertyIdent();
        }

        if ($this->p()->l10n()) {
            $name .= '['.$this->lang().']';
        }

        if ($this->multiple()) {
            $name .= '[]';
        }

        return $name;
    }
549541
protected function getLabel(): string
    {
        if ($this->label != null) {
            return $this->label;
        }

        if (isset($this->model->attributeLabels()[$this->name])) {
            return $this->model->attributeLabels()[$this->name];
        }

        return ucfirst($this->name);
    }
1073722
public function getName(){
		$result = null;
		if (isset($this->userInfo['first_name']) && isset($this->userInfo['last_name'])) {
			$result = $this->userInfo['first_name'] . ' ' . $this->userInfo['last_name'];
			}
		elseif (isset($this->userInfo['first_name']) && !isset($this->userInfo['last_name'])) {
			$result = $this->userInfo['first_name'];
			}
		elseif (!isset($this->userInfo['first_name']) && isset($this->userInfo['last_name'])) {
			$result = $this->userInfo['last_name'];
			}
		return $result;
		}
159326
public function fieldName()
    {
        if ($formatted = $this->formatFieldName($this->key)) {
            return $formatted;
        } elseif (strpos($this->key, '_id')) {
            return str_replace('_id', '', $this->key);
        } else {
            return $this->key;
        }
    }
722434
public function getName()
    {
        $nsClass = get_class($this);
        $nsClass = substr($nsClass, strrpos($nsClass, '\\') + 1);
        return $nsClass;
    }
742410
public function getUpdatedFieldName()
    {
        if (!isset($this->data['fields']) || empty($this->data['fields'])) {
            return false;
        }

        $table = $this->data['name'];
        foreach ($this->data['fields'] as $field) {
            if ($field['name'] === 'updated') {
                return $table . '_' . $field['name'];
            }
        }

        return false;
    }
446723
public function getName()
    {
        $label = $this->hasOption('title') ? $this->getOption('title') : $this->title;

        return ucwords(str_replace('_', ' ', $label));
    }
1022311
public function getLabelName()
    {
        if (is_null($this->_labelName)) {
            $this->_labelName = $this->name;
            $storage = $this->storage;
            if (!empty($storage)) {
                if (empty($this->_labelName)) {
                    $this->_labelName = $storage->file_name;
                } else {
                    $this->_labelName .= " ({$storage->file_name})";
                }
            }
        }

        return $this->_labelName;
    }
236600
protected function __getLabelMetaString()
    {
        $strOutput = "";

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

        return $strOutput;
    }