mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-28 14:39:36 +01:00
Summary: Ref T10748. This allows an EditEngine form to be broken up into pages. This is less powerful than `PHUIPagedFormView`, because the pages are not sequential / stateful. Each form saves immediately once it's submitted, and can not take you to a new form or back/forward in a series of forms. For example, you can't create a workflow where the user fills out 5 pages of information before we create an object, like the current repository workflow does. However, the only place we've ever wanted to do this is repositories and it's fairly bad there, so I feel reasonably confident we aren't going to miss this in the future. (We do "choose a type of service/repository/rule -> fill out one page of info" fairly often, but can do this without the full-power paging stuff.) Test Plan: - Created a repository usin the new Manage UI, filling out only a handful of fields. - Edited a repository using the new Manage UI. - All forms are now EditEngine forms offering paged views of the big huge underlying form: {F1254371} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10748 Differential Revision: https://secure.phabricator.com/D15832
58 lines
973 B
PHP
58 lines
973 B
PHP
<?php
|
|
|
|
|
|
final class PhabricatorEditPage
|
|
extends Phobject {
|
|
|
|
private $key;
|
|
private $label;
|
|
private $fieldKeys = array();
|
|
private $viewURI;
|
|
private $isDefault;
|
|
|
|
public function setKey($key) {
|
|
$this->key = $key;
|
|
return $this;
|
|
}
|
|
|
|
public function getKey() {
|
|
return $this->key;
|
|
}
|
|
|
|
public function setLabel($label) {
|
|
$this->label = $label;
|
|
return $this;
|
|
}
|
|
|
|
public function getLabel() {
|
|
return $this->label;
|
|
}
|
|
|
|
public function setFieldKeys(array $field_keys) {
|
|
$this->fieldKeys = $field_keys;
|
|
return $this;
|
|
}
|
|
|
|
public function getFieldKeys() {
|
|
return $this->fieldKeys;
|
|
}
|
|
|
|
public function setIsDefault($is_default) {
|
|
$this->isDefault = $is_default;
|
|
return $this;
|
|
}
|
|
|
|
public function getIsDefault() {
|
|
return $this->isDefault;
|
|
}
|
|
|
|
public function setViewURI($view_uri) {
|
|
$this->viewURI = $view_uri;
|
|
return $this;
|
|
}
|
|
|
|
public function getViewURI() {
|
|
return $this->viewURI;
|
|
}
|
|
|
|
}
|