1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Rename "PHUIDocumentViewPro" to "PHUIDocumentView"

Summary: Ref T13077. There is no "PHUIDocumentView" so toss the "Pro" suffix from this classname.

Test Plan: Grepped for `PHUIDocumentView` and `PHUIDocumentViewPro`.

Reviewers: amckinley

Maniphest Tasks: T13077

Differential Revision: https://secure.phabricator.com/D19616
This commit is contained in:
epriestley 2018-08-28 13:57:35 -07:00
parent 614f9ba1fb
commit fd0da4c41f
17 changed files with 24 additions and 23 deletions

View file

@ -1912,7 +1912,7 @@ phutil_register_library_map(array(
'PHUIDiffTableOfContentsListView' => 'infrastructure/diff/view/PHUIDiffTableOfContentsListView.php',
'PHUIDiffTwoUpInlineCommentRowScaffold' => 'infrastructure/diff/view/PHUIDiffTwoUpInlineCommentRowScaffold.php',
'PHUIDocumentSummaryView' => 'view/phui/PHUIDocumentSummaryView.php',
'PHUIDocumentViewPro' => 'view/phui/PHUIDocumentViewPro.php',
'PHUIDocumentView' => 'view/phui/PHUIDocumentView.php',
'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php',
'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php',
'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php',
@ -7453,7 +7453,7 @@ phutil_register_library_map(array(
'PHUIDiffTableOfContentsListView' => 'AphrontView',
'PHUIDiffTwoUpInlineCommentRowScaffold' => 'PHUIDiffInlineCommentRowScaffold',
'PHUIDocumentSummaryView' => 'AphrontTagView',
'PHUIDocumentViewPro' => 'AphrontTagView',
'PHUIDocumentView' => 'AphrontTagView',
'PHUIFeedStoryExample' => 'PhabricatorUIExample',
'PHUIFeedStoryView' => 'AphrontView',
'PHUIFormDividerControl' => 'AphrontFormControl',

View file

@ -94,7 +94,7 @@ final class DiffusionReadmeView extends DiffusionView {
}
$readme_content = phutil_tag_div($class, $readme_content);
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setFluid(true)
->appendChild($readme_content);

View file

@ -72,7 +72,7 @@ final class DivinerAtomController extends DivinerController {
$prop_list = new PHUIPropertyGroupView();
$prop_list->addPropertyList($properties);
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setBook($book->getTitle(), $group_name)
->setHeader($header)
->addClass('diviner-view');

View file

@ -45,7 +45,7 @@ final class DivinerBookController extends DivinerController {
->setName($book->getRepository()->getMonogram()));
}
$document = new PHUIDocumentViewPro();
$document = new PHUIDocumentView();
$document->setHeader($header);
$document->addClass('diviner-view');

View file

@ -27,7 +27,7 @@ final class DivinerMainController extends DivinerController {
->setHeader(pht('Documentation Books'))
->addActionLink($query_button);
$document = new PHUIDocumentViewPro();
$document = new PHUIDocumentView();
$document->setHeader($header);
$document->addClass('diviner-view');

View file

@ -169,7 +169,7 @@ final class PhabricatorGuideInstallModule extends PhabricatorGuideModule {
$intro = new PHUIRemarkupView($viewer, $intro);
$intro = id(new PHUIDocumentViewPro())
$intro = id(new PHUIDocumentView())
->appendChild($intro);
return array($intro, $guide_items);

View file

@ -206,7 +206,7 @@ final class PhabricatorGuideQuickStartModule extends PhabricatorGuideModule {
'these features at your own pace.');
$intro = new PHUIRemarkupView($viewer, $intro);
$intro = id(new PHUIDocumentViewPro())
$intro = id(new PHUIDocumentView())
->appendChild($intro);
return array($intro, $guide_items);

View file

@ -272,7 +272,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
$preamble_box->addPropertyList($preamble);
}
$content = id(new PHUIDocumentViewPro())
$content = id(new PHUIDocumentView())
->addClass('legalpad')
->setHeader($header)
->appendChild(

View file

@ -132,7 +132,7 @@ final class PhabricatorApplicationEmailCommandsController
$header = id(new PHUIHeaderView())
->setHeader($title);
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setHeader($header)
->appendChild($info_view)
->appendChild($content_box);

View file

@ -84,7 +84,7 @@ final class PhameHomeController extends PhamePostController {
pht('Recent Posts'),
$this->getApplicationURI('post/'));
$page = id(new PHUIDocumentViewPro())
$page = id(new PHUIDocumentView())
->setHeader($header)
->appendChild($post_list);

View file

@ -85,7 +85,7 @@ final class PhameBlogViewController extends PhameLiveController {
}
}
$page = id(new PHUIDocumentViewPro())
$page = id(new PHUIDocumentView())
->setHeader($header)
->appendChild($post_list);

View file

@ -30,7 +30,7 @@ final class PhamePostViewController
$header->setActionList($actions);
}
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setHeader($header);
if ($moved) {

View file

@ -227,7 +227,7 @@ final class PhrictionDocumentController
}
$prop_list = phutil_tag_div('phui-document-view-pro-box', $prop_list);
$page_content = id(new PHUIDocumentViewPro())
$page_content = id(new PHUIDocumentView())
->setHeader($header)
->setToc($toc)
->appendChild(
@ -241,7 +241,8 @@ final class PhrictionDocumentController
->setTitle($page_title)
->setCrumbs($crumbs)
->setPageObjectPHIDs(array($document->getPHID()))
->appendChild(array(
->appendChild(
array(
$page_content,
$prop_list,
$children,

View file

@ -1679,7 +1679,7 @@ abstract class PhabricatorEditEngine
->setUser($viewer)
->setFields($fields);
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setUser($viewer)
->setHeader($header)
->appendChild($help_view);

View file

@ -142,7 +142,7 @@ final class PhabricatorTypeaheadFunctionHelpController
$header = id(new PHUIHeaderView())
->setHeader($title);
$document = id(new PHUIDocumentViewPro())
$document = id(new PHUIDocumentView())
->setHeader($header)
->appendChild($content_box);

View file

@ -1,6 +1,6 @@
<?php
final class PHUIDocumentViewPro extends AphrontTagView {
final class PHUIDocumentView extends AphrontTagView {
private $header;
private $bookname;

View file

@ -105,7 +105,7 @@ final class PHUIRemarkupPreviewPanel extends AphrontTagView {
$header = id(new PHUIHeaderView())
->setHeader(pht('%s (Preview)', $this->header));
$content = id(new PHUIDocumentViewPro())
$content = id(new PHUIDocumentView())
->setHeader($header)
->appendChild($preview);
}