common/models/entities/User.php
public function getName() {

		$name = $this->getFullName();

		if( empty( $name ) ) {

			$name	= $this->username;

			if( empty( $name ) ) {

				$name	= preg_split( '/@/', $this->email );
				$name	= $name[ 0 ];
			}
		}

		return $name;
	}
public function getName() {

		$name = $this->getFullName();

		if( empty( $name ) ) {

			$name	= $this->username;

			if( empty( $name ) ) {

				$name	= preg_split( '/@/', $this->email );
				$name	= $name[ 0 ];
			}
		}

		return $name;
	}
public function getName ( ) { $ name = $ this -> getFullName ( ) ; if ( empty ( $ name ) ) { $ name = $ this -> username ; if ( empty ( $ name ) ) { $ name = preg_split ( '/@/' , $ this -> email ) ; $ name = $ name [ 0 ] ; } } return $ name ; }
Returns name of user using first name, middle name and last name.

It returns username or user id of email in case name is not set for the user.

@return string
Returns name of user using first name middle name and last name .