2015-07-06 22:15:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class HeraldAlwaysField extends HeraldField {
|
|
|
|
|
|
|
|
const FIELDCONST = 'always';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
|
|
|
return pht('Always');
|
|
|
|
}
|
|
|
|
|
2015-07-16 23:13:13 +02:00
|
|
|
public function getFieldGroupKey() {
|
|
|
|
return HeraldBasicFieldGroup::FIELDGROUPKEY;
|
|
|
|
}
|
|
|
|
|
2015-07-06 22:15:47 +02:00
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldConditions() {
|
|
|
|
return array(
|
|
|
|
HeraldAdapter::CONDITION_UNCONDITIONALLY,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValueType($condition) {
|
2015-07-16 23:12:44 +02:00
|
|
|
return new HeraldEmptyFieldValue();
|
2015-07-06 22:15:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function supportsObject($object) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|