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