Page MenuHomePhorge

PhabricatorTextEditField.php
No OneTemporary

Size
734 B
Referenced Files
None
Subscribers
None

PhabricatorTextEditField.php

<?php
final class PhabricatorTextEditField
extends PhabricatorEditField {
private $placeholder;
public function setPlaceholder($placeholder) {
$this->placeholder = $placeholder;
return $this;
}
public function getPlaceholder() {
return $this->placeholder;
}
protected function newControl() {
$control = new AphrontFormTextControl();
$placeholder = $this->getPlaceholder();
if (phutil_nonempty_string($placeholder)) {
$control->setPlaceholder($placeholder);
}
return $control;
}
protected function newConduitParameterType() {
return new ConduitStringParameterType();
}
protected function newBulkParameterType() {
return new BulkStringParameterType();
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 27, 7:30 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
169168
Default Alt Text
PhabricatorTextEditField.php (734 B)

Event Timeline