Differential D15489 Diff 37338 src/applications/repository/storage/PhabricatorRepositoryGitLFSRef.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryGitLFSRef.php
- This file was added.
<?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; | |||||
} | |||||
} |