1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 02:08:47 +02:00
phorge-phorge/src/applications/differential/customfield/DifferentialStoredCustomField.php

52 lines
992 B
PHP
Raw Normal View History

<?php
abstract class DifferentialStoredCustomField
extends DifferentialCustomField {
private $value;
public function setValue($value) {
$this->value = $value;
return $this;
}
public function getValue() {
return $this->value;
}
public function shouldUseStorage() {
return true;
}
public function newStorageObject() {
return new DifferentialCustomFieldStorage();
}
protected function newStringIndexStorage() {
return new DifferentialCustomFieldStringIndex();
}
protected function newNumericIndexStorage() {
return new DifferentialCustomFieldNumericIndex();
}
public function getValueForStorage() {
return $this->value;
}
public function setValueFromStorage($value) {
$this->value = $value;
return $this;
}
public function setValueFromApplicationTransactions($value) {
$this->setValue($value);
return $this;
}
public function getConduitDictionaryValue() {
return $this->getValue();
}
}