Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTask.php
Show All 25 Lines | final class ManiphestTask extends ManiphestDAO | ||||
protected $authorPHID; | protected $authorPHID; | ||||
protected $ownerPHID; | protected $ownerPHID; | ||||
protected $status; | protected $status; | ||||
protected $priority; | protected $priority; | ||||
protected $subpriority = 0; | protected $subpriority = 0; | ||||
protected $title = ''; | protected $title = ''; | ||||
protected $originalTitle = ''; | |||||
protected $description = ''; | protected $description = ''; | ||||
protected $originalEmailSource; | protected $originalEmailSource; | ||||
protected $mailKey; | protected $mailKey; | ||||
protected $viewPolicy = PhabricatorPolicies::POLICY_USER; | protected $viewPolicy = PhabricatorPolicies::POLICY_USER; | ||||
protected $editPolicy = PhabricatorPolicies::POLICY_USER; | protected $editPolicy = PhabricatorPolicies::POLICY_USER; | ||||
protected $ownerOrdering; | protected $ownerOrdering; | ||||
protected $spacePHID; | protected $spacePHID; | ||||
Show All 35 Lines | return array( | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'properties' => self::SERIALIZATION_JSON, | 'properties' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'ownerPHID' => 'phid?', | 'ownerPHID' => 'phid?', | ||||
'status' => 'text64', | 'status' => 'text64', | ||||
'priority' => 'uint32', | 'priority' => 'uint32', | ||||
'title' => 'sort', | 'title' => 'sort', | ||||
'originalTitle' => 'text', | |||||
'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', | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function attachSubscriberPHIDs(array $phids) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setOwnerPHID($phid) { | public function setOwnerPHID($phid) { | ||||
$this->ownerPHID = nonempty($phid, null); | $this->ownerPHID = nonempty($phid, null); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setTitle($title) { | |||||
$this->title = $title; | |||||
if (!$this->getID()) { | |||||
$this->originalTitle = $title; | |||||
} | |||||
return $this; | |||||
} | |||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'T'.$this->getID(); | return 'T'.$this->getID(); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
return '/'.$this->getMonogram(); | return '/'.$this->getMonogram(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines |