Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117750602
GroupSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
862 B
Referenced Files
None
Subscribers
None
GroupSetting.php
View Options
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Relations\BelongsTo
;
/**
* A collection of settings for a Group.
*
* @property int $id
* @property int $group_id
* @property string $key
* @property string $value
*/
class
GroupSetting
extends
Model
{
/** @var list<string> The attributes that are mass assignable */
protected
$fillable
=
[
'group_id'
,
'key'
,
'value'
];
/**
* The group to which this setting belongs.
*
* @return BelongsTo<Group, $this>
*/
public
function
group
()
{
return
$this
->
belongsTo
(
Group
::
class
,
'group_id'
,
'id'
);
}
/**
* Check if the setting is used in any storage backend.
*/
public
function
isBackendSetting
():
bool
{
return
\config
(
'app.with_ldap'
)
&&
$this
->
key
==
'sender_policy'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 2:31 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18741012
Default Alt Text
GroupSetting.php (862 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline