PageEditFile
class PageEditFile implements PageEditFileInterface
Services related to PageEdit File
Properties
private AuthorizationCheckerInterface | $authChecker | Stores AuthorizationCheckerInterface | |
private ContainerInterface | $configService | Stores ContainerInterface | |
private ConfigServiceInterface | $container | Stores ConfigServiceInterface | |
private Pdf | $knpSnappyPdf | Stores Pdf | |
private PageEditFormFactoryInterface | $pageEditFormFactory | Stores PageEditFormFactoryInterface | |
private Request | $request | Stores current Request | |
private Environment | $environment | Stores Environment |
Methods
__construct(AuthorizationCheckerInterface $authChecker, ConfigServiceInterface $configService, ContainerInterface $container, Pdf $knpSnappyPdf, PageEditFormFactoryInterface $pageEditFormFactory, RequestStack $requestStack, Environment $environment)
No description
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 75
__construct(AuthorizationCheckerInterface $authChecker, ConfigServiceInterface $configService, ContainerInterface $container, Pdf $knpSnappyPdf, PageEditFormFactoryInterface $pageEditFormFactory, RequestStack $requestStack, Environment $environment)
at line 97
archive(string $page, object $user)
Archives file
at line 118
createFolders()
Creates the folders needed by PageEditBundle
at line 139
delete(string $page, bool $archive)
Moves the page to the deleted folder
at line 167
string
getImagesFolder()
Returns the images folder
at line 191
Finder
getPages()
Gets all available pages
at line 230
string
getPagesFolder()
Returns the pages folder
at line 254
string
getPath(string $page)
Returns file path
at line 280
array
getSkeletonStartEnd()
Gets the start and end of the skeleton
at line 299
redirect(string $page, string $slug)
Creates the redirection file
at line 312
write(string $slug, Form $form, object $user)
Writes file (+ archive old file)