common/models/resources/File.php
public function getFileUrl() {

		if( $this->changed ) {

			return Yii::$app->fileManager->uploadUrl . '/' . CoreProperties::DIR_TEMP . $this->directory . "/" . $this->name . "." . $this->extension;
		}
		else if( $this->id > 0 ) {

			return Yii::$app->fileManager->uploadUrl . '/' . $this->url;
		}

		return "";
	}
public function getFileUrl() {

		if( $this->changed ) {

			return Yii::$app->fileManager->uploadUrl . '/' . CoreProperties::DIR_TEMP . $this->directory . "/" . $this->name . "." . $this->extension;
		}
		else if( $this->id > 0 ) {

			return Yii::$app->fileManager->uploadUrl . '/' . $this->url;
		}

		return "";
	}
public function getFileUrl ( ) { if ( $ this -> changed ) { return Yii :: $ app -> fileManager -> uploadUrl . '/' . CoreProperties :: DIR_TEMP . $ this -> directory . "/" . $ this -> name . "." . $ this -> extension ; } else if ( $ this -> id > 0 ) { return Yii :: $ app -> fileManager -> uploadUrl . '/' . $ this -> url ; } return "" ; }
Generate and Return file URL using file attributes.

@return string
Generate and Return file URL using file attributes .