interface PageEditFileInterface

Interface to be called for DI for PageEdit File related services

Methods

archive(string $page, object $user)

Archives file

createFolders()

Creates the folders needed by PageEditBundle

delete(string $page, bool $archive)

Moves the page to the deleted folder

string
getImagesFolder()

Returns the images folder

Finder
getPages()

Gets all available pages

string
getPagesFolder()

Returns the pages folder

string
getPath(string $page)

Returns file path

array
getSkeletonStartEnd()

Gets the start and end of the skeleton

redirect(string $page, string $slug)

Creates the redirection file

write(string $slug, Form $form, object $user)

Writes file (+ archive old file)

Details

at line 26
archive(string $page, object $user)

Archives file

Parameters

string $page
object $user

at line 31
createFolders()

Creates the folders needed by PageEditBundle

at line 36
delete(string $page, bool $archive)

Moves the page to the deleted folder

Parameters

string $page
bool $archive

at line 42
string getImagesFolder()

Returns the images folder

Return Value

string

at line 48
Finder getPages()

Gets all available pages

Return Value

Finder

at line 54
string getPagesFolder()

Returns the pages folder

Return Value

string

at line 60
string getPath(string $page)

Returns file path

Parameters

string $page

Return Value

string

at line 66
array getSkeletonStartEnd()

Gets the start and end of the skeleton

Return Value

array

at line 71
redirect(string $page, string $slug)

Creates the redirection file

Parameters

string $page
string $slug

at line 76
write(string $slug, Form $form, object $user)

Writes file (+ archive old file)

Parameters

string $slug
Form $form
object $user