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
Afficher le fichier Open project: flarum/core Class Usage Examples

Méthodes publiques

Свойство Type Description
$type

Méthodes publiques

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

Méthodes protégées

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

Method Details

buildContent() protected static méthode

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.
Résultat array

reply() public static méthode

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
Résultat static

saveAfter() public méthode

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

Property Details

$type public_oe static_oe property

public static $type