mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Move setUser() to AphrontView
Summary: This is used in every other view. Test Plan: Browsed around. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4248
This commit is contained in:
parent
45b66be96d
commit
ef214e94ce
55 changed files with 11 additions and 352 deletions
|
@ -2,16 +2,10 @@
|
||||||
|
|
||||||
final class PhabricatorAuditCommitListView extends AphrontView {
|
final class PhabricatorAuditCommitListView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $commits;
|
private $commits;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $noDataString;
|
private $noDataString;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setNoDataString($no_data_string) {
|
public function setNoDataString($no_data_string) {
|
||||||
$this->noDataString = $no_data_string;
|
$this->noDataString = $no_data_string;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class PhabricatorAuditListView extends AphrontView {
|
||||||
private $authorityPHIDs = array();
|
private $authorityPHIDs = array();
|
||||||
private $noDataString;
|
private $noDataString;
|
||||||
private $commits;
|
private $commits;
|
||||||
private $user;
|
|
||||||
private $showDescriptions = true;
|
private $showDescriptions = true;
|
||||||
|
|
||||||
private $highlightedAudits;
|
private $highlightedAudits;
|
||||||
|
@ -44,11 +43,6 @@ final class PhabricatorAuditListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setShowDescriptions($show_descriptions) {
|
public function setShowDescriptions($show_descriptions) {
|
||||||
$this->showDescriptions = $show_descriptions;
|
$this->showDescriptions = $show_descriptions;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class AphrontCalendarMonthView extends AphrontView {
|
final class AphrontCalendarMonthView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $month;
|
private $month;
|
||||||
private $year;
|
private $year;
|
||||||
private $holidays = array();
|
private $holidays = array();
|
||||||
|
@ -17,11 +16,6 @@ final class AphrontCalendarMonthView extends AphrontView {
|
||||||
return $this->browseURI;
|
return $this->browseURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addEvent(AphrontCalendarEventView $event) {
|
public function addEvent(AphrontCalendarEventView $event) {
|
||||||
$this->events[] = $event;
|
$this->events[] = $event;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -4,7 +4,6 @@ final class PhabricatorDaemonLogEventsView extends AphrontView {
|
||||||
|
|
||||||
private $events;
|
private $events;
|
||||||
private $combinedLog;
|
private $combinedLog;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setEvents(array $events) {
|
public function setEvents(array $events) {
|
||||||
assert_instances_of($events, 'PhabricatorDaemonLogEvent');
|
assert_instances_of($events, 'PhabricatorDaemonLogEvent');
|
||||||
|
@ -17,11 +16,6 @@ final class PhabricatorDaemonLogEventsView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PhabricatorDaemonLogListView extends AphrontView {
|
final class PhabricatorDaemonLogListView extends AphrontView {
|
||||||
|
|
||||||
private $daemonLogs;
|
private $daemonLogs;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setDaemonLogs(array $daemon_logs) {
|
public function setDaemonLogs(array $daemon_logs) {
|
||||||
assert_instances_of($daemon_logs, 'PhabricatorDaemonLog');
|
assert_instances_of($daemon_logs, 'PhabricatorDaemonLog');
|
||||||
|
@ -11,11 +10,6 @@ final class PhabricatorDaemonLogListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ final class DifferentialAddCommentView extends AphrontView {
|
||||||
private $revision;
|
private $revision;
|
||||||
private $actions;
|
private $actions;
|
||||||
private $actionURI;
|
private $actionURI;
|
||||||
private $user;
|
|
||||||
private $draft;
|
private $draft;
|
||||||
private $auxFields;
|
private $auxFields;
|
||||||
private $reviewers = array();
|
private $reviewers = array();
|
||||||
|
@ -32,11 +31,6 @@ final class DifferentialAddCommentView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDraft(PhabricatorDraft $draft = null) {
|
public function setDraft(PhabricatorDraft $draft = null) {
|
||||||
$this->draft = $draft;
|
$this->draft = $draft;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -13,7 +13,6 @@ final class DifferentialChangesetListView extends AphrontView {
|
||||||
private $leftRawFileURI;
|
private $leftRawFileURI;
|
||||||
private $rightRawFileURI;
|
private $rightRawFileURI;
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $symbolIndexes = array();
|
private $symbolIndexes = array();
|
||||||
private $repository;
|
private $repository;
|
||||||
private $branch;
|
private $branch;
|
||||||
|
@ -21,7 +20,7 @@ final class DifferentialChangesetListView extends AphrontView {
|
||||||
private $vsMap = array();
|
private $vsMap = array();
|
||||||
|
|
||||||
private $title;
|
private $title;
|
||||||
|
|
||||||
public function setTitle($title) {
|
public function setTitle($title) {
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -53,11 +52,6 @@ final class DifferentialChangesetListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setRepository(PhabricatorRepository $repository) {
|
public function setRepository(PhabricatorRepository $repository) {
|
||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
|
||||||
private $references = array();
|
private $references = array();
|
||||||
private $repository;
|
private $repository;
|
||||||
private $diff;
|
private $diff;
|
||||||
private $user;
|
|
||||||
private $renderURI = '/differential/changeset/';
|
private $renderURI = '/differential/changeset/';
|
||||||
private $revisionID;
|
private $revisionID;
|
||||||
private $whitespace;
|
private $whitespace;
|
||||||
|
@ -43,11 +42,6 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setRevisionID($revision_id) {
|
public function setRevisionID($revision_id) {
|
||||||
$this->revisionID = $revision_id;
|
$this->revisionID = $revision_id;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class DifferentialInlineCommentEditView extends AphrontView {
|
final class DifferentialInlineCommentEditView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $inputs = array();
|
private $inputs = array();
|
||||||
private $uri;
|
private $uri;
|
||||||
private $title;
|
private $title;
|
||||||
|
@ -15,11 +14,6 @@ final class DifferentialInlineCommentEditView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setSubmitURI($uri) {
|
public function setSubmitURI($uri) {
|
||||||
$this->uri = $uri;
|
$this->uri = $uri;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,18 +3,12 @@
|
||||||
final class DifferentialLocalCommitsView extends AphrontView {
|
final class DifferentialLocalCommitsView extends AphrontView {
|
||||||
|
|
||||||
private $localCommits;
|
private $localCommits;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setLocalCommits($local_commits) {
|
public function setLocalCommits($local_commits) {
|
||||||
$this->localCommits = $local_commits;
|
$this->localCommits = $local_commits;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$user = $this->user;
|
$user = $this->user;
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
|
|
|
@ -6,7 +6,6 @@ final class DifferentialRevisionCommentListView extends AphrontView {
|
||||||
private $handles;
|
private $handles;
|
||||||
private $inlines;
|
private $inlines;
|
||||||
private $changesets;
|
private $changesets;
|
||||||
private $user;
|
|
||||||
private $target;
|
private $target;
|
||||||
private $versusDiffID;
|
private $versusDiffID;
|
||||||
private $id;
|
private $id;
|
||||||
|
@ -35,11 +34,6 @@ final class DifferentialRevisionCommentListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTargetDiff(DifferentialDiff $target) {
|
public function setTargetDiff(DifferentialDiff $target) {
|
||||||
$this->target = $target;
|
$this->target = $target;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -10,7 +10,6 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
private $changesets;
|
private $changesets;
|
||||||
private $target;
|
private $target;
|
||||||
private $anchorName;
|
private $anchorName;
|
||||||
private $user;
|
|
||||||
private $versusDiffID;
|
private $versusDiffID;
|
||||||
|
|
||||||
public function setComment($comment) {
|
public function setComment($comment) {
|
||||||
|
@ -62,11 +61,6 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
||||||
if (!$this->user) {
|
if (!$this->user) {
|
||||||
|
|
|
@ -4,7 +4,6 @@ final class DifferentialRevisionDetailView extends AphrontView {
|
||||||
|
|
||||||
private $revision;
|
private $revision;
|
||||||
private $actions;
|
private $actions;
|
||||||
private $user;
|
|
||||||
private $auxiliaryFields = array();
|
private $auxiliaryFields = array();
|
||||||
private $diff;
|
private $diff;
|
||||||
|
|
||||||
|
@ -29,14 +28,6 @@ final class DifferentialRevisionDetailView extends AphrontView {
|
||||||
return $this->actions;
|
return $this->actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
private function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAuxiliaryFields(array $fields) {
|
public function setAuxiliaryFields(array $fields) {
|
||||||
assert_instances_of($fields, 'DifferentialFieldSpecification');
|
assert_instances_of($fields, 'DifferentialFieldSpecification');
|
||||||
$this->auxiliaryFields = $fields;
|
$this->auxiliaryFields = $fields;
|
||||||
|
|
|
@ -9,7 +9,6 @@ final class DifferentialRevisionListView extends AphrontView {
|
||||||
private $flags = array();
|
private $flags = array();
|
||||||
private $drafts = array();
|
private $drafts = array();
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
private $fields;
|
private $fields;
|
||||||
private $highlightAge;
|
private $highlightAge;
|
||||||
const NO_DATA_STRING = 'No revisions found.';
|
const NO_DATA_STRING = 'No revisions found.';
|
||||||
|
@ -47,11 +46,6 @@ final class DifferentialRevisionListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function loadAssets() {
|
public function loadAssets() {
|
||||||
$user = $this->user;
|
$user = $this->user;
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class DifferentialRevisionStatsView extends AphrontView {
|
||||||
private $comments;
|
private $comments;
|
||||||
private $revisions;
|
private $revisions;
|
||||||
private $diffs;
|
private $diffs;
|
||||||
private $user;
|
|
||||||
private $filter;
|
private $filter;
|
||||||
|
|
||||||
public function setRevisions(array $revisions) {
|
public function setRevisions(array $revisions) {
|
||||||
|
@ -33,11 +32,6 @@ final class DifferentialRevisionStatsView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$user = $this->user;
|
$user = $this->user;
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
|
|
|
@ -6,7 +6,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
||||||
private $selectedVersusDiffID;
|
private $selectedVersusDiffID;
|
||||||
private $selectedDiffID;
|
private $selectedDiffID;
|
||||||
private $selectedWhitespace;
|
private $selectedWhitespace;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setDiffs(array $diffs) {
|
public function setDiffs(array $diffs) {
|
||||||
assert_instances_of($diffs, 'DifferentialDiff');
|
assert_instances_of($diffs, 'DifferentialDiff');
|
||||||
|
@ -29,15 +28,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
||||||
require_celerity_resource('differential-core-view-css');
|
require_celerity_resource('differential-core-view-css');
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class DiffusionBranchTableView extends DiffusionView {
|
final class DiffusionBranchTableView extends DiffusionView {
|
||||||
|
|
||||||
private $branches;
|
private $branches;
|
||||||
private $user;
|
|
||||||
private $commits = array();
|
private $commits = array();
|
||||||
|
|
||||||
public function setBranches(array $branches) {
|
public function setBranches(array $branches) {
|
||||||
|
@ -17,11 +16,6 @@ final class DiffusionBranchTableView extends DiffusionView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$drequest = $this->getDiffusionRequest();
|
$drequest = $this->getDiffusionRequest();
|
||||||
$current_branch = $drequest->getBranch();
|
$current_branch = $drequest->getBranch();
|
||||||
|
|
|
@ -4,7 +4,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
||||||
|
|
||||||
private $paths;
|
private $paths;
|
||||||
private $handles = array();
|
private $handles = array();
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setPaths(array $paths) {
|
public function setPaths(array $paths) {
|
||||||
assert_instances_of($paths, 'DiffusionRepositoryPath');
|
assert_instances_of($paths, 'DiffusionRepositoryPath');
|
||||||
|
@ -18,11 +17,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function renderLastModifiedColumns(
|
public static function renderLastModifiedColumns(
|
||||||
DiffusionRequest $drequest,
|
DiffusionRequest $drequest,
|
||||||
array $handles,
|
array $handles,
|
||||||
|
|
|
@ -2,18 +2,12 @@
|
||||||
|
|
||||||
final class DiffusionCommentListView extends AphrontView {
|
final class DiffusionCommentListView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $comments;
|
private $comments;
|
||||||
private $inlineComments = array();
|
private $inlineComments = array();
|
||||||
private $pathMap = array();
|
private $pathMap = array();
|
||||||
private $handles = array();
|
private $handles = array();
|
||||||
private $markupEngine;
|
private $markupEngine;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setComments(array $comments) {
|
public function setComments(array $comments) {
|
||||||
assert_instances_of($comments, 'PhabricatorAuditComment');
|
assert_instances_of($comments, 'PhabricatorAuditComment');
|
||||||
$this->comments = $comments;
|
$this->comments = $comments;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class DiffusionCommentView extends AphrontView {
|
final class DiffusionCommentView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $comment;
|
private $comment;
|
||||||
private $commentNumber;
|
private $commentNumber;
|
||||||
private $handles;
|
private $handles;
|
||||||
|
@ -12,11 +11,6 @@ final class DiffusionCommentView extends AphrontView {
|
||||||
private $inlineComments;
|
private $inlineComments;
|
||||||
private $markupEngine;
|
private $markupEngine;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setComment(PhabricatorAuditComment $comment) {
|
public function setComment(PhabricatorAuditComment $comment) {
|
||||||
$this->comment = $comment;
|
$this->comment = $comment;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,15 +3,9 @@
|
||||||
final class DiffusionTagListView extends DiffusionView {
|
final class DiffusionTagListView extends DiffusionView {
|
||||||
|
|
||||||
private $tags;
|
private $tags;
|
||||||
private $user;
|
|
||||||
private $commits = array();
|
private $commits = array();
|
||||||
private $handles = array();
|
private $handles = array();
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTags($tags) {
|
public function setTags($tags) {
|
||||||
$this->tags = $tags;
|
$this->tags = $tags;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PhabricatorFlagListView extends AphrontView {
|
final class PhabricatorFlagListView extends AphrontView {
|
||||||
|
|
||||||
private $flags;
|
private $flags;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setFlags(array $flags) {
|
public function setFlags(array $flags) {
|
||||||
assert_instances_of($flags, 'PhabricatorFlag');
|
assert_instances_of($flags, 'PhabricatorFlag');
|
||||||
|
@ -11,11 +10,6 @@ final class PhabricatorFlagListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$user = $this->user;
|
$user = $this->user;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ final class HeraldRuleEditHistoryView extends AphrontView {
|
||||||
|
|
||||||
private $edits;
|
private $edits;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setEdits(array $edits) {
|
public function setEdits(array $edits) {
|
||||||
$this->edits = $edits;
|
$this->edits = $edits;
|
||||||
|
@ -21,11 +20,6 @@ final class HeraldRuleEditHistoryView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class HeraldRuleListView extends AphrontView {
|
||||||
|
|
||||||
private $showAuthor;
|
private $showAuthor;
|
||||||
private $showRuleType;
|
private $showRuleType;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setRules(array $rules) {
|
public function setRules(array $rules) {
|
||||||
assert_instances_of($rules, 'HeraldRule');
|
assert_instances_of($rules, 'HeraldRule');
|
||||||
|
@ -31,11 +30,6 @@ final class HeraldRuleListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
||||||
$type_map = HeraldRuleTypeConfig::getRuleTypeMap();
|
$type_map = HeraldRuleTypeConfig::getRuleTypeMap();
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class ManiphestTaskListView extends ManiphestView {
|
||||||
|
|
||||||
private $tasks;
|
private $tasks;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
private $showBatchControls;
|
private $showBatchControls;
|
||||||
private $showSubpriorityControls;
|
private $showSubpriorityControls;
|
||||||
|
|
||||||
|
@ -23,11 +22,6 @@ final class ManiphestTaskListView extends ManiphestView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setShowBatchControls($show_batch_controls) {
|
public function setShowBatchControls($show_batch_controls) {
|
||||||
$this->showBatchControls = $show_batch_controls;
|
$this->showBatchControls = $show_batch_controls;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class ManiphestTaskSummaryView extends ManiphestView {
|
||||||
|
|
||||||
private $task;
|
private $task;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
private $showBatchControls;
|
private $showBatchControls;
|
||||||
private $showSubpriorityControls;
|
private $showSubpriorityControls;
|
||||||
|
|
||||||
|
@ -22,11 +21,6 @@ final class ManiphestTaskSummaryView extends ManiphestView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setShowBatchControls($show_batch_controls) {
|
public function setShowBatchControls($show_batch_controls) {
|
||||||
$this->showBatchControls = $show_batch_controls;
|
$this->showBatchControls = $show_batch_controls;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -15,7 +15,6 @@ final class ManiphestTransactionDetailView extends ManiphestView {
|
||||||
|
|
||||||
private $renderSummaryOnly;
|
private $renderSummaryOnly;
|
||||||
private $renderFullSummary;
|
private $renderFullSummary;
|
||||||
private $user;
|
|
||||||
|
|
||||||
private $auxiliaryFields;
|
private $auxiliaryFields;
|
||||||
|
|
||||||
|
@ -74,11 +73,6 @@ final class ManiphestTransactionDetailView extends ManiphestView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setRangeSpecification($range) {
|
public function setRangeSpecification($range) {
|
||||||
$this->rangeSpecification = $range;
|
$this->rangeSpecification = $range;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class ManiphestTransactionListView extends ManiphestView {
|
||||||
|
|
||||||
private $transactions;
|
private $transactions;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
private $markupEngine;
|
private $markupEngine;
|
||||||
private $preview;
|
private $preview;
|
||||||
private $auxiliaryFields;
|
private $auxiliaryFields;
|
||||||
|
@ -24,11 +23,6 @@ final class ManiphestTransactionListView extends ManiphestView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setMarkupEngine(PhabricatorMarkupEngine $engine) {
|
public function setMarkupEngine(PhabricatorMarkupEngine $engine) {
|
||||||
$this->markupEngine = $engine;
|
$this->markupEngine = $engine;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class PhabricatorApplicationLaunchView extends AphrontView {
|
final class PhabricatorApplicationLaunchView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $application;
|
private $application;
|
||||||
private $status;
|
private $status;
|
||||||
|
|
||||||
|
@ -11,11 +10,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setApplicationStatus(array $status) {
|
public function setApplicationStatus(array $status) {
|
||||||
$this->status = $status;
|
$this->status = $status;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,19 +3,12 @@
|
||||||
final class PhabricatorContentSourceView extends AphrontView {
|
final class PhabricatorContentSourceView extends AphrontView {
|
||||||
|
|
||||||
private $contentSource;
|
private $contentSource;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setContentSource(PhabricatorContentSource $content_source) {
|
public function setContentSource(PhabricatorContentSource $content_source) {
|
||||||
$this->contentSource = $content_source;
|
$this->contentSource = $content_source;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
require_celerity_resource('phabricator-content-source-view-css');
|
require_celerity_resource('phabricator-content-source-view-css');
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhortuneMonthYearExpiryControl extends AphrontFormControl {
|
final class PhortuneMonthYearExpiryControl extends AphrontFormControl {
|
||||||
private $user;
|
|
||||||
private $monthValue;
|
private $monthValue;
|
||||||
private $yearValue;
|
private $yearValue;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
private function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setMonthInputValue($value) {
|
public function setMonthInputValue($value) {
|
||||||
$this->monthValue = $value;
|
$this->monthValue = $value;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -1,20 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhortuneStripePaymentFormView extends AphrontView {
|
final class PhortuneStripePaymentFormView extends AphrontView {
|
||||||
private $user;
|
|
||||||
private $stripeKey;
|
private $stripeKey;
|
||||||
private $cardNumberError;
|
private $cardNumberError;
|
||||||
private $cardCVCError;
|
private $cardCVCError;
|
||||||
private $cardExpirationError;
|
private $cardExpirationError;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
private function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setStripeKey($key) {
|
public function setStripeKey($key) {
|
||||||
$this->stripeKey = $key;
|
$this->stripeKey = $key;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PonderAddAnswerView extends AphrontView {
|
final class PonderAddAnswerView extends AphrontView {
|
||||||
|
|
||||||
private $question;
|
private $question;
|
||||||
private $user;
|
|
||||||
private $actionURI;
|
private $actionURI;
|
||||||
private $draft;
|
private $draft;
|
||||||
|
|
||||||
|
@ -12,11 +11,6 @@ final class PonderAddAnswerView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setActionURI($uri) {
|
public function setActionURI($uri) {
|
||||||
$this->actionURI = $uri;
|
$this->actionURI = $uri;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PonderAddCommentView extends AphrontView {
|
final class PonderAddCommentView extends AphrontView {
|
||||||
|
|
||||||
private $target;
|
private $target;
|
||||||
private $user;
|
|
||||||
private $actionURI;
|
private $actionURI;
|
||||||
private $questionID;
|
private $questionID;
|
||||||
|
|
||||||
|
@ -12,11 +11,6 @@ final class PonderAddCommentView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setQuestionID($id) {
|
public function setQuestionID($id) {
|
||||||
$this->questionID = $id;
|
$this->questionID = $id;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -4,7 +4,6 @@ final class PonderAnswerListView extends AphrontView {
|
||||||
|
|
||||||
private $question;
|
private $question;
|
||||||
private $handles;
|
private $handles;
|
||||||
private $user;
|
|
||||||
private $answers;
|
private $answers;
|
||||||
|
|
||||||
public function setQuestion($question) {
|
public function setQuestion($question) {
|
||||||
|
@ -18,11 +17,6 @@ final class PonderAnswerListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAnswers(array $answers) {
|
public function setAnswers(array $answers) {
|
||||||
assert_instances_of($answers, 'PonderAnswer');
|
assert_instances_of($answers, 'PonderAnswer');
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PonderCommentListView extends AphrontView {
|
final class PonderCommentListView extends AphrontView {
|
||||||
private $user;
|
|
||||||
private $handles;
|
private $handles;
|
||||||
private $comments;
|
private $comments;
|
||||||
private $target;
|
private $target;
|
||||||
private $actionURI;
|
private $actionURI;
|
||||||
private $questionID;
|
private $questionID;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setHandles(array $handles) {
|
public function setHandles(array $handles) {
|
||||||
assert_instances_of($handles, 'PhabricatorObjectHandle');
|
assert_instances_of($handles, 'PhabricatorObjectHandle');
|
||||||
$this->handles = $handles;
|
$this->handles = $handles;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class PonderPostBodyView extends AphrontView {
|
||||||
private $handles;
|
private $handles;
|
||||||
private $preview;
|
private $preview;
|
||||||
private $anchorName;
|
private $anchorName;
|
||||||
private $user;
|
|
||||||
private $action;
|
private $action;
|
||||||
|
|
||||||
public function setQuestion($question) {
|
public function setQuestion($question) {
|
||||||
|
@ -36,11 +35,6 @@ final class PonderPostBodyView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
||||||
if (!$this->user) {
|
if (!$this->user) {
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PonderQuestionDetailView extends AphrontView {
|
final class PonderQuestionDetailView extends AphrontView {
|
||||||
|
|
||||||
private $question;
|
private $question;
|
||||||
private $user;
|
|
||||||
private $handles;
|
private $handles;
|
||||||
|
|
||||||
public function setQuestion($question) {
|
public function setQuestion($question) {
|
||||||
|
@ -11,11 +10,6 @@ final class PonderQuestionDetailView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setHandles($handles) {
|
public function setHandles($handles) {
|
||||||
$this->handles = $handles;
|
$this->handles = $handles;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PonderQuestionSummaryView extends AphrontView {
|
final class PonderQuestionSummaryView extends AphrontView {
|
||||||
private $user;
|
|
||||||
private $question;
|
private $question;
|
||||||
private $handles;
|
private $handles;
|
||||||
|
|
||||||
|
@ -15,11 +14,6 @@ final class PonderQuestionSummaryView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
require_celerity_resource('ponder-feed-view-css');
|
require_celerity_resource('ponder-feed-view-css');
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PonderUserProfileView extends AphrontView {
|
final class PonderUserProfileView extends AphrontView {
|
||||||
private $user;
|
|
||||||
private $questionoffset;
|
private $questionoffset;
|
||||||
private $answeroffset;
|
private $answeroffset;
|
||||||
private $answers;
|
private $answers;
|
||||||
|
@ -9,11 +8,6 @@ final class PonderUserProfileView extends AphrontView {
|
||||||
private $uri;
|
private $uri;
|
||||||
private $aparam;
|
private $aparam;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setQuestionOffset($offset) {
|
public function setQuestionOffset($offset) {
|
||||||
$this->questionoffset = $offset;
|
$this->questionoffset = $offset;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PhabricatorXHProfSampleListView extends AphrontView {
|
final class PhabricatorXHProfSampleListView extends AphrontView {
|
||||||
|
|
||||||
private $samples;
|
private $samples;
|
||||||
private $user;
|
|
||||||
private $showType = false;
|
private $showType = false;
|
||||||
|
|
||||||
public function setSamples(array $samples) {
|
public function setSamples(array $samples) {
|
||||||
|
@ -12,11 +11,6 @@ final class PhabricatorXHProfSampleListView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setShowType($show_type) {
|
public function setShowType($show_type) {
|
||||||
$this->showType = $show_type;
|
$this->showType = $show_type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class AphrontDialogView extends AphrontView {
|
||||||
private $cancelURI;
|
private $cancelURI;
|
||||||
private $cancelText = 'Cancel';
|
private $cancelText = 'Cancel';
|
||||||
private $submitURI;
|
private $submitURI;
|
||||||
private $user;
|
|
||||||
private $hidden = array();
|
private $hidden = array();
|
||||||
private $class;
|
private $class;
|
||||||
private $renderAsForm = true;
|
private $renderAsForm = true;
|
||||||
|
@ -18,11 +17,6 @@ final class AphrontDialogView extends AphrontView {
|
||||||
const WIDTH_FORM = 'form';
|
const WIDTH_FORM = 'form';
|
||||||
const WIDTH_FULL = 'full';
|
const WIDTH_FULL = 'full';
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setSubmitURI($uri) {
|
public function setSubmitURI($uri) {
|
||||||
$this->submitURI = $uri;
|
$this->submitURI = $uri;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,8 +2,18 @@
|
||||||
|
|
||||||
abstract class AphrontView extends Phobject {
|
abstract class AphrontView extends Phobject {
|
||||||
|
|
||||||
|
protected $user;
|
||||||
protected $children = array();
|
protected $children = array();
|
||||||
|
|
||||||
|
public function setUser(PhabricatorUser $user) {
|
||||||
|
$this->user = $user;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getUser() {
|
||||||
|
return $this->user;
|
||||||
|
}
|
||||||
|
|
||||||
protected function canAppendChild() {
|
protected function canAppendChild() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class AphrontFormView extends AphrontView {
|
||||||
private $header;
|
private $header;
|
||||||
private $data = array();
|
private $data = array();
|
||||||
private $encType;
|
private $encType;
|
||||||
private $user;
|
|
||||||
private $workflow;
|
private $workflow;
|
||||||
private $id;
|
private $id;
|
||||||
private $flexible;
|
private $flexible;
|
||||||
|
@ -23,11 +22,6 @@ final class AphrontFormView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAction($action) {
|
public function setAction($action) {
|
||||||
$this->action = $action;
|
$this->action = $action;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class AphrontFormDateControl extends AphrontFormControl {
|
final class AphrontFormDateControl extends AphrontFormControl {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $initialTime;
|
private $initialTime;
|
||||||
|
|
||||||
private $valueDay;
|
private $valueDay;
|
||||||
|
@ -15,11 +14,6 @@ final class AphrontFormDateControl extends AphrontFormControl {
|
||||||
const TIME_START_OF_BUSINESS = 'start-of-business';
|
const TIME_START_OF_BUSINESS = 'start-of-business';
|
||||||
const TIME_END_OF_BUSINESS = 'end-of-business';
|
const TIME_END_OF_BUSINESS = 'end-of-business';
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setInitialTime($time) {
|
public function setInitialTime($time) {
|
||||||
$this->initialTime = $time;
|
$this->initialTime = $time;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,20 +2,10 @@
|
||||||
|
|
||||||
final class AphrontFormPolicyControl extends AphrontFormControl {
|
final class AphrontFormPolicyControl extends AphrontFormControl {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $object;
|
private $object;
|
||||||
private $capability;
|
private $capability;
|
||||||
private $policies;
|
private $policies;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setPolicyObject(PhabricatorPolicyInterface $object) {
|
public function setPolicyObject(PhabricatorPolicyInterface $object) {
|
||||||
$this->object = $object;
|
$this->object = $object;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -5,7 +5,6 @@ final class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||||
private $datasource;
|
private $datasource;
|
||||||
private $disableBehavior;
|
private $disableBehavior;
|
||||||
private $limit;
|
private $limit;
|
||||||
private $user;
|
|
||||||
private $placeholder;
|
private $placeholder;
|
||||||
|
|
||||||
public function setDatasource($datasource) {
|
public function setDatasource($datasource) {
|
||||||
|
@ -27,11 +26,6 @@ final class AphrontFormTokenizerControl extends AphrontFormControl {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setPlaceholder($placeholder) {
|
public function setPlaceholder($placeholder) {
|
||||||
$this->placeholder = $placeholder;
|
$this->placeholder = $placeholder;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,17 +2,6 @@
|
||||||
|
|
||||||
final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
|
final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
|
||||||
|
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function renderInput() {
|
protected function renderInput() {
|
||||||
$id = $this->getID();
|
$id = $this->getID();
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
|
|
|
@ -23,7 +23,6 @@ final class AphrontSideNavFilterView extends AphrontView {
|
||||||
private $selectedFilter = false;
|
private $selectedFilter = false;
|
||||||
private $flexNav;
|
private $flexNav;
|
||||||
private $flexible;
|
private $flexible;
|
||||||
private $user;
|
|
||||||
private $active;
|
private $active;
|
||||||
private $menu;
|
private $menu;
|
||||||
private $crumbs;
|
private $crumbs;
|
||||||
|
@ -53,11 +52,6 @@ final class AphrontSideNavFilterView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setFlexNav($flex_nav) {
|
public function setFlexNav($flex_nav) {
|
||||||
$this->flexNav = $flex_nav;
|
$this->flexNav = $flex_nav;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -4,18 +4,12 @@ final class PhabricatorActionListView extends AphrontView {
|
||||||
|
|
||||||
private $actions = array();
|
private $actions = array();
|
||||||
private $object;
|
private $object;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setObject(PhabricatorLiskDAO $object) {
|
public function setObject(PhabricatorLiskDAO $object) {
|
||||||
$this->object = $object;
|
$this->object = $object;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addAction(PhabricatorActionView $view) {
|
public function addAction(PhabricatorActionView $view) {
|
||||||
$this->actions[] = $view;
|
$this->actions[] = $view;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
final class PhabricatorActionView extends AphrontView {
|
final class PhabricatorActionView extends AphrontView {
|
||||||
|
|
||||||
private $name;
|
private $name;
|
||||||
private $user;
|
|
||||||
private $icon;
|
private $icon;
|
||||||
private $href;
|
private $href;
|
||||||
private $disabled;
|
private $disabled;
|
||||||
|
@ -40,11 +39,6 @@ final class PhabricatorActionView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
||||||
$icon = null;
|
$icon = null;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class PhabricatorTransactionView extends AphrontView {
|
final class PhabricatorTransactionView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $imageURI;
|
private $imageURI;
|
||||||
private $actions = array();
|
private $actions = array();
|
||||||
private $epoch;
|
private $epoch;
|
||||||
|
@ -12,11 +11,6 @@ final class PhabricatorTransactionView extends AphrontView {
|
||||||
private $isPreview;
|
private $isPreview;
|
||||||
private $classes = array();
|
private $classes = array();
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setImageURI($uri) {
|
public function setImageURI($uri) {
|
||||||
$this->imageURI = $uri;
|
$this->imageURI = $uri;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -7,7 +7,6 @@ final class AphrontHeadsupActionView extends AphrontView {
|
||||||
private $uri;
|
private $uri;
|
||||||
private $workflow;
|
private $workflow;
|
||||||
private $instant;
|
private $instant;
|
||||||
private $user;
|
|
||||||
|
|
||||||
public function setName($name) {
|
public function setName($name) {
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
|
@ -34,11 +33,6 @@ final class AphrontHeadsupActionView extends AphrontView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser($user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
if ($this->instant) {
|
if ($this->instant) {
|
||||||
$button_class = $this->class.' link';
|
$button_class = $this->class.' link';
|
||||||
|
|
|
@ -2,15 +2,9 @@
|
||||||
|
|
||||||
final class PhabricatorMainMenuSearchView extends AphrontView {
|
final class PhabricatorMainMenuSearchView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $scope;
|
private $scope;
|
||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setScope($scope) {
|
public function setScope($scope) {
|
||||||
$this->scope = $scope;
|
$this->scope = $scope;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
final class PhabricatorMainMenuView extends AphrontView {
|
final class PhabricatorMainMenuView extends AphrontView {
|
||||||
|
|
||||||
private $user;
|
|
||||||
private $defaultSearchScope;
|
private $defaultSearchScope;
|
||||||
private $controller;
|
private $controller;
|
||||||
private $applicationMenu;
|
private $applicationMenu;
|
||||||
|
@ -34,15 +33,6 @@ final class PhabricatorMainMenuView extends AphrontView {
|
||||||
return $this->defaultSearchScope;
|
return $this->defaultSearchScope;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUser(PhabricatorUser $user) {
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser() {
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$user = $this->user;
|
$user = $this->user;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue