Path: blob/master/src/applications/config/controller/PhabricatorConfigController.php
12256 views
<?php12abstract class PhabricatorConfigController extends PhabricatorController {34public function shouldRequireAdmin() {5return true;6}78public function buildHeaderView($text, $action = null) {9$viewer = $this->getViewer();1011$file = PhabricatorFile::loadBuiltin($viewer, 'projects/v3/manage.png');12$image = $file->getBestURI($file);13$header = id(new PHUIHeaderView())14->setHeader($text)15->setProfileHeader(true)16->setImage($image);1718if ($action) {19$header->addActionLink($action);20}2122return $header;23}2425public function buildConfigBoxView($title, $content, $action = null) {26$header = id(new PHUIHeaderView())27->setHeader($title);2829if ($action) {30$header->addActionItem($action);31}3233$view = id(new PHUIObjectBoxView())34->setHeader($header)35->appendChild($content)36->setBackground(PHUIObjectBoxView::WHITE_CONFIG);3738return $view;39}4041}424344