Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93210781
ManiphestController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 27, 01:23
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Nov 29, 01:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22594202
Attached To
rPH Phabricator
ManiphestController.php
View Options
<?php
/*
* Copyright 2012 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @group maniphest
*/
abstract
class
ManiphestController
extends
PhabricatorController
{
public
function
buildStandardPageResponse
(
$view
,
array
$data
)
{
$page
=
$this
->
buildStandardPageView
();
$page
->
setApplicationName
(
'Maniphest'
);
$page
->
setBaseURI
(
'/maniphest/'
);
$page
->
setTitle
(
idx
(
$data
,
'title'
));
$page
->
setGlyph
(
"
\x
E2
\x
9A
\x
93"
);
$page
->
appendChild
(
$view
);
$page
->
setSearchDefaultScope
(
PhabricatorSearchScope
::
SCOPE_OPEN_TASKS
);
$response
=
new
AphrontWebpageResponse
();
return
$response
->
setContent
(
$page
->
render
());
}
protected
function
buildBaseSideNav
()
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
'/maniphest/view/'
));
$nav
->
addLabel
(
'User Tasks'
);
$nav
->
addFilter
(
'action'
,
'Assigned'
);
$nav
->
addFilter
(
'created'
,
'Created'
);
$nav
->
addFilter
(
'subscribed'
,
'Subscribed'
);
$nav
->
addFilter
(
'triage'
,
'Need Triage'
);
$nav
->
addSpacer
();
$nav
->
addLabel
(
'User Projects'
);
$nav
->
addFilter
(
'projecttriage'
,
'Need Triage'
);
$nav
->
addFilter
(
'projectall'
,
'All Tasks'
);
$nav
->
addSpacer
();
$nav
->
addLabel
(
'All Tasks'
);
$nav
->
addFilter
(
'alltriage'
,
'Need Triage'
);
$nav
->
addFilter
(
'all'
,
'All Tasks'
);
$nav
->
addSpacer
();
$nav
->
addLabel
(
'Custom'
);
$nav
->
addFilter
(
'custom'
,
'Custom Query'
);
$nav
->
addSpacer
();
$nav
->
addLabel
(
'Reports'
);
$nav
->
addFilter
(
'report'
,
'Reports'
,
'/maniphest/report/'
);
return
$nav
;
}
}
Event Timeline
Log In to Comment