26
common/Files/Events/FileEntriesDeleted.php
Executable file
26
common/Files/Events/FileEntriesDeleted.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Files\Events;
|
||||
|
||||
class FileEntriesDeleted
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $entryIds;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $permanently;
|
||||
|
||||
/**
|
||||
* @param array $entryIds
|
||||
* @param boolean $permanently
|
||||
*/
|
||||
public function __construct($entryIds, $permanently)
|
||||
{
|
||||
$this->entryIds = $entryIds;
|
||||
$this->permanently = $permanently;
|
||||
}
|
||||
}
|
||||
33
common/Files/Events/FileEntriesMoved.php
Executable file
33
common/Files/Events/FileEntriesMoved.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Files\Events;
|
||||
|
||||
class FileEntriesMoved
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $entryIds;
|
||||
|
||||
/**
|
||||
* @var null|integer
|
||||
*/
|
||||
public $destination;
|
||||
|
||||
/**
|
||||
* @var int|null
|
||||
*/
|
||||
public $source;
|
||||
|
||||
/**
|
||||
* @param array $entryIds
|
||||
* @param null|int $destination
|
||||
* @param null|int $source
|
||||
*/
|
||||
public function __construct($entryIds, $destination, $source)
|
||||
{
|
||||
$this->entryIds = $entryIds;
|
||||
$this->destination = $destination;
|
||||
$this->source = $source;
|
||||
}
|
||||
}
|
||||
10
common/Files/Events/FileEntriesRestored.php
Executable file
10
common/Files/Events/FileEntriesRestored.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Files\Events;
|
||||
|
||||
class FileEntriesRestored
|
||||
{
|
||||
public function __construct(public array $entryIds)
|
||||
{
|
||||
}
|
||||
}
|
||||
18
common/Files/Events/FileEntryCreated.php
Executable file
18
common/Files/Events/FileEntryCreated.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Files\Events;
|
||||
|
||||
use Common\Files\FileEntry;
|
||||
|
||||
class FileEntryCreated
|
||||
{
|
||||
/**
|
||||
* @var FileEntry
|
||||
*/
|
||||
public $fileEntry;
|
||||
|
||||
public function __construct(FileEntry $fileEntry)
|
||||
{
|
||||
$this->fileEntry = $fileEntry;
|
||||
}
|
||||
}
|
||||
18
common/Files/Events/FileUploaded.php
Executable file
18
common/Files/Events/FileUploaded.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Common\Files\Events;
|
||||
|
||||
use Common\Files\FileEntry;
|
||||
|
||||
class FileUploaded
|
||||
{
|
||||
/**
|
||||
* @var FileEntry
|
||||
*/
|
||||
public $fileEntry;
|
||||
|
||||
public function __construct(FileEntry $fileEntry)
|
||||
{
|
||||
$this->fileEntry = $fileEntry;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user