Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/cache/PhabricatorUserCacheType.php
Show All 12 Lines | abstract class PhabricatorUserCacheType extends Phobject { | ||||
public function canManageKey($key) { | public function canManageKey($key) { | ||||
return false; | return false; | ||||
} | } | ||||
public function getDefaultValue() { | public function getDefaultValue() { | ||||
return array(); | return array(); | ||||
} | } | ||||
public function shouldValidateRawCacheData() { | |||||
return false; | |||||
} | |||||
public function isRawCacheDataValid(PhabricatorUser $user, $key, $data) { | |||||
throw new PhutilMethodNotImplementedException(); | |||||
} | |||||
public function getValueFromStorage($value) { | public function getValueFromStorage($value) { | ||||
return phutil_json_decode($value); | return phutil_json_decode($value); | ||||
} | } | ||||
public function getValueForStorage($value) { | public function getValueForStorage($value) { | ||||
return phutil_json_encode($value); | return phutil_json_encode($value); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |