FileModelDisplayUtil Class Reference

Static Public Member Functions

static convertSizeToHumanReadableAndGet ($size)
static renderDownloadLinkContentByRelationModelAndFileModel ($model, $fileModel)
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 renderFileDataDetailsWithDownloadLinksContent ( model,
filesRelationName,
showHeaderLabel = false 
) [static]
Parameters:
$model 
string $filesRelationName
bool $showHeaderLabel
Returns:
null|string

Definition at line 95 of file FileModelDisplayUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Jul 23 07:10:26 2017