1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +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', 'PHUIDiffTableOfContentsListView' => 'infrastructure/diff/view/PHUIDiffTableOfContentsListView.php',
'PHUIDiffTwoUpInlineCommentRowScaffold' => 'infrastructure/diff/view/PHUIDiffTwoUpInlineCommentRowScaffold.php', 'PHUIDiffTwoUpInlineCommentRowScaffold' => 'infrastructure/diff/view/PHUIDiffTwoUpInlineCommentRowScaffold.php',
'PHUIDocumentSummaryView' => 'view/phui/PHUIDocumentSummaryView.php', 'PHUIDocumentSummaryView' => 'view/phui/PHUIDocumentSummaryView.php',
'PHUIDocumentViewPro' => 'view/phui/PHUIDocumentViewPro.php', 'PHUIDocumentView' => 'view/phui/PHUIDocumentView.php',
'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php', 'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php',
'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php', 'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php',
'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php', 'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php',
@ -7453,7 +7453,7 @@ phutil_register_library_map(array(
'PHUIDiffTableOfContentsListView' => 'AphrontView', 'PHUIDiffTableOfContentsListView' => 'AphrontView',
'PHUIDiffTwoUpInlineCommentRowScaffold' => 'PHUIDiffInlineCommentRowScaffold', 'PHUIDiffTwoUpInlineCommentRowScaffold' => 'PHUIDiffInlineCommentRowScaffold',
'PHUIDocumentSummaryView' => 'AphrontTagView', 'PHUIDocumentSummaryView' => 'AphrontTagView',
'PHUIDocumentViewPro' => 'AphrontTagView', 'PHUIDocumentView' => 'AphrontTagView',
'PHUIFeedStoryExample' => 'PhabricatorUIExample', 'PHUIFeedStoryExample' => 'PhabricatorUIExample',
'PHUIFeedStoryView' => 'AphrontView', 'PHUIFeedStoryView' => 'AphrontView',
'PHUIFormDividerControl' => 'AphrontFormControl', 'PHUIFormDividerControl' => 'AphrontFormControl',

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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