Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2484985
Connect.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Connect.php
View Options
<?php
namespace
App\Policy\Greylist
;
use
Illuminate\Database\Eloquent\Model
;
/**
* @property \App\Domain $domain
* @property \App\Domain|\App\User $recipient
* @property \App\User $user
*/
class
Connect
extends
Model
{
protected
$fillable
=
[
'sender_local'
,
'sender_domain'
,
'net_id'
,
'net_type'
,
'recipient_hash'
,
'recipient_id'
,
'recipient_type'
,
'connect_count'
,
'created_at'
,
'updated_at'
];
protected
$table
=
'greylist_connect'
;
public
function
domain
()
{
if
(
$this
->
recipient_type
==
\App\Domain
::
class
)
{
return
$this
->
recipient
;
}
return
null
;
}
// determine if the sender is a penpal of the recipient.
public
function
isPenpal
()
{
return
false
;
}
public
function
user
()
{
if
(
$this
->
recipient_type
==
\App\User
::
class
)
{
return
$this
->
recipient
;
}
return
null
;
}
public
function
net
()
{
return
$this
->
morphTo
();
}
public
function
recipient
()
{
return
$this
->
morphTo
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 20, 5:05 PM (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
386787
Default Alt Text
Connect.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment