Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockBlueprint.php
<?php | <?php | ||||
/** | /** | ||||
* @task resource Allocating Resources | * @task resource Allocating Resources | ||||
* @task lease Acquiring Leases | * @task lease Acquiring Leases | ||||
*/ | */ | ||||
final class DrydockBlueprint extends DrydockDAO | final class DrydockBlueprint extends DrydockDAO | ||||
implements | implements | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
PhabricatorNgramsInterface { | PhabricatorNgramsInterface, | ||||
PhabricatorProjectInterface { | |||||
protected $className; | protected $className; | ||||
protected $blueprintName; | protected $blueprintName; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
protected $details = array(); | protected $details = array(); | ||||
protected $isDisabled; | protected $isDisabled; | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | $log = id(new DrydockLog()) | ||||
->setType($type) | ->setType($type) | ||||
->setData($data); | ->setData($data); | ||||
$log->setBlueprintPHID($this->getPHID()); | $log->setBlueprintPHID($this->getPHID()); | ||||
return $log->save(); | return $log->save(); | ||||
} | } | ||||
public function getURI() { | |||||
$id = $this->getID(); | |||||
return "/drydock/blueprint/{$id}/"; | |||||
} | |||||
/* -( Allocating Resources )----------------------------------------------- */ | /* -( Allocating Resources )----------------------------------------------- */ | ||||
/** | /** | ||||
* @task resource | * @task resource | ||||
*/ | */ | ||||
public function canEverAllocateResourceForLease(DrydockLease $lease) { | public function canEverAllocateResourceForLease(DrydockLease $lease) { | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |