Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorEditField.php
Show All 19 Lines | abstract class PhabricatorEditField extends Phobject { | ||||
private $description; | private $description; | ||||
private $conduitDescription; | private $conduitDescription; | ||||
private $conduitDocumentation; | private $conduitDocumentation; | ||||
private $conduitTypeDescription; | private $conduitTypeDescription; | ||||
private $commentActionLabel; | private $commentActionLabel; | ||||
private $commentActionValue; | private $commentActionValue; | ||||
private $commentActionGroupKey; | |||||
private $commentActionOrder = 1000; | private $commentActionOrder = 1000; | ||||
private $hasCommentActionValue; | private $hasCommentActionValue; | ||||
private $isLocked; | private $isLocked; | ||||
private $isHidden; | private $isHidden; | ||||
private $isPreview; | private $isPreview; | ||||
private $isEditDefaults; | private $isEditDefaults; | ||||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | public function setCommentActionLabel($label) { | ||||
$this->commentActionLabel = $label; | $this->commentActionLabel = $label; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getCommentActionLabel() { | public function getCommentActionLabel() { | ||||
return $this->commentActionLabel; | return $this->commentActionLabel; | ||||
} | } | ||||
public function setCommentActionGroupKey($key) { | |||||
$this->commentActionGroupKey = $key; | |||||
return $this; | |||||
} | |||||
public function getCommentActionGroupKey() { | |||||
return $this->commentActionGroupKey; | |||||
} | |||||
public function setCommentActionOrder($order) { | public function setCommentActionOrder($order) { | ||||
$this->commentActionOrder = $order; | $this->commentActionOrder = $order; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getCommentActionOrder() { | public function getCommentActionOrder() { | ||||
return $this->commentActionOrder; | return $this->commentActionOrder; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 458 Lines • ▼ Show 20 Lines | public function getCommentAction() { | ||||
} else { | } else { | ||||
$value = $this->getValue(); | $value = $this->getValue(); | ||||
} | } | ||||
$action | $action | ||||
->setKey($this->getKey()) | ->setKey($this->getKey()) | ||||
->setLabel($label) | ->setLabel($label) | ||||
->setValue($this->getValueForCommentAction($value)) | ->setValue($this->getValueForCommentAction($value)) | ||||
->setOrder($this->getCommentActionOrder()); | ->setOrder($this->getCommentActionOrder()) | ||||
->setGroupKey($this->getCommentActionGroupKey()); | |||||
return $action; | return $action; | ||||
} | } | ||||
protected function newCommentAction() { | protected function newCommentAction() { | ||||
return null; | return null; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |