CoolCMS API

File
in package

Table of Contents

Properties

$content  : string
$contentType  : string|null
$fileName  : string
$filePath  : string

Methods

__construct()  : mixed
getContent()  : string
getContentType()  : string|null
getFileName()  : string
getFilePath()  : string
loadFile()  : $this
setContent()  : $this
setContentType()  : $this
setFileName()  : $this
setFilePath()  : $this

Properties

$content

private string $content = ''

$contentType

private string|null $contentType = null

$fileName

private string $fileName = ''

$filePath

private string $filePath = ''

Methods

__construct()

public __construct([string $fileName = '' ][, string $filePath = '' ][, string|null $contentType = null ]) : mixed
Parameters
$fileName : string = ''
$filePath : string = ''
$contentType : string|null = null

getContent()

public getContent() : string
Return values
string

getContentType()

public getContentType() : string|null
Return values
string|null

getFileName()

public getFileName() : string
Return values
string

getFilePath()

public getFilePath() : string
Return values
string

loadFile()

public loadFile(string $filePath) : $this
Parameters
$filePath : string
Return values
$this

setContent()

public setContent(string $content) : $this
Parameters
$content : string
Return values
$this

setContentType()

public setContentType(string|null $contentType) : $this
Parameters
$contentType : string|null
Return values
$this

setFileName()

public setFileName(string $fileName) : $this
Parameters
$fileName : string
Return values
$this

setFilePath()

public setFilePath(string $filePath) : $this
Parameters
$filePath : string
Return values
$this
On this page

Search results