public function getImagePath($ImageManager_id, $width = 400, $height = 400, $thumbnailMode = "outbound") {
		//default return
		$return = null;
		$mImageManager = ImageManager::findOne($ImageManager_id);

		//check if not empty
		if ($mImageManager !== null) {

			$sMediaPath = null;
			if ($this->mediaPath !== null) {
				$sMediaPath = $this->mediaPath;
			}

			$sFileExtension = pathinfo($mImageManager->fileName, PATHINFO_EXTENSION);
			//get image file path
			$sImageFilePath = $sMediaPath . '/' . $mImageManager->id . '_' . $mImageManager->fileHash . '.' . $sFileExtension;
			//check file exists
			if (file_exists($sImageFilePath)) {
				$return = \Yii::$app->imageresize->getUrl($sImageFilePath, $width, $height, $thumbnailMode, null, $mImageManager->fileName);
			} else {
				$return = null; //isset(\Yii::$app->controller->module->assetPublishedUrl) ? \Yii::$app->controller->module->assetPublishedUrl. "/img/img_no-image.png" : null;
			}
		}
		return $return;
	}
public function getImagePath($ImageManager_id, $width = 400, $height = 400, $thumbnailMode = "outbound") {
		//default return
		$return = null;
		$mImageManager = ImageManager::findOne($ImageManager_id);

		//check if not empty
		if ($mImageManager !== null) {

			$sMediaPath = null;
			if ($this->mediaPath !== null) {
				$sMediaPath = $this->mediaPath;
			}

			$sFileExtension = pathinfo($mImageManager->fileName, PATHINFO_EXTENSION);
			//get image file path
			$sImageFilePath = $sMediaPath . '/' . $mImageManager->id . '_' . $mImageManager->fileHash . '.' . $sFileExtension;
			//check file exists
			if (file_exists($sImageFilePath)) {
				$return = \Yii::$app->imageresize->getUrl($sImageFilePath, $width, $height, $thumbnailMode, null, $mImageManager->fileName);
			} else {
				$return = null; //isset(\Yii::$app->controller->module->assetPublishedUrl) ? \Yii::$app->controller->module->assetPublishedUrl. "/img/img_no-image.png" : null;
			}
		}
		return $return;
	}
public function getImagePath ( $ ImageManager_id , $ width = 400 , $ height = 400 , $ thumbnailMode = "outbound" ) { //default return
 $ return = null ; $ mImageManager = ImageManager :: findOne ( $ ImageManager_id ) ; //check if not empty
 if ( $ mImageManager !== null ) { $ sMediaPath = null ; if ( $ this -> mediaPath !== null ) { $ sMediaPath = $ this -> mediaPath ; } $ sFileExtension = pathinfo ( $ mImageManager -> fileName , PATHINFO_EXTENSION ) ; //get image file path
 $ sImageFilePath = $ sMediaPath . '/' . $ mImageManager -> id . '_' . $ mImageManager -> fileHash . '.' . $ sFileExtension ; //check file exists
 if ( file_exists ( $ sImageFilePath ) ) { $ return = \ Yii :: $ app -> imageresize -> getUrl ( $ sImageFilePath , $ width , $ height , $ thumbnailMode , null , $ mImageManager -> fileName ) ; } else { $ return = null ; //isset(\Yii::$app->controller->module->assetPublishedUrl) ? \Yii::$app->controller->module->assetPublishedUrl. "/img/img_no-image.png" : null;
 } } return $ return ; }
Get the path for the given ImageManager_id record
@param int $ImageManager_id ImageManager record for which the path needs to be generated
@param int $width Thumbnail image width
@param int $height Thumbnail image height
@param string $thumbnailMode Thumbnail mode
@return null|string Full path is returned when image is found, null if no image could be found
Get the path for the given ImageManager_id record