Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/query/PhamePostSearchEngine.php
Show All 23 Lines | protected function buildQueryFromParameters(array $map) { | ||||
return $query; | return $query; | ||||
} | } | ||||
protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
return array( | return array( | ||||
id(new PhabricatorSearchSelectField()) | id(new PhabricatorSearchSelectField()) | ||||
->setKey('visibility') | ->setKey('visibility') | ||||
->setLabel(pht('Visibility')) | |||||
->setOptions(array( | ->setOptions(array( | ||||
'' => pht('All'), | '' => pht('All'), | ||||
PhamePost::VISIBILITY_PUBLISHED => pht('Live'), | PhamePost::VISIBILITY_PUBLISHED => pht('Live'), | ||||
PhamePost::VISIBILITY_DRAFT => pht('Draft'), | PhamePost::VISIBILITY_DRAFT => pht('Draft'), | ||||
)), | )), | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |