PHP 클래스 Backend\Modules\Blog\Engine\Api

파일 보기 프로젝트 열기: forkcms/forkcms

공개 메소드들

메소드 설명
commentsDelete ( string $id ) Delete comment(s).
commentsGet ( string $status = null, integer $limit = 30, integer $offset ) : array Get the comments
commentsGetById ( integer $id ) : array Get a single comment
commentsUpdate ( integer $id, string $status = null, string $text = null, string $authorName = null, string $authorEmail = null, string $authorWebsite = null ) : null | boolean Update a comment
commentsUpdateStatus ( array $id, string $status ) Update the status for multiple comments at once.

메소드 상세

commentsDelete() 공개 정적인 메소드

Delete comment(s).
public static commentsDelete ( string $id )
$id string The id/ids of the comment(s) to update.

commentsGet() 공개 정적인 메소드

Get the comments
public static commentsGet ( string $status = null, integer $limit = 30, integer $offset ) : array
$status string The type of comments to get. Possible values are: published, moderation, spam.
$limit integer The maximum number of items to retrieve.
$offset integer The offset.
리턴 array

commentsGetById() 공개 정적인 메소드

Get a single comment
public static commentsGetById ( integer $id ) : array
$id integer The id of the comment.
리턴 array

commentsUpdate() 공개 정적인 메소드

Update a comment
public static commentsUpdate ( integer $id, string $status = null, string $text = null, string $authorName = null, string $authorEmail = null, string $authorWebsite = null ) : null | boolean
$id integer The id of the comment.
$status string The new status for the comment. Possible values are: published, moderation, spam.
$text string The new text for the comment.
$authorName string The new author for the comment.
$authorEmail string The new email for the comment.
$authorWebsite string The new website for the comment.
리턴 null | boolean

commentsUpdateStatus() 공개 정적인 메소드

Update the status for multiple comments at once.
public static commentsUpdateStatus ( array $id, string $status )
$id array The id/ids of the comment(s) to update.
$status string The new status for the comment. Possible values are: published, moderation, spam.