Changeset View
Changeset View
Standalone View
Standalone View
src/applications/flag/query/PhabricatorFlagSearchEngine.php
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | foreach ($objects as $object) { | ||||
$type_object = idx($all_types, $phid_type); | $type_object = idx($all_types, $phid_type); | ||||
if ($type_object) { | if ($type_object) { | ||||
$options[$phid_type] = $type_object->getTypeName(); | $options[$phid_type] = $type_object->getTypeName(); | ||||
} | } | ||||
} | } | ||||
// sort it alphabetically... | // sort it alphabetically... | ||||
asort($options); | asort($options); | ||||
$default_option = array( | $default_option = array( | ||||
0 => pht('All Object Types')); | 0 => pht('All Object Types'), | ||||
); | |||||
// ...and stick the default option on front | // ...and stick the default option on front | ||||
$options = array_merge($default_option, $options); | $options = array_merge($default_option, $options); | ||||
return $options; | return $options; | ||||
} | } | ||||
protected function renderResultList( | protected function renderResultList( | ||||
array $flags, | array $flags, | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |