Differential D8600 Diff 20391 src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
<?php | <?php | ||||
abstract class PhabricatorStandardCustomField | abstract class PhabricatorStandardCustomField | ||||
extends PhabricatorCustomField { | extends PhabricatorCustomField { | ||||
private $rawKey; | |||||
private $fieldKey; | private $fieldKey; | ||||
private $fieldName; | private $fieldName; | ||||
private $fieldValue; | private $fieldValue; | ||||
private $fieldDescription; | private $fieldDescription; | ||||
private $fieldConfig; | private $fieldConfig; | ||||
private $applicationField; | private $applicationField; | ||||
private $strings = array(); | private $strings = array(); | ||||
private $caption; | private $caption; | ||||
Show All 21 Lines | foreach ($config as $key => $value) { | ||||
continue; | continue; | ||||
} | } | ||||
$namespace = $template->getStandardCustomFieldNamespace(); | $namespace = $template->getStandardCustomFieldNamespace(); | ||||
$full_key = "std:{$namespace}:{$key}"; | $full_key = "std:{$namespace}:{$key}"; | ||||
$template = clone $template; | $template = clone $template; | ||||
$standard = id(clone $types[$type]) | $standard = id(clone $types[$type]) | ||||
->setRawStandardFieldKey($key) | |||||
->setFieldKey($full_key) | ->setFieldKey($full_key) | ||||
->setFieldConfig($value) | ->setFieldConfig($value) | ||||
->setApplicationField($template); | ->setApplicationField($template); | ||||
$field = $template->setProxy($standard); | $field = $template->setProxy($standard); | ||||
$fields[] = $field; | $fields[] = $field; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | public function setRequired($required) { | ||||
$this->required = $required; | $this->required = $required; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getRequired() { | public function getRequired() { | ||||
return $this->required; | return $this->required; | ||||
} | } | ||||
public function setRawStandardFieldKey($raw_key) { | |||||
$this->rawKey = $raw_key; | |||||
return $this; | |||||
} | |||||
public function getRawStandardFieldKey() { | |||||
return $this->rawKey; | |||||
} | |||||
/* -( PhabricatorCustomField )--------------------------------------------- */ | /* -( PhabricatorCustomField )--------------------------------------------- */ | ||||
public function setFieldKey($field_key) { | public function setFieldKey($field_key) { | ||||
$this->fieldKey = $field_key; | $this->fieldKey = $field_key; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |