PHP Class Flarum\Core\Post\DiscussionRenamedPost

The content is stored as a sequential array containing the old title and the new title.
Inheritance: extends AbstractEventPost, implements Flarum\Core\Post\MergeableInterface
Datei anzeigen Open project: flarum/core Class Usage Examples

Public Properties

Property Type Description
$type

Public Methods

Method Description
reply ( integer $discussionId, integer $userId, string $oldTitle, string $newTitle ) : static Create a new instance in reply to a discussion.
saveAfter ( Post $previous = null )

Protected Methods

Method Description
buildContent ( string $oldTitle, string $newTitle ) : array Build the content attribute.

Method Details

buildContent() protected static method

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.
return array

reply() public static method

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
return static

saveAfter() public method

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

Property Details

$type public_oe static_oe property

public static $type