PHP Class Flarum\Event\PostWillBeDeleted

Show file Open project: flarum/core

Public Properties

Property Type Description
$actor Flarum\Core\User The user who is performing the action.
$data array Any user input associated with the command.
$post Flarum\Core\Post The post that is going to be deleted.

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 property

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

$data public property

Any user input associated with the command.
public array $data
return array

$post public property

The post that is going to be deleted.
public Post,Flarum\Core $post
return Flarum\Core\Post