Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockLease.php
Show All 37 Lines | final class DrydockLease 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, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'status' => 'uint32', | |||||
'until' => 'epoch?', | |||||
'resourceType' => 'text128', | |||||
'taskID' => 'id?', | |||||
'ownerPHID' => 'phid?', | |||||
'resourceID' => 'id?', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function setAttribute($key, $value) { | public function setAttribute($key, $value) { | ||||
$this->attributes[$key] = $value; | $this->attributes[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |