mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Send email to the admin when a new patron joins
This commit is contained in:
parent
e2a1dbb1e5
commit
fa8fa4f7eb
5 changed files with 70 additions and 0 deletions
20
lib/User.php
20
lib/User.php
|
@ -2,12 +2,32 @@
|
|||
use Ramsey\Uuid\Uuid;
|
||||
use Safe\DateTime;
|
||||
|
||||
/**
|
||||
* @property Array<Payment> $Payments
|
||||
*/
|
||||
class User extends PropertiesBase{
|
||||
public $UserId;
|
||||
public $Name;
|
||||
public $Email;
|
||||
public $Created;
|
||||
public $Uuid;
|
||||
protected $_Payments = null;
|
||||
|
||||
|
||||
// *******
|
||||
// GETTERS
|
||||
// *******
|
||||
|
||||
/**
|
||||
* @return array<Payment>
|
||||
*/
|
||||
protected function GetPayments(): array{
|
||||
if($this->_Payments === null){
|
||||
$this->_Payments = Db::Query('select * from Payments where UserId = ? order by Created desc', [$this->UserId], 'Payment');
|
||||
}
|
||||
|
||||
return $this->_Payments;
|
||||
}
|
||||
|
||||
|
||||
// *******
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue