Set display name

@param   array   $displayName
@return  \Grid\Core\Model\Package\Structure
183602
public function setDisplayName( $displayName )
    {
        if ( empty( $displayName ) )
        {
            $displayName = array();
        }
        else if ( $displayName instanceof Traversable )
        {
            $displayName = ArrayUtils::iteratorToArray( $displayName );
        }
        else if ( ! is_array( $displayName ) )
        {
            $displayName = (array) $displayName;
        }

        if ( ! isset( $displayName[static::FALLBACK_LOCALE] ) )
        {
            reset( $displayName );
            $key = key( $displayName );
            $displayName[static::FALLBACK_LOCALE] = $displayName[$key];
            unset( $displayName[$key] );
        }

        $this->displayName = $displayName;
        return $this;
    }
572116
public function setTableName($tableName)
    {
        if (trim($tableName) == '') {
            $tableName = null;
        }
        $this->tableName = $tableName;

        return $this;
    }
93144
public function setProjectName($projectName)
    {
        if ($projectName === null) {
            $this->projectName = null;
            return $this;
        }
        if (!is_string($projectName)) {
            throw new InvalidArgumentException(
                'Project name must be a string'
            );
        }

        $this->projectName = $projectName;
        return $this;
    }
980570
func (s *UpdateUserProfileOutput) SetDisplayName(v string) *UpdateUserProfileOutput {
	s.DisplayName = &v
	return s
}
770428
public function setFirstname($firstname)
    {
        if (!is_string($firstname) && !is_null($firstname)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a string');
        }

        $this->firstname = $firstname;

        return $this;
    }
483965
public function setName($name)
    {
        if (is_scalar($name) || method_exists($name, '__toString')) {
            $this->name = (string) $name;
        } else {
            throw new InvalidArgumentException('The name must be a string.');
        }

        if ($this->name === '') {
            $this->name = 'Error';
        }

        return $this;
    }
424680
func (s *S3Grantee) SetDisplayName(v string) *S3Grantee {
	s.DisplayName = &v
	return s
}
209068
func (s *CreateContactInput) SetDisplayName(v string) *CreateContactInput {
	s.DisplayName = &v
	return s
}
282047
function getFirstName($displayname=null) {
        if ( $displayname === null ) $displayname = $this->getNameAndEmail();
        if ( $displayname === null ) return null;
        $pieces = explode(' ',$displayname);
        if ( count($pieces) > 0 ) return $pieces[0];
        return null;
    }
741997
public function setTableName($tableName) {
        $this->query = str_replace($this->tableName, $tableName, $this->query);
        $this->dummyQuery = str_replace($this->tableName, $tableName, $this->dummyQuery);
        $this->tableName = $tableName;
        return $this;
    }
157018
public function setProductName($productName) {
        if (empty($productName))
            throw new Exception('Product name must be set and cannot be empty.');

        $this->productName = trim($productName);

        return $this;
    }
1317632
private function setTopicName(string $topicName): self
    {
        $this->generalRulesCheck($topicName);

        // A topic name has some additional checks, as no wildcard characters are allowed
        if (strpbrk($topicName, '#+') !== false) {
            throw new \InvalidArgumentException('Topic names can not contain wildcard characters');
        }

        $this->topicName = $topicName;
        return $this;
    }
1362339
public function setDisplayName($username, $display) {
		// Make sure we're logged in and have a valid access token.
		if (!$this->auth_token || !$this->username) {
			return FALSE;
		}

		$timestamp = parent::timestamp();
		$result = parent::post(
			'/friend',
			array(
				'action' => 'display',
				'display' => $display,
				'friend' => $username,
				'timestamp' => $timestamp,
				'username' => $this->username,
			),
			array(
				$this->auth_token,
				$timestamp,
			)
		);

		return !empty($result->message);
	}
999929
func (s *Grantee) SetDisplayName(v string) *Grantee {
	s.DisplayName = &v
	return s
}
1214961
func (s *Application) SetDisplayName(v string) *Application {
	s.DisplayName = &v
	return s
}
1367985
func (s *ImageBuilder) SetDisplayName(v string) *ImageBuilder {
	s.DisplayName = &v
	return s
}
1007235
public function setName($name)
    {
        $this->name = $name;

        $this->model()->setPerPageName("{$name}_{$this->model()->getPerPageName()}");

        $this->getFilter()->setName($name);

        return $this;
    }