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