PHP Class Flarum\Core\Command\UploadAvatar

Datei anzeigen Open project: flarum/core

Public Properties

Property Type Description
$actor Flarum\Core\User The user performing the action.
$file Psr\Http\Message\UploadedFileInterface The avatar file to upload.
$userId integer The ID of the user to upload the avatar for.

Public Methods

Method Description
__construct ( integer $userId, Psr\Http\Message\UploadedFileInterface $file, User $actor )

Method Details

__construct() public method

public __construct ( integer $userId, Psr\Http\Message\UploadedFileInterface $file, User $actor )
$userId integer The ID of the user to upload the avatar for.
$file Psr\Http\Message\UploadedFileInterface The avatar file to upload.
$actor Flarum\Core\User The user performing the action.

Property Details

$actor public_oe property

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

$file public_oe property

The avatar file to upload.
public UploadedFileInterface,Psr\Http\Message $file
return Psr\Http\Message\UploadedFileInterface

$userId public_oe property

The ID of the user to upload the avatar for.
public int $userId
return integer