Method |
Description |
|
__construct ( string $basepath = null, string $baseurl = null, null $Config = null ) |
Create a new Media Path Helper
the purpose of this class is to determine
paths for media (and versions of media) |
|
basePath ( ) : string |
Gets the basepath for us |
|
downloadFromUrl ( $path, $newFilePath = null ) : string |
Downloads the image so that we can re-use it
later and crop it and resize it accordingly |
|
fileExists ( $mediapath ) : boolean |
Check to see if a file exists or not |
|
fileVersionInfo ( $filePath ) : stdClass |
Gets the versioned path to this file |
|
fileVersionInfoFromUrl ( $url ) : stdClass |
Gets the versioned path to this $url path |
|
imageCaptionPath ( $imagePath ) : string |
Get caption path from image path |
|
isUrlPath ( $url ) : boolean |
Returns true or false depending on if this is
an image url or not |
|
makeRelativePath ( $path ) : string |
Make this path relative to public directory |
|
touch ( $mediapath ) |
Create an empty file in this location |
|
zencoderUrl ( $filename ) : string |
Returns the zencoder url for this filename |
|