AttributeValue::getFilePath PHP Method

getFilePath() public method

public getFilePath ( ) : null | string
return null | string
    public function getFilePath()
    {
        if (!$this->attribute->isType(Attribute::TYPE_FILE)) {
            return null;
        }
        $file = Yii::app()->getBasePath() . '/' . Yii::app()->getModule('yupe')->uploadPath . '/' . Yii::app()->getModule('store')->uploadPath . '/product/' . $this->value();
        return \yupe\helpers\YFile::rmFile($file);
    }