PHP 클래스 Flarum\Core\Post\DiscussionRenamedPost

The content is stored as a sequential array containing the old title and the new title.
상속: extends AbstractEventPost, implements Flarum\Core\Post\MergeableInterface
파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$type

공개 메소드들

메소드 설명
reply ( integer $discussionId, integer $userId, string $oldTitle, string $newTitle ) : static Create a new instance in reply to a discussion.
saveAfter ( Post $previous = null )

보호된 메소드들

메소드 설명
buildContent ( string $oldTitle, string $newTitle ) : array Build the content attribute.

메소드 상세

buildContent() 보호된 정적인 메소드

Build the content attribute.
protected static buildContent ( string $oldTitle, string $newTitle ) : array
$oldTitle string The old title of the discussion.
$newTitle string The new title of the discussion.
리턴 array

reply() 공개 정적인 메소드

Create a new instance in reply to a discussion.
public static reply ( integer $discussionId, integer $userId, string $oldTitle, string $newTitle ) : static
$discussionId integer
$userId integer
$oldTitle string
$newTitle string
리턴 static

saveAfter() 공개 메소드

public saveAfter ( Post $previous = null )
$previous Flarum\Core\Post

프로퍼티 상세

$type 공개적으로 정적으로 프로퍼티

public static $type