Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockResource.php
Show All 17 Lines | final class DrydockResource extends DrydockDAO | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'attributes' => self::SERIALIZATION_JSON, | 'attributes' => self::SERIALIZATION_JSON, | ||||
'capabilities' => self::SERIALIZATION_JSON, | 'capabilities' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'name' => 'text255', | |||||
'ownerPHID' => 'phid?', | |||||
'status' => 'uint32', | |||||
'type' => 'text64', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(DrydockResourcePHIDType::TYPECONST); | return PhabricatorPHID::generateNewPHID(DrydockResourcePHIDType::TYPECONST); | ||||
} | } | ||||
public function getAttribute($key, $default = null) { | public function getAttribute($key, $default = null) { | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |