Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 1,457 Lines • ▼ Show 20 Lines | protected function requireCacheData($key) { | ||||
| } | } | ||||
| $usable_value = $type->getDefaultValue(); | $usable_value = $type->getDefaultValue(); | ||||
| $user_phid = $this->getPHID(); | $user_phid = $this->getPHID(); | ||||
| if ($user_phid) { | if ($user_phid) { | ||||
| $map = $type->newValueForUsers($key, array($this)); | $map = $type->newValueForUsers($key, array($this)); | ||||
| if (array_key_exists($user_phid, $map)) { | if (array_key_exists($user_phid, $map)) { | ||||
| $usable_value = $map[$user_phid]; | $raw_value = $map[$user_phid]; | ||||
| $raw_value = $type->getValueForStorage($usable_value); | |||||
| $usable_value = $type->getValueFromStorage($raw_value); | $usable_value = $type->getValueFromStorage($raw_value); | ||||
| $this->rawCacheData[$key] = $raw_value; | $this->rawCacheData[$key] = $raw_value; | ||||
| PhabricatorUserCache::writeCache( | PhabricatorUserCache::writeCache( | ||||
| $type, | $type, | ||||
| $key, | $key, | ||||
| $user_phid, | $user_phid, | ||||
| $raw_value); | $raw_value); | ||||
| Show All 19 Lines | |||||