ApiPagesManager
class ApiPagesManager extends PageManager
Class ApiPagesManager manages the creating of new pages, updating pages
Properties
| array | $errors | Errors are kept in an array and can be used later if validation fails and we want to know why | from PageManager |
| string | $message | This is a message that we can store why the validation failed | from PageManager |
Methods
__construct(DvsPage $Page, PageVersionManager $PageVersionManager, PageVersionsRepository $PageVersionsRepository, FieldsRepository $FieldsRepository, FieldManager $FieldManager, Framework $Framework)
Construct a new page manager
from PageManager
bool
createNewPage(array $input)
Validates and creates a page with the given input
bool
updatePage(integer $id, array $input)
Validates and updates a page with the given input
from PageManager
DvsPage
copyPage(integer $fromPageId, array $input)
Takes the input provided and runs the create method after stripping necessary fields.
from PageManager
void
updatePageVersionDates(int $pageVersionId, array $input)
Updates the page version dates
from PageManager
Details
in PageManager at line 106
__construct(DvsPage $Page, PageVersionManager $PageVersionManager, PageVersionsRepository $PageVersionsRepository, FieldsRepository $FieldsRepository, FieldManager $FieldManager, Framework $Framework)
Construct a new page manager
at line 37
bool
createNewPage(array $input)
Validates and creates a page with the given input
in PageManager at line 151
bool
updatePage(integer $id, array $input)
Validates and updates a page with the given input
in PageManager at line 175
boolean
destroyPage(integer $id)
Destroys a page
in PageManager at line 191
DvsPage
copyPage(integer $fromPageId, array $input)
Takes the input provided and runs the create method after stripping necessary fields.
in PageManager at line 280
void
updatePageVersionDates(int $pageVersionId, array $input)
Updates the page version dates