Define the name that can be used to identify this related object in a table-spanning query.

@return string
@author: Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com>
549674
public function getRelatedQueryName()
    {
        // we check if the queryname/ relatedName is set otherwise use we use the name of the model.
        if ($this->relation->relatedQueryName) {
            $name = $this->relation->relatedQueryName;
        } elseif ($this->relation->relatedName) {
            $name = $this->relation->relatedName;
        } else {
            $name = $this->scopeModel->getMeta()->getModelName();
        }

        return strtolower($name);
    }
1327776
final public function getTableName() {
        if ($this->_tableName !== null) return $this->_tableName;

        $exp = explode('\\', get_called_class());
        return \Util::camelTo_($exp[count($exp) - 1]);
    }
300257
public function getName()
    {
        if (!empty($this->nameSingular)) {
            return Piwik::translate($this->nameSingular);
        }

        return $this->nameSingular;
    }
629323
public function getEntityName()
    {

        // we got a entityname set already
        $tags = $this->getTags();

        if( isset( $tags['entity-name'] ) ) {
            return $tags['entity-name'];
        }

        $name = ucwords( $this->name );
        $name = \str_replace( '_', '', $name );

        return $name;

    }
277358
public function getName()
	{
		if (empty($this->name))
		{
			$reflect = new \ReflectionClass($this);

			$this->name = strtolower(str_replace('Driver', '', $reflect->getShortName()));
		}

		return $this->name;
	}
735775
public function getName()
    {
        $tableName = '';
        if ($this->hasSchema()) {
            $tableName = $this->guessSchemaName() . $this->database->getSchemaDelimiter();
        }

        $tableName .= $this->commonName;

        return $tableName;
    }
910448
public function getForeignTableName()
    {
        if ($this->foreignSchemaName && $this->getTable()->getDatabase()->getPlatform()->supportsSchemas()) {
            return $this->foreignSchemaName . '.' . $this->foreignTableCommonName;
        } else {
            return $this->foreignTableCommonName;
        }
    }
538169
public function getName()
    {
        $ref = new \ReflectionObject($this);
        $name = $ref->getNamespaceName();
        $name = rtrim($name, '\\');

        return str_replace('\\', '_', strtolower($name));
    }
923029
public function getBoundedName() {
    if ($this->alias) {
      return $this->alias->getText();
    }
    else {
      return $this->name->lastChild()->getText();
    }
  }
758104
public function getName()
    {
        if ($this->name === null) {
            $class = get_called_class();
            if (preg_match('/_+(.+)_+/', $class, $matches) > 0) {
                $this->name = $matches[1];
            } else {
                $this->name = '';
            }
        }

        return $this->name;
    }
822883
private function getMetaModelTableName()
    {
        $attribute = ((int) $this->mode === self::MODE_SINGLE) ? $this->singleAttribute : $this->latitudeAttribute;

        return $attribute
            ->getMetaModel()
            ->getTableName();
    }
722434
public function getName()
    {
        $nsClass = get_class($this);
        $nsClass = substr($nsClass, strrpos($nsClass, '\\') + 1);
        return $nsClass;
    }
624718
private function getStdSeparatedName()
	{
		if ($this->schema && $this->getBuildProperty('schemaAutoPrefix')) {
			return $this->schema . NameGenerator::STD_SEPARATOR_CHAR . $this->getCommonName();
		} else {
			return $this->getCommonName();
		}
	}
672466
public function displayName()
    {
        if ($this->displayName) {
            $name = $this->displayName;
        } else {
            $name = $this->propertyIdent();
        }

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

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

        return $name;
    }
319890
public function name()
    {
        $atoms = $this->atoms();
        $numAtoms = count($atoms);

        if ($numAtoms > 0) {
            return $atoms[$numAtoms - 1];
        }

        return '';
    }
290932
protected function getEntityName()
    {
        if ($this->entityName === null) {
            $name = $this->entityClass;

            if (false !== $pos = strrpos($name, '\\')) {
                $name = substr($name, $pos + 1);
            }
            $name = strtolower(preg_replace('/([^A-Z])([A-Z])/', "$1_$2", $name));
            $name = str_replace('-', '_', $name);
            $this->entityName = $name;
        }

        return $this->entityName;
    }
903561
public function getPrimaryKeyName()
    {
        if ($this->primaryKey == null) {
            $model = $this->getModel();
            $this->primaryKey = $model->getPrimaryKeyName();
        }
        return $this->primaryKey;
    }