Document
class Document extends Helper
Class Document
Constants
| VERSION |
Version path on server |
| UPLOAD_DIR |
Upload directory in server |
Properties
| protected string | $name | File name | |
| protected string | $filePath | File path on server | |
| protected float | $fileSize | File size |
Methods
No description
No description
Get file absolute path on server
Get full web path for file on server
Get thumbnail path on server
Get folder by date
Get rid of the DIR so it doesn't screw up when displaying uploaded doc/image inklimacold. the view.
Get upload root dir full path on server
Get web directory on server
Get main blob directory for uploaded blob files
Get server path
Save base64 to file
Save blob object to file
Upload language file from base64 string
Set file name if file exists give it random name
No description
Get language translations root dir
Get temporary directory
No description
Check if is excel
Get language file path
Get peak memory in megabytes
Return file size
Get absolute path with version
Get absolute path without name
No description
No description
set file size
No description
No description
Upload file
Delete unused blob files
No description
Remove old files
A method that creates the appropriate day folder for every image uploaded
Create project folder if it does not exist
Details
in Helper at line 32
bool|string
image_resize(string $src, string $dst, int $width, int $height, int $crop = 0)
at line 78
mixed
getName()
at line 88
Document
setName(String $name)
at line 101
null|string
getAbsolutePath()
Get file absolute path on server
at line 116
null|string
getWebPath()
Get full web path for file on server
at line 131
null|string
getThumbPath()
Get thumbnail path on server
at line 145
string
getDayFolder()
Get folder by date
at line 155
string
getUploadDir()
Get rid of the DIR so it doesn't screw up when displaying uploaded doc/image inklimacold. the view.
at line 167
string
getUploadRootDir()
Get upload root dir full path on server
at line 177
static string
getWebDir()
Get web directory on server
at line 189
static string
getMainBlobDirectoryForUpload()
Get main blob directory for uploaded blob files
at line 201
string
getServer(bool $override = false)
Get server path
at line 235
false|int
saveToFile(string $base64String, null $imageCode = null)
Save base64 to file
at line 265
bool|int
saveBlobToFile(mixed $blob)
Save blob object to file
at line 284
false|int
uploadLanguageFileYML(string $base64String)
Upload language file from base64 string
at line 313
setFileName(int $size, string $extension)
Set file name if file exists give it random name
at line 332
string
createThumbnail(int $size, string $extension, array $data, string $type)
at line 400
string
getLanguageRootDir()
Get language translations root dir
at line 410
string
getTmpDir()
Get temporary directory
at line 424
int
uploadLanguageFile(string $locale, string $base64String)
at line 467
bool
is_excel(String $extension)
Check if is excel
at line 479
string
getLanguageFilePath()
Get language file path
at line 489
float
getPeakMemoryInMegabytes()
Get peak memory in megabytes
at line 501
int
returnFileSize()
Return file size
at line 512
null|string
getAbsolutePathWithVersion()
Get absolute path with version
at line 524
null|string
getAbsolutePathWithoutName()
Get absolute path without name
at line 534
float
getFileSize()
at line 542
setFileSize(float $fileSize)
at line 550
updateFileSize()
set file size
at line 558
deleteFile()
at line 568
deleteLanguageFile()
at line 584
static File
uploadFile(UploadedFile $uploadedFile, string $uploadDir, null $prefix = null)
Upload file
at line 609
static
deleteUnusedBlobFiles(array $links, string $htmlString)
Delete unused blob files
at line 655
static
deleteUnusedBlockElementsImages(array $mediaLinks, string $htmlString)
at line 701
static
removeOldFiles(string $uploadDir, string $format = 'Y-m-d-h')
Remove old files
at line 721
protected string
createFolder()
A method that creates the appropriate day folder for every image uploaded
at line 750
protected string
createProFolder()
Create project folder if it does not exist