Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/storage/PonderQuestion.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public static function initializeNewQuestion(PhabricatorUser $actor) { | ||||
$view_policy = $app->getPolicy( | $view_policy = $app->getPolicy( | ||||
PonderDefaultViewCapability::CAPABILITY); | PonderDefaultViewCapability::CAPABILITY); | ||||
return id(new PonderQuestion()) | return id(new PonderQuestion()) | ||||
->setAuthorPHID($actor->getPHID()) | ->setAuthorPHID($actor->getPHID()) | ||||
->setViewPolicy($view_policy) | ->setViewPolicy($view_policy) | ||||
->setStatus(PonderQuestionStatus::STATUS_OPEN) | ->setStatus(PonderQuestionStatus::STATUS_OPEN) | ||||
->setAnswerCount(0) | ->setAnswerCount(0) | ||||
->setAnswerWiki('') | |||||
->setSpacePHID($actor->getDefaultSpacePHID()); | ->setSpacePHID($actor->getDefaultSpacePHID()); | ||||
} | } | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'title' => 'text255', | 'title' => 'text255', | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |