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