Method | Description | |
---|---|---|
all ( array $params = [] ) : |
Get all pages. | |
clonePage ( integer $page_id ) : |
Clone the page. | |
create ( array $params ) : |
Create a new page. | |
delete ( integer $page_id ) : |
Delete a page. | |
getAutoSaveBufferContents ( integer $page_id ) : |
Gets the current contents of the auto-save buffer. | |
getById ( integer $page_id ) : |
Get a specific page. | |
hasBufferedChanges ( integer $page_id ) : |
Determine if the auto-save buffer differs from the live page. | |
publishAction ( integer $page_id, string $action ) : |
Either publishes or cancels publishing based on the POSTed JSON. | |
pushBufferLive ( integer $page_id ) : |
Copies the contents of the auto-save buffer into the live page. | |
restoreDeleted ( integer $page_id ) : |
Restores a previously deleted page. | |
restoreVersion ( integer $page_id, integer $version_id ) : |
Restore a previous version of the page. | |
update ( integer $page_id, array $params ) : |
Update a page. | |
updateAutoSaveBuffer ( in $page_id ) : |
Updates the auto-save buffer. | |
validateBuffer ( integer $page_id ) : |
Validates the auto-save buffer version of the page. | |
versions ( integer $page_id ) : |
List previous versions of the page. |
public getAutoSaveBufferContents ( integer $page_id ) : |
||
$page_id | integer | The page ID |
return |
public hasBufferedChanges ( integer $page_id ) : |
||
$page_id | integer | The page ID |
return |
public publishAction ( integer $page_id, string $action ) : |
||
$page_id | integer | The page ID |
$action | string | The publish action |
return |
public pushBufferLive ( integer $page_id ) : |
||
$page_id | integer | The page ID |
return |
public restoreDeleted ( integer $page_id ) : |
||
$page_id | integer | The page ID |
return |
public restoreVersion ( integer $page_id, integer $version_id ) : |
||
$page_id | integer | The page ID |
$version_id | integer | The version ID |
return |
public updateAutoSaveBuffer ( in $page_id ) : |
||
$page_id | in | The page ID |
return |
public validateBuffer ( integer $page_id ) : |
||
$page_id | integer | The page ID |
return |