Page MenuHomestyx hydra

PhabricatorCommentEditField.php
No OneTemporary

PhabricatorCommentEditField.php

<?php
final class PhabricatorCommentEditField
extends PhabricatorEditField {
private $isWebOnly;
public function setIsWebOnly($is_web_only) {
$this->isWebOnly = $is_web_only;
return $this;
}
public function getIsWebOnly() {
return $this->isWebOnly;
}
protected function newControl() {
return new PhabricatorRemarkupControl();
}
protected function newEditType() {
return new PhabricatorCommentEditType();
}
protected function newConduitParameterType() {
if ($this->getIsWebOnly()) {
return null;
} else {
return new ConduitStringParameterType();
}
}
public function shouldGenerateTransactionsFromSubmit() {
return !$this->isPrimaryCommentField();
}
public function shouldGenerateTransactionsFromComment() {
return $this->isPrimaryCommentField();
}
private function isPrimaryCommentField() {
return ($this->getKey() === 'comment');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 24, 12:44 PM (14 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
365575
Default Alt Text
PhabricatorCommentEditField.php (937 B)

Event Timeline