Differential D9162 Diff 21777 src/applications/countdown/controller/PhabricatorCountdownViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/controller/PhabricatorCountdownViewController.php
<?php | <?php | ||||
/** | |||||
* @group countdown | |||||
*/ | |||||
final class PhabricatorCountdownViewController | final class PhabricatorCountdownViewController | ||||
extends PhabricatorCountdownController { | extends PhabricatorCountdownController { | ||||
private $id; | private $id; | ||||
public function shouldAllowPublic() { | |||||
return true; | |||||
} | |||||
public function willProcessRequest(array $data) { | public function willProcessRequest(array $data) { | ||||
$this->id = $data['id']; | $this->id = $data['id']; | ||||
} | } | ||||
public function processRequest() { | public function processRequest() { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$user = $request->getUser(); | $user = $request->getUser(); | ||||
$countdown = id(new PhabricatorCountdownQuery()) | $countdown = id(new PhabricatorCountdownQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withIDs(array($this->id)) | ->withIDs(array($this->id)) | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |