Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65554723
PhabricatorRepositoryGitLFSRef.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 4, 15:48
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jun 6, 15:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18093449
Attached To
rPH Phabricator
PhabricatorRepositoryGitLFSRef.php
View Options
<?php
final
class
PhabricatorRepositoryGitLFSRef
extends
PhabricatorRepositoryDAO
implements
PhabricatorPolicyInterface
{
protected
$repositoryPHID
;
protected
$objectHash
;
protected
$byteSize
;
protected
$authorPHID
;
protected
$filePHID
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'objectHash'
=>
'bytes64'
,
'byteSize'
=>
'uint64'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_hash'
=>
array
(
'columns'
=>
array
(
'repositoryPHID'
,
'objectHash'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
PhabricatorPolicies
::
getMostOpenPolicy
();
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
public
function
describeAutomaticCapability
(
$capability
)
{
return
null
;
}
}
Event Timeline
Log In to Comment