mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Make Countdown Flaggable
Summary: Ref T8888. Cool man, like, more flags. Test Plan: Flag it, Tag it, and Bag it. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8888 Differential Revision: https://secure.phabricator.com/D13653
This commit is contained in:
parent
82b2caf1ac
commit
ad7760061d
3 changed files with 7 additions and 4 deletions
|
@ -5536,6 +5536,7 @@ phutil_register_library_map(array(
|
||||||
'PhabricatorCountdown' => array(
|
'PhabricatorCountdown' => array(
|
||||||
'PhabricatorCountdownDAO',
|
'PhabricatorCountdownDAO',
|
||||||
'PhabricatorPolicyInterface',
|
'PhabricatorPolicyInterface',
|
||||||
|
'PhabricatorFlaggableInterface',
|
||||||
'PhabricatorSpacesInterface',
|
'PhabricatorSpacesInterface',
|
||||||
),
|
),
|
||||||
'PhabricatorCountdownApplication' => 'PhabricatorApplication',
|
'PhabricatorCountdownApplication' => 'PhabricatorApplication',
|
||||||
|
|
|
@ -70,6 +70,7 @@ final class PhabricatorCountdownViewController
|
||||||
$id = $countdown->getID();
|
$id = $countdown->getID();
|
||||||
|
|
||||||
$view = id(new PhabricatorActionListView())
|
$view = id(new PhabricatorActionListView())
|
||||||
|
->setObject($countdown)
|
||||||
->setUser($viewer);
|
->setUser($viewer);
|
||||||
|
|
||||||
$can_edit = PhabricatorPolicyFilter::hasCapability(
|
$can_edit = PhabricatorPolicyFilter::hasCapability(
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorCountdown
|
final class PhabricatorCountdown extends PhabricatorCountdownDAO
|
||||||
extends PhabricatorCountdownDAO
|
implements
|
||||||
implements PhabricatorPolicyInterface,
|
PhabricatorPolicyInterface,
|
||||||
PhabricatorSpacesInterface {
|
PhabricatorFlaggableInterface,
|
||||||
|
PhabricatorSpacesInterface {
|
||||||
|
|
||||||
protected $title;
|
protected $title;
|
||||||
protected $authorPHID;
|
protected $authorPHID;
|
||||||
|
|
Loading…
Reference in a new issue