Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
12345678910111213141516171819202122232425262728293031323334<?php
final class PHUIFormFreeformDateControl extends AphrontFormControl {
private $readOnly;
public function setReadOnly($read_only) { $this->readOnly = $read_only; return $this; }
protected function getReadOnly() { return $this->readOnly; }
protected function getCustomControlClass() { return 'aphront-form-control-text'; }
protected function renderInput() { return javelin_tag( 'input', array( 'type' => 'text', 'name' => $this->getName(), 'value' => $this->getValue(), 'disabled' => $this->getDisabled() ? 'disabled' : null, 'readonly' => $this->getReadOnly() ? 'readonly' : null, 'id' => $this->getID(), )); }
}