메소드 | 설명 | |
---|---|---|
all ( array $params = [] ) : |
Get all blog posts. | |
clonePost ( integer $id ) : |
Clone the blog post. | |
create ( array $params = [] ) : |
Create a new blog post. | |
delete ( integer $id ) : |
Delete a blog post. | |
getAutoSaveBufferContents ( integer $id ) : |
Gets the current contents of the auto-save buffer. | |
getById ( integer $id ) : |
Get a specific blog post. | |
getVersion ( integer $post_id, integer $version_id ) : |
Get a previous version of the blog post. | |
hasBufferedChanges ( integer $id ) : |
Determine if the auto-save buffer differs from the live blog post. | |
publishAction ( integer $id, string $action ) : |
Either publishes or cancels publishing based on the POSTed JSON. | |
pushBufferLive ( integer $id ) : |
Copies the contents of the auto-save buffer into the live blog post. | |
restoreDeleted ( integer $id ) : |
Restores a previously deleted blog post. | |
restoreVersion ( integer $post_id, integer $version_id ) : |
Restore a previous version of the blog post. | |
update ( integer $id, array $params = [] ) : |
Update a blog post. | |
updateAutoSaveBuffer ( integer $id, array $params = [] ) : |
Updates the auto-save buffer. Live objects will not be impacted. | |
validateBuffer ( integer $id ) : |
Validates the auto-save buffer version of the blog post. | |
versions ( integer $id ) : |
List previous versions of the blog post. |
public getAutoSaveBufferContents ( integer $id ) : |
||
$id | integer | The blog post ID |
리턴 |
public getVersion ( integer $post_id, integer $version_id ) : |
||
$post_id | integer | The blog post ID |
$version_id | integer | The version ID |
리턴 |
public hasBufferedChanges ( integer $id ) : |
||
$id | integer | The blog post ID |
리턴 |
public publishAction ( integer $id, string $action ) : |
||
$id | integer | The blog post ID |
$action | string | The publish action |
리턴 |
public pushBufferLive ( integer $id ) : |
||
$id | integer | The blog post ID |
리턴 |
public restoreDeleted ( integer $id ) : |
||
$id | integer | The blog post ID |
리턴 |
public restoreVersion ( integer $post_id, integer $version_id ) : |
||
$post_id | integer | The blog post ID |
$version_id | integer | The version ID |
리턴 |
public updateAutoSaveBuffer ( integer $id, array $params = [] ) : |
||
$id | integer | The blog post ID. |
$params | array | Allowed parameters. |
리턴 |
public validateBuffer ( integer $id ) : |
||
$id | integer | The blog post ID |
리턴 |