Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTask.php
Show All 38 Lines | final class ManiphestTask extends ManiphestDAO | ||||
protected $ownerOrdering; | protected $ownerOrdering; | ||||
protected $spacePHID; | protected $spacePHID; | ||||
protected $bridgedObjectPHID; | protected $bridgedObjectPHID; | ||||
protected $properties = array(); | protected $properties = array(); | ||||
protected $points; | protected $points; | ||||
protected $subtype; | protected $subtype; | ||||
protected $closedEpoch; | |||||
protected $closerPHID; | |||||
private $subscriberPHIDs = self::ATTACHABLE; | private $subscriberPHIDs = self::ATTACHABLE; | ||||
private $groupByProjectPHID = self::ATTACHABLE; | private $groupByProjectPHID = self::ATTACHABLE; | ||||
private $customFields = self::ATTACHABLE; | private $customFields = self::ATTACHABLE; | ||||
private $edgeProjectPHIDs = self::ATTACHABLE; | private $edgeProjectPHIDs = self::ATTACHABLE; | ||||
private $bridgedObject = self::ATTACHABLE; | private $bridgedObject = self::ATTACHABLE; | ||||
public static function initializeNewTask(PhabricatorUser $actor) { | public static function initializeNewTask(PhabricatorUser $actor) { | ||||
$app = id(new PhabricatorApplicationQuery()) | $app = id(new PhabricatorApplicationQuery()) | ||||
Show All 30 Lines | return array( | ||||
'description' => 'text', | 'description' => 'text', | ||||
'mailKey' => 'bytes20', | 'mailKey' => 'bytes20', | ||||
'ownerOrdering' => 'text64?', | 'ownerOrdering' => 'text64?', | ||||
'originalEmailSource' => 'text255?', | 'originalEmailSource' => 'text255?', | ||||
'subpriority' => 'double', | 'subpriority' => 'double', | ||||
'points' => 'double?', | 'points' => 'double?', | ||||
'bridgedObjectPHID' => 'phid?', | 'bridgedObjectPHID' => 'phid?', | ||||
'subtype' => 'text64', | 'subtype' => 'text64', | ||||
'closedEpoch' => 'epoch?', | |||||
'closerPHID' => 'phid?', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_phid' => null, | 'key_phid' => null, | ||||
'phid' => array( | 'phid' => array( | ||||
'columns' => array('phid'), | 'columns' => array('phid'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'priority' => array( | 'priority' => array( | ||||
Show All 25 Lines | return array( | ||||
), | ), | ||||
'key_bridgedobject' => array( | 'key_bridgedobject' => array( | ||||
'columns' => array('bridgedObjectPHID'), | 'columns' => array('bridgedObjectPHID'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'key_subtype' => array( | 'key_subtype' => array( | ||||
'columns' => array('subtype'), | 'columns' => array('subtype'), | ||||
), | ), | ||||
'key_closed' => array( | |||||
'columns' => array('closedEpoch'), | |||||
), | |||||
'key_closer' => array( | |||||
'columns' => array('closerPHID', 'closedEpoch'), | |||||
), | |||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function loadDependsOnTaskPHIDs() { | public function loadDependsOnTaskPHIDs() { | ||||
return PhabricatorEdgeQuery::loadDestinationPHIDs( | return PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$this->getPHID(), | $this->getPHID(), | ||||
ManiphestTaskDependsOnTaskEdgeType::EDGECONST); | ManiphestTaskDependsOnTaskEdgeType::EDGECONST); | ||||
▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines |