$description
$description : string
The description stored on the new File record
This class handles File-based interactions.
$mp : \Blackpulp\MinistryPlatform\MinistryPlatform
An instance of MinistryPlatform
__construct(string $file_name, string $temp_name, string $description, integer $page_id, integer $record_id, boolean $is_image, integer $pixels, \Blackpulp\MinistryPlatform\MinistryPlatform $mp = null)
Initialize a File object.
string | $file_name | The name of the file as it will be saved into MinistryPlatform. |
string | $temp_name | The absolute physical path of the temp file's name. |
string | $description | A description of the file. |
integer | $page_id | The Page_ID value of the Record's Table in MinistryPlatform. |
integer | $record_id | The ID of the Record the file will be attached to in MinistryPlatform. |
boolean | $is_image | Simple boolean to determine whether the file is an image. |
integer | $pixels | Number of pixels to resize the longest side of an image. Use 0 to retain the original dimensions. |
\Blackpulp\MinistryPlatform\MinistryPlatform | $mp |