Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/application/PhabricatorPonderApplication.php
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | return array( | ||||
'object' => new PonderQuestion(), | 'object' => new PonderQuestion(), | ||||
'summary' => pht( | 'summary' => pht( | ||||
'This page documents the commands you can use to interact with '. | 'This page documents the commands you can use to interact with '. | ||||
'questions in Ponder.'), | 'questions in Ponder.'), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | |||||
return array( | |||||
PonderQuestionDefaultViewCapability::CAPABILITY => array( | |||||
'template' => PonderQuestionPHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_VIEW, | |||||
), | |||||
PonderQuestionDefaultEditCapability::CAPABILITY => array( | |||||
'template' => PonderQuestionPHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_EDIT, | |||||
), | |||||
); | |||||
} | |||||
public function getApplicationSearchDocumentTypes() { | public function getApplicationSearchDocumentTypes() { | ||||
return array( | return array( | ||||
PonderQuestionPHIDType::TYPECONST, | PonderQuestionPHIDType::TYPECONST, | ||||
); | ); | ||||
} | } | ||||
} | } |