Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\Hooks\FileUpload Class Reference
Inheritance diagram for SMW\MediaWiki\Hooks\FileUpload:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Hooks\FileUpload:
Collaboration graph
[legend]

Public Member Functions

 __construct (NamespaceExaminer $namespaceExaminer)
 
 process (File $file, $reUploadStatus=false)
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ()
 
 setOptions (array $options)
 
 setOption ( $key, $value)
 
 getOption ( $key, $default=null)
 
 isFlagSet ( $key, $flag)
 

Additional Inherited Members

- Protected Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 log ( $message, $context=[])
 

Detailed Description

Fires when a local file upload occurs

See also
https://www.mediawiki.org/wiki/Manual:Hooks/FileUpload

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Hooks\FileUpload::__construct ( NamespaceExaminer  $namespaceExaminer)
Since
1.9
Parameters
NamespaceExaminer$namespaceExaminer

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\FileUpload::process ( File  $file,
  $reUploadStatus = false 
)
Since
3.0
Parameters
File$file
boolean$reUploadStatus
Returns
true

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy