Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Elastic\Indexer\Attachment\FileHandler Class Reference

Public Member Functions

 __construct (FileRepoFinder $fileRepoFinder)
 
 setReadCallback (callable $readCallback)
 
 findFileByTitle (Title $title)
 
 fetchContentFromURL (string $url)
 
 format (string $contents, string $type='')
 

Public Attributes

const FORMAT_BASE64 = 'format/base64'
 

Detailed Description

GNU GPL v2+

Since
3.2
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\Indexer\Attachment\FileHandler::__construct ( FileRepoFinder  $fileRepoFinder)
Since
3.2
Parameters
FileRepoFinder$fileRepoFinder

Member Function Documentation

◆ fetchContentFromURL()

SMW\Elastic\Indexer\Attachment\FileHandler::fetchContentFromURL ( string  $url)
Since
3.2
Parameters
string$url
Returns
string

◆ findFileByTitle()

SMW\Elastic\Indexer\Attachment\FileHandler::findFileByTitle ( Title  $title)
Since
3.2
Parameters
Title$title
Returns
string

◆ format()

SMW\Elastic\Indexer\Attachment\FileHandler::format ( string  $contents,
string  $type = '' 
)
Since
3.2
Parameters
string$contents
string$type
Returns
string

◆ setReadCallback()

SMW\Elastic\Indexer\Attachment\FileHandler::setReadCallback ( callable  $readCallback)
Since
3.2
Parameters
callable$readCallback

Member Data Documentation

◆ FORMAT_BASE64

const SMW\Elastic\Indexer\Attachment\FileHandler::FORMAT_BASE64 = 'format/base64'

Transform the content to base64


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

About | General disclaimer | Privacy policy