Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

FileModelDisplayUtil Class Reference

Static Public Member Functions

static convertSizeToHumanReadableAndGet ($size)
static renderDownloadLinkContentByRelationModelAndFileModel ($model, $fileModel)
static resolveDownloadUrlByRelationModelIdAndRelationModelClassNameAndFileIdAndFileName ($modelId, $modelClass, $fileId)
static renderFileDataDetailsWithDownloadLinksContent ($model, $filesRelationName, $showHeaderLabel=false)

Detailed Description

Helper class to help with user interface manipulation for FileModel related actions.

Definition at line 40 of file FileModelDisplayUtil.php.


Member Function Documentation

static convertSizeToHumanReadableAndGet ( size  )  [static]

Given a file size in bytes, convert to a human readable form.

Parameters:
integer $size
Returns:
string $content

Definition at line 47 of file FileModelDisplayUtil.php.

static renderDownloadLinkContentByRelationModelAndFileModel ( model,
fileModel 
) [static]
Parameters:
$model 
$fileModel 
Returns:
string

Definition at line 73 of file FileModelDisplayUtil.php.

static resolveDownloadUrlByRelationModelIdAndRelationModelClassNameAndFileIdAndFileName ( modelId,
modelClass,
fileId 
) [static]
Parameters:
$modelId 
$modelClass 
$fileId 
Returns:
mixed

Definition at line 93 of file FileModelDisplayUtil.php.

static renderFileDataDetailsWithDownloadLinksContent ( model,
filesRelationName,
showHeaderLabel = false 
) [static]
Parameters:
$model 
string $filesRelationName
bool $showHeaderLabel
Returns:
null|string

Definition at line 106 of file FileModelDisplayUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Jun 19 07:11:01 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8