Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitContentPusherHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitContentPusherHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitContentPusherHeraldField | final class DiffusionPreCommitContentPusherHeraldField | ||||
extends DiffusionPreCommitContentHeraldField { | extends DiffusionPreCommitContentHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.content.pusher'; | const FIELDCONST = 'diffusion.pre.content.pusher'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Pusher'); | return pht('Pusher'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | return $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_PHID; | return HeraldField::STANDARD_PHID; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | public function getHeraldFieldValueType($condition) { | ||||
return HeraldAdapter::VALUE_USER; | return HeraldAdapter::VALUE_USER; | ||||
} | } | ||||
} | } |