Page MenuHomec4science

PhabricatorCountdownRemarkupRule.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 12:23

PhabricatorCountdownRemarkupRule.php

<?php
final class PhabricatorCountdownRemarkupRule
extends PhabricatorObjectRemarkupRule {
protected function getObjectNamePrefix() {
return 'C';
}
protected function loadObjects(array $ids) {
$viewer = $this->getEngine()->getConfig('viewer');
return id(new PhabricatorCountdownQuery())
->setViewer($viewer)
->withIDs($ids)
->execute();
}
protected function renderObjectEmbed($object, $handle, $options) {
$viewer = $this->getEngine()->getConfig('viewer');
return id(new PhabricatorCountdownView())
->setCountdown($object)
->setUser($viewer);
}
}

Event Timeline