PHP Class Flarum\Event\PostWillBeSaved

Datei anzeigen Open project: flarum/core

Public Properties

Property Type Description
$actor Flarum\Core\User The user who is performing the action.
$data array The attributes to update on the post.
$post Flarum\Core\Post The post that will be saved.

Public Methods

Method Description
__construct ( Post $post, User $actor, array $data = [] )

Method Details

__construct() public method

public __construct ( Post $post, User $actor, array $data = [] )
$post Flarum\Core\Post
$actor Flarum\Core\User
$data array

Property Details

$actor public_oe property

The user who is performing the action.
public User,Flarum\Core $actor
return Flarum\Core\User

$data public_oe property

The attributes to update on the post.
public array $data
return array

$post public_oe property

The post that will be saved.
public Post,Flarum\Core $post
return Flarum\Core\Post