PageEditFileInterface
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
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
at line 42
string
getImagesFolder()
Returns the images folder
at line 48
Finder
getPages()
Gets all available pages
at line 54
string
getPagesFolder()
Returns the pages folder
at line 60
string
getPath(string $page)
Returns file path
at line 66
array
getSkeletonStartEnd()
Gets the start and end of the skeleton
at line 71
redirect(string $page, string $slug)
Creates the redirection file
at line 76
write(string $slug, Form $form, object $user)
Writes file (+ archive old file)