private function getFileSrc($file, $relation, $type = null)
    {
        $id = is_null($relation) ? $this->id : $this->$relation;
        $src  = $this->options['path']."/{$id}/";
        if (is_null($type)) {
            return $src . $file;
        }
        $src .= $type === 'original' ? "original/{$file}" : "thumbnails/{$type}_{$file}";
        return $src;
    }
private function getFileSrc($file, $relation, $type = null)
    {
        $id = is_null($relation) ? $this->id : $this->$relation;
        $src  = $this->options['path']."/{$id}/";
        if (is_null($type)) {
            return $src . $file;
        }
        $src .= $type === 'original' ? "original/{$file}" : "thumbnails/{$type}_{$file}";
        return $src;
    }
private function getFileSrc ( $ file , $ relation , $ type = null ) { $ id = is_null ( $ relation ) ? $ this -> id : $ this -> $ relation ; $ src = $ this -> options [ 'path' ] . "/{$id}/" ; if ( is_null ( $ type ) ) { return $ src . $ file ; } $ src .= $ type === 'original' ? "original/{$file}" : "thumbnails/{$type}_{$file}" ; return $ src ; }
get the file src

@param string $file
@param string|null $relation
@param string|null $type
@return string
get the file src