Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/differential/customfield/DifferentialStoredCustomField.php
12256 views
1
<?php
2
3
abstract class DifferentialStoredCustomField
4
extends DifferentialCustomField {
5
6
private $value;
7
8
public function setValue($value) {
9
$this->value = $value;
10
return $this;
11
}
12
13
public function getValue() {
14
return $this->value;
15
}
16
17
public function shouldUseStorage() {
18
return true;
19
}
20
21
public function newStorageObject() {
22
return new DifferentialCustomFieldStorage();
23
}
24
25
protected function newStringIndexStorage() {
26
return new DifferentialCustomFieldStringIndex();
27
}
28
29
protected function newNumericIndexStorage() {
30
return new DifferentialCustomFieldNumericIndex();
31
}
32
33
public function getValueForStorage() {
34
return $this->value;
35
}
36
37
public function setValueFromStorage($value) {
38
$this->value = $value;
39
return $this;
40
}
41
42
public function setValueFromApplicationTransactions($value) {
43
$this->setValue($value);
44
return $this;
45
}
46
47
public function getConduitDictionaryValue() {
48
return $this->getValue();
49
}
50
51
}
52
53