Свойство | Тип | Описание | |
---|---|---|---|
$_MediaCache | array |
Метод | Описание | |
---|---|---|
__construct ( ) | Permission checks & property prep. | |
apcAvailable ( ) : boolean | ||
assetModel_styleCss_handler ( AssetModel $sender ) | Add our CSS. | |
base_transformDiscussionToComment_handler ( object $sender, array $args ) | Update Gdn_Media when a discussion is transformed into a comment due to a merge. | |
commentModel_deleteComment_handler ( CommentModel $Sender ) | ||
controller_delete ( $Sender ) | ||
discussionController_afterCommentBody_handler ( DiscussionController $Sender, $Args ) : void | ||
discussionController_afterDiscussionBody_handler ( DiscussionController $Sender ) | ||
discussionController_beforeFormButtons_handler ( DiscussionController $Sender ) | ||
discussionController_download_create ( DiscussionController $Sender ) | ||
discussionController_render_before ( DiscussionController $Sender ) | Calls FileUploadPlugin::PrepareController | |
discussionModel_deleteDiscussion_handler ( DiscussionModel $Sender ) | ||
drawAttachFile ( mixed $Sender ) | DrawAttachFile function. | |
findLocalMedia ( mixed $Media, $Absolute = false, $ReturnString = false ) : array | ||
findLocalMediaFolder ( mixed $MediaID, mixed $UserID, $Absolute = false, $ReturnString = false ) : array | ||
logModel_afterInsert_handler ( object $Sender, array $Args ) | Attach files to a log entry; used when new content is sent to moderation queue. | |
logModel_afterRestore_handler ( LogModel $Sender, array $Args ) | Attach files to record created by restoring a log entry. | |
mediaCache ( ) : array | null | Get our cache. | |
mediaModel ( ) : MediaModel | Get instance of MediaModel. | |
pluginController_fileUpload_create ( PluginController $Sender ) | ||
postController_afterBodyField_handler ( $sender ) | Add "Attach a file" to edit comment form. | |
postController_afterCommentBody_handler ( PostController $Sender ) : void | ||
postController_afterCommentSave_handler ( PostController $Sender, array $Args ) | Attach files to a comment during save. | |
postController_afterDiscussionFormOptions_handler ( PostController $Sender ) | Calls FileUploadPlugin::DrawAttachFile | |
postController_afterDiscussionSave_handler ( PostController $Sender, array $Args ) | Attach files to a discussion during save. | |
postController_checkUpload_create ( object $Sender ) | Controller method that allows an AJAX call to check the progress of a file upload that is currently in progress. | |
postController_render_before ( PostController $Sender ) | Calls FileUploadPlugin::PrepareController | |
postController_upload_create ( object $Sender ) | Allows plugin to handle ajax file uploads. | |
settingsController_addEditCategory_handler ( SettingsController $Sender ) | ||
setup ( ) | Run once on enable. | |
structure ( ) | Database update. | |
utilityController_thumbnail_create ( UtilityController $Sender, array $Args = [] ) | Create and display a thumbnail of an uploaded file. |
Метод | Описание | |
---|---|---|
attachAllFiles ( mixed $AttachedFilesData, mixed $AllFilesData, mixed $ForeignID, mixed $ForeignTable ) : void | AttachAllFiles function. | |
attachFile ( integer $FileID, integer $ForeignID, string $ForeignType ) : boolean | Attach a file to a foreign table and ID. | |
attachUploadsToComment ( Gdn_Controller $Controller, string $Type = 'comment' ) : void | ||
cacheAttachedMedia ( mixed $Sender ) : void | CacheAttachedMedia function. | |
placeMedia ( &$Media, mixed $UserID ) : boolean | ||
prepareController ( mixed $Controller ) | Adds CSS and JS includes to the header of the discussion or post. | |
trashFile ( integer $MediaID ) | Delete an uploaded file & its media record. |
public static apcAvailable ( ) : boolean | ||
Результат | boolean |
public assetModel_styleCss_handler ( AssetModel $sender ) | ||
$sender | AssetModel |
protected attachUploadsToComment ( Gdn_Controller $Controller, string $Type = 'comment' ) : void | ||
$Controller | Gdn_Controller | |
$Type | string | |
Результат | void |
public base_transformDiscussionToComment_handler ( object $sender, array $args ) | ||
$sender | object | Sending controller instance |
$args | array | Event's arguments |
protected cacheAttachedMedia ( mixed $Sender ) : void | ||
$Sender | mixed | |
Результат | void |
public commentModel_deleteComment_handler ( CommentModel $Sender ) | ||
$Sender | CommentModel |
public discussionController_afterCommentBody_handler ( DiscussionController $Sender, $Args ) : void | ||
$Sender | DiscussionController | |
Результат | void |
public discussionController_afterDiscussionBody_handler ( DiscussionController $Sender ) | ||
$Sender | DiscussionController |
public discussionController_beforeFormButtons_handler ( DiscussionController $Sender ) | ||
$Sender | DiscussionController |
public discussionController_download_create ( DiscussionController $Sender ) | ||
$Sender | DiscussionController |
public discussionController_render_before ( DiscussionController $Sender ) | ||
$Sender | DiscussionController | The hooked controller |
public discussionModel_deleteDiscussion_handler ( DiscussionModel $Sender ) | ||
$Sender | DiscussionModel |
public drawAttachFile ( mixed $Sender ) | ||
$Sender | mixed |
public static findLocalMedia ( mixed $Media, $Absolute = false, $ReturnString = false ) : array | ||
$Media | mixed | |
Результат | array |
public logModel_afterInsert_handler ( object $Sender, array $Args ) | ||
$Sender | object | |
$Args | array |
public logModel_afterRestore_handler ( LogModel $Sender, array $Args ) | ||
$Sender | LogModel | |
$Args | array |
public mediaCache ( ) : array | null | ||
Результат | array | null |
public mediaModel ( ) : MediaModel | ||
Результат | MediaModel | MediaModel |
protected placeMedia ( &$Media, mixed $UserID ) : boolean | ||
$UserID | mixed | |
Результат | boolean |
public pluginController_fileUpload_create ( PluginController $Sender ) | ||
$Sender | PluginController |
public postController_afterBodyField_handler ( $sender ) | ||
$sender |
public postController_afterCommentBody_handler ( PostController $Sender ) : void | ||
$Sender | PostController | |
Результат | void |
public postController_afterCommentSave_handler ( PostController $Sender, array $Args ) | ||
$Sender | PostController | |
$Args | array |
public postController_afterDiscussionFormOptions_handler ( PostController $Sender ) | ||
$Sender | PostController |
public postController_afterDiscussionSave_handler ( PostController $Sender, array $Args ) | ||
$Sender | PostController | |
$Args | array |
public postController_checkUpload_create ( object $Sender ) | ||
$Sender | object |
public postController_render_before ( PostController $Sender ) | ||
$Sender | PostController | The hooked controller |
public postController_upload_create ( object $Sender ) | ||
$Sender | object |
protected prepareController ( mixed $Controller ) | ||
$Controller | mixed | The hooked controller |
public settingsController_addEditCategory_handler ( SettingsController $Sender ) | ||
$Sender | SettingsController |
public utilityController_thumbnail_create ( UtilityController $Sender, array $Args = [] ) | ||
$Sender | UtilityController | |
$Args | array |