Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions
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:
Generated on Thu Nov 26 2020 07:10:57
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.