Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockResource.php
| Show All 21 Lines | return array( | ||||
| self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
| 'attributes' => self::SERIALIZATION_JSON, | 'attributes' => self::SERIALIZATION_JSON, | ||||
| 'capabilities' => self::SERIALIZATION_JSON, | 'capabilities' => self::SERIALIZATION_JSON, | ||||
| ), | ), | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function generatePHID() { | public function generatePHID() { | ||||
| return PhabricatorPHID::generateNewPHID(DrydockPHIDTypeResource::TYPECONST); | return PhabricatorPHID::generateNewPHID(DrydockResourcePHIDType::TYPECONST); | ||||
| } | } | ||||
| public function getAttribute($key, $default = null) { | public function getAttribute($key, $default = null) { | ||||
| return idx($this->attributes, $key, $default); | return idx($this->attributes, $key, $default); | ||||
| } | } | ||||
| public function getAttributesForTypeSpec(array $attribute_names) { | public function getAttributesForTypeSpec(array $attribute_names) { | ||||
| return array_select_keys($this->attributes, $attribute_names); | return array_select_keys($this->attributes, $attribute_names); | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||