Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/controller/PhabricatorFileInfoController.php
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | private function buildPropertyViews( | ||||
if ($builtin !== null) { | if ($builtin !== null) { | ||||
$types[] = pht('Builtin ("%s")', $builtin); | $types[] = pht('Builtin ("%s")', $builtin); | ||||
} | } | ||||
if ($file->getIsProfileImage()) { | if ($file->getIsProfileImage()) { | ||||
$types[] = pht('Profile'); | $types[] = pht('Profile'); | ||||
} | } | ||||
if ($types) { | |||||
$types = implode(', ', $types); | $types = implode(', ', $types); | ||||
$finfo->addProperty(pht('Attributes'), $types); | $finfo->addProperty(pht('Attributes'), $types); | ||||
} | |||||
$storage_properties = new PHUIPropertyListView(); | $storage_properties = new PHUIPropertyListView(); | ||||
$box->addPropertyList($storage_properties, pht('Storage')); | $box->addPropertyList($storage_properties, pht('Storage')); | ||||
$storage_properties->addProperty( | $storage_properties->addProperty( | ||||
pht('Engine'), | pht('Engine'), | ||||
$file->getStorageEngine()); | $file->getStorageEngine()); | ||||
$storage_properties->addProperty( | $format_key = $file->getStorageFormat(); | ||||
pht('Format'), | $format = PhabricatorFileStorageFormat::getFormat($format_key); | ||||
$file->getStorageFormat()); | if ($format) { | ||||
$format_name = $format->getStorageFormatName(); | |||||
} else { | |||||
$format_name = pht('Unknown ("%s")', $format_key); | |||||
} | |||||
$storage_properties->addProperty(pht('Format'), $format_name); | |||||
$storage_properties->addProperty( | $storage_properties->addProperty( | ||||
pht('Handle'), | pht('Handle'), | ||||
$file->getStorageHandle()); | $file->getStorageHandle()); | ||||
$phids = $file->getObjectPHIDs(); | $phids = $file->getObjectPHIDs(); | ||||
if ($phids) { | if ($phids) { | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |