mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix AphrontTagView
visibility
Summary: Ref T6822. Test Plan: `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11368
This commit is contained in:
parent
d6b882a804
commit
8434143795
22 changed files with 42 additions and 42 deletions
|
@ -17,7 +17,7 @@ final class PhabricatorCountdownView extends AphrontTagView {
|
|||
}
|
||||
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
$countdown = $this->countdown;
|
||||
|
||||
require_celerity_resource('phabricator-countdown-css');
|
||||
|
|
|
@ -27,18 +27,18 @@ final class DivinerBookItemView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'a';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'diviner-book-item',
|
||||
'href' => $this->href,
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('diviner-shared-css');
|
||||
|
||||
$title = phutil_tag(
|
||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerParameterTableView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'diviner-table-view',
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('diviner-shared-css');
|
||||
|
||||
$rows = array();
|
||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerReturnTableView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'diviner-table-view',
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('diviner-shared-css');
|
||||
|
||||
$return = $this->return;
|
||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerSectionView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'diviner-document-section',
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('diviner-shared-css');
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
|
|
|
@ -220,7 +220,7 @@ final class PHUIPagedFormView extends AphrontTagView {
|
|||
return $this->cancelURI;
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
$form = id(new AphrontFormView())
|
||||
->setUser($this->getUser());
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ final class PHUIBoxView extends AphrontTagView {
|
|||
return array('class' => $outer_classes);
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
return $this->renderChildren();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,11 +13,11 @@ final class PHUIButtonBarView extends AphrontTagView {
|
|||
return array('class' => 'phui-button-bar');
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('phui-button-css');
|
||||
|
||||
$i = 1;
|
||||
|
|
|
@ -82,7 +82,7 @@ final class PHUIButtonView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return $this->tag;
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ final class PHUIDocumentView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
$classes = array();
|
||||
|
||||
if ($this->offset) {
|
||||
|
@ -69,7 +69,7 @@ final class PHUIDocumentView extends AphrontTagView {
|
|||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('phui-document-view-css');
|
||||
if ($this->fontKit) {
|
||||
require_celerity_resource('phui-fontkit-css');
|
||||
|
|
|
@ -56,7 +56,7 @@ final class PHUIIconView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
$tag = 'span';
|
||||
if ($this->href) {
|
||||
$tag = 'a';
|
||||
|
@ -64,7 +64,7 @@ final class PHUIIconView extends AphrontTagView {
|
|||
return $tag;
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-icon-view-css');
|
||||
|
||||
$style = null;
|
||||
|
|
|
@ -41,11 +41,11 @@ final class PHUIImageMaskView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-image-mask-css');
|
||||
|
||||
$classes = array();
|
||||
|
@ -62,7 +62,7 @@ final class PHUIImageMaskView extends AphrontTagView {
|
|||
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
|
||||
/* Center it in the middle of the selected area */
|
||||
$center_x = round($this->centerX + ($this->maskW / 2));
|
||||
|
|
|
@ -166,7 +166,7 @@ final class PHUIListView extends AphrontTagView {
|
|||
}
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'ul';
|
||||
}
|
||||
|
||||
|
|
|
@ -307,7 +307,7 @@ final class PHUIObjectItemView extends AphrontTagView {
|
|||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
$content_classes = array();
|
||||
$content_classes[] = 'phui-object-item-content';
|
||||
|
||||
|
|
|
@ -50,11 +50,11 @@ final class PHUIRemarkupPreviewPanel extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
$classes = array();
|
||||
$classes[] = 'phui-remarkup-preview';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ final class PHUIStatusListView extends AphrontTagView {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'table';
|
||||
}
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ final class PHUITagView extends AphrontTagView {
|
|||
return $attributes + array('class' => $classes);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
if (!$this->type) {
|
||||
throw new Exception(pht('You must call setType() before render()!'));
|
||||
}
|
||||
|
|
|
@ -9,11 +9,11 @@ final class PHUITextView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'span';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-text-css');
|
||||
return array();
|
||||
}
|
||||
|
|
|
@ -27,13 +27,13 @@ final class PHUIWorkboardView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'phui-workboard-view',
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('phui-workboard-view-css');
|
||||
|
||||
$action_list = null;
|
||||
|
|
|
@ -55,13 +55,13 @@ final class PHUIWorkpanelView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
return array(
|
||||
'class' => 'phui-workpanel-view',
|
||||
);
|
||||
}
|
||||
|
||||
public function getTagContent() {
|
||||
protected function getTagContent() {
|
||||
require_celerity_resource('phui-workpanel-view-css');
|
||||
|
||||
$classes = array();
|
||||
|
|
|
@ -15,11 +15,11 @@ final class PHUICalendarListView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-calendar-css');
|
||||
require_celerity_resource('phui-calendar-list-css');
|
||||
return array('class' => 'phui-calendar-day-list');
|
||||
|
|
|
@ -15,11 +15,11 @@ final class PHUICalendarWidgetView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getTagName() {
|
||||
protected function getTagName() {
|
||||
return 'div';
|
||||
}
|
||||
|
||||
public function getTagAttributes() {
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-calendar-list-css');
|
||||
return array('class' => 'phui-calendar-list-container');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue