메소드 |
설명 |
|
__construct ( ) |
MediaModel constructor. |
|
delete ( array $Media = [], array | boolean $Options = [] ) |
|
|
deleteParent ( $ParentTable, $ParentID ) |
|
|
getID ( integer $MediaID, boolean $DatasetType = false, array $Options = [] ) : array | false |
Get a media row by ID. |
|
getImageSize ( string $Path ) : array |
If passed path leads to an image, return size |
|
pathUploads ( ) : string |
Return path to upload folder. |
|
preloadDiscussionMedia ( $DiscussionID, $CommentIDList ) : Gdn_DataSet |
|
|
reassign ( integer $ForeignID, string $ForeignTable, $NewForeignID, $NewForeignTable ) : object |
Retrieve all media for a foreign record. |
|
thumbnailHeight ( ) : boolean | mixed |
|
|
thumbnailUrl ( &$Media ) : mixed | string |
|
|
thumbnailWidth ( ) : boolean | mixed |
|
|
url ( $Media ) : mixed | string |
|
|