Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/phid/ManiphestTaskPHIDType.php
Show All 33 Lines | foreach ($handles as $phid => $handle) { | ||||
$id = $task->getID(); | $id = $task->getID(); | ||||
$title = $task->getTitle(); | $title = $task->getTitle(); | ||||
$handle->setName("T{$id}"); | $handle->setName("T{$id}"); | ||||
$handle->setFullName("T{$id}: {$title}"); | $handle->setFullName("T{$id}: {$title}"); | ||||
$handle->setURI("/T{$id}"); | $handle->setURI("/T{$id}"); | ||||
if ($task->isClosed()) { | if ($task->isClosed()) { | ||||
$handle->setStatus(PhabricatorObjectHandleStatus::STATUS_CLOSED); | $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
public function canLoadNamedObject($name) { | public function canLoadNamedObject($name) { | ||||
return preg_match('/^T\d*[1-9]\d*$/i', $name); | return preg_match('/^T\d*[1-9]\d*$/i', $name); | ||||
} | } | ||||
Show All 26 Lines |