\Phile\ModelPage

the Model class for a page

Summary

Methods
Properties
Constants
__construct()
getContent()
setContent()
getMeta()
getTitle()
getUrl()
setFilePath()
getFilePath()
No public properties found
No constants found
parseRawData()
$meta
$content
$filePath
$rawData
$parser
$url
N/A
No private methods found
No private properties found
N/A

Properties

$content

$content : string

Type

string — the content

$filePath

$filePath : string

Type

string — the path to the original file

$rawData

$rawData : string

Type

string — the raw file

$url

$url : string

Type

string — returns the path of the page

Methods

__construct()

__construct(mixed $filePath, string $folder)

the constructor

Parameters

mixed $filePath
string $folder

getContent()

getContent() : mixed

method to get content of page, this method returned the parsed content

Returns

mixed

setContent()

setContent(mixed $content)

set content of page

Parameters

mixed $content

getMeta()

getMeta() : \Phile\Model\Meta

get the meta model

Returns

\Phile\Model\Meta

getTitle()

getTitle() : string|null

get the title of page from meta information

Returns

string|null

getUrl()

getUrl() : string

get the url of page

Returns

string

setFilePath()

setFilePath(string $filePath)

set the filepath of the page

Parameters

string $filePath

getFilePath()

getFilePath() : string

get the filepath of the page

Returns

string

parseRawData()

parseRawData()

parse the raw content