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

FileModelUtil Class Reference

Static Public Member Functions

static makeByFilePathAndName ($filePath, $fileName)
static makeByUploadedFile ($uploadedFile)
static resolveModelsHasManyFilesFromPost (&$model, $relationName, $postDataVariableName)
static makeByExistingFileModelId ($fileModelId, $sharedContent=true)
static makeByFileModel ($existingFileModel, $sharedContent=true)

Detailed Description

Model to handle file attachments. This model stores name, type, and size information. It has a related FileContent model that has the actual file content.

Definition at line 41 of file FileModelUtil.php.


Member Function Documentation

static makeByFilePathAndName ( filePath,
fileName 
) [static]
Parameters:
string $filePath
string $fileName
Returns:
$fileModel or false on failure

Definition at line 49 of file FileModelUtil.php.

static makeByUploadedFile ( uploadedFile  )  [static]

Given an instance of a CUploadedFile, make a FileModel, save it, and return it. If the file is empty, an exception is thrown otherwise the fileModel is returned.

Parameters:
object $uploadedFile CUploadedFile

Definition at line 77 of file FileModelUtil.php.

static resolveModelsHasManyFilesFromPost ( &$  model,
relationName,
postDataVariableName 
) [static]
Parameters:
$model 
$relationName 
$postDataVariableName 

Definition at line 99 of file FileModelUtil.php.

static makeByExistingFileModelId ( fileModelId,
sharedContent = true 
) [static]
Parameters:
integer $fileModelId
bool $sharedContent
Returns:
$fileModel or false on failure

Definition at line 146 of file FileModelUtil.php.

static makeByFileModel ( existingFileModel,
sharedContent = true 
) [static]
Parameters:
FileModel $existingFileModel
bool $sharedContent
Returns:
$fileModel or false on failure

Definition at line 159 of file FileModelUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jan 21 07:10:23 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