Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockResource.php
Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Lines | $log = id(new DrydockLog()) | ||||
->setData($data); | ->setData($data); | ||||
$log->setResourcePHID($this->getPHID()); | $log->setResourcePHID($this->getPHID()); | ||||
$log->setBlueprintPHID($this->getBlueprintPHID()); | $log->setBlueprintPHID($this->getBlueprintPHID()); | ||||
return $log->save(); | return $log->save(); | ||||
} | } | ||||
public function getDisplayName() { | |||||
return pht('Drydock Resource %d', $this->getID()); | |||||
} | |||||
/* -( Status )------------------------------------------------------------- */ | /* -( Status )------------------------------------------------------------- */ | ||||
public function getStatusObject() { | public function getStatusObject() { | ||||
return DrydockResourceStatus::newStatusObject($this->getStatus()); | return DrydockResourceStatus::newStatusObject($this->getStatus()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0