PHP Class Flarum\Core\Command\PostReply

Show file 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 assign to the new post.
$discussionId integer The ID of the discussion to post the reply to.
$ipAddress string The IP address of the actor.

Public Methods

Method Description
__construct ( integer $discussionId, User $actor, array $data, string $ipAddress = null )

Method Details

__construct() public method

public __construct ( integer $discussionId, User $actor, array $data, string $ipAddress = null )
$discussionId integer The ID of the discussion to post the reply to.
$actor Flarum\Core\User The user who is performing the action.
$data array The attributes to assign to the new post.
$ipAddress string The IP address of the actor.

Property Details

$actor public property

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

$data public property

The attributes to assign to the new post.
public array $data
return array

$discussionId public property

The ID of the discussion to post the reply to.
public int $discussionId
return integer

$ipAddress public property

The IP address of the actor.
public string $ipAddress
return string