Method |
Description |
|
__construct ( $p_config ) |
Constructor. Create a new Attachment Manager instance. |
|
countFiles ( $path ) |
Count the number of files and directories in a given folder
minus the thumbnail folders and thumbnails. |
|
getBaseDir ( ) : string |
Get the base directory. |
|
getBaseURL ( ) : string |
Get the base URL. |
|
getDefaultThumb ( ) : string |
Get the default thumbnail. |
|
getFileURL ( string $relative ) : string |
Get the URL of the relative file. |
|
getFiles ( string $p_articleId, $p_languageId = null ) : array |
Get all the files and directories of a relative path. |
|
getFiles ( string $p_articleId, $p_languageId = null, $p_filter = true ) : array |
Get all the files and directories of a relative path. |
|
getFullPath ( string $relative ) : string |
Get the fullpath to a relative file. |
|
isTmpFile ( string $file ) : boolean |
Check if the given file is a tmp file. |
|
isValidBase ( ) |
|
|
validRelativePath ( string $path ) : boolean |
Check if the given path is part of the subdirectories
under the base_dir. |
|