Sending Mail now dynamically creates packet name, size and mtime
This commit is contained in:
@@ -215,6 +215,11 @@ class Message extends FTNBase
|
||||
$this->unknown = collect();
|
||||
}
|
||||
|
||||
// Fix for a call to pluck('date') (which is resolved via __get()), but it returns false.
|
||||
public function __isset($key) {
|
||||
return (bool)$this->{$key};
|
||||
}
|
||||
|
||||
public function __get($key)
|
||||
{
|
||||
switch ($key) {
|
||||
|
@@ -13,7 +13,7 @@ use App\Classes\FTN as FTNBase;
|
||||
use App\Models\{Address,Software,System,Zone};
|
||||
|
||||
/**
|
||||
* Represents the structure of a packet
|
||||
* Represents the structure of a message bundle
|
||||
*/
|
||||
class Packet extends FTNBase implements \Iterator, \Countable
|
||||
{
|
||||
@@ -398,7 +398,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a netmail message to this packet
|
||||
* Add a message to this packet
|
||||
*
|
||||
* @param Message $o
|
||||
*/
|
||||
|
Reference in New Issue
Block a user