Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/phid/PhabricatorFileFilePHIDType.php
<?php | <?php | ||||
final class PhabricatorFileFilePHIDType extends PhabricatorPHIDType { | final class PhabricatorFileFilePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'FILE'; | const TYPECONST = 'FILE'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('File'); | return pht('File'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorFile(); | return new PhabricatorFile(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorFilesApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorFileQuery()) | return id(new PhabricatorFileQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |