Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97889644
PhabricatorProjectApplication.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
Tue, Jan 7, 05:51
Size
4 KB
Mime Type
text/x-php
Expires
Thu, Jan 9, 05:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23431648
Attached To
rPH Phabricator
PhabricatorProjectApplication.php
View Options
<?php
final
class
PhabricatorProjectApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Projects'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Get Organized'
);
}
public
function
isPinnedByDefault
(
PhabricatorUser
$viewer
)
{
return
true
;
}
public
function
getBaseURI
()
{
return
'/project/'
;
}
public
function
getFontIcon
()
{
return
'fa-briefcase'
;
}
public
function
getFlavorText
()
{
return
pht
(
'Group stuff into big piles.'
);
}
public
function
getRemarkupRules
()
{
return
array
(
new
ProjectRemarkupRule
(),
);
}
public
function
getEventListeners
()
{
return
array
(
new
PhabricatorProjectUIEventListener
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/project/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorProjectListController'
,
'filter/(?P<filter>[^/]+)/'
=>
'PhabricatorProjectListController'
,
'archive/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectArchiveController'
,
'lock/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectLockController'
,
'members/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectMembersViewController'
,
'members/(?P<id>[1-9]
\d
*)/add/'
=>
'PhabricatorProjectMembersAddController'
,
'members/(?P<id>[1-9]
\d
*)/remove/'
=>
'PhabricatorProjectMembersRemoveController'
,
'profile/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectProfileController'
,
'view/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectViewController'
,
'picture/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectEditPictureController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorProjectEditController'
,
'(?P<projectID>[1-9]
\d
*)/panel/'
=>
$this
->
getPanelRouting
(
'PhabricatorProjectPanelController'
),
'subprojects/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectSubprojectsController'
,
'milestones/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectMilestonesController'
,
'board/(?P<id>[1-9]
\d
*)/'
.
'(?P<filter>filter/)?'
.
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorProjectBoardViewController'
,
'move/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectMoveController'
,
'board/(?P<projectID>[1-9]
\d
*)/'
=>
array
(
'edit/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorProjectColumnEditController'
,
'hide/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorProjectColumnHideController'
,
'column/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorProjectColumnDetailController'
,
'import/'
=>
'PhabricatorProjectBoardImportController'
,
'reorder/'
=>
'PhabricatorProjectBoardReorderController'
,
),
'update/(?P<id>[1-9]
\d
*)/(?P<action>[^/]+)/'
=>
'PhabricatorProjectUpdateController'
,
'history/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectHistoryController'
,
'(?P<action>watch|unwatch)/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorProjectWatchController'
,
),
'/tag/'
=>
array
(
'(?P<slug>[^/]+)/'
=>
'PhabricatorProjectViewController'
,
'(?P<slug>[^/]+)/board/'
=>
'PhabricatorProjectBoardViewController'
,
),
);
}
public
function
getQuickCreateItems
(
PhabricatorUser
$viewer
)
{
return
id
(
new
PhabricatorProjectEditEngine
())
->
setViewer
(
$viewer
)
->
loadQuickCreateItems
();
}
protected
function
getCustomCapabilities
()
{
return
array
(
ProjectCreateProjectsCapability
::
CAPABILITY
=>
array
(),
ProjectCanLockProjectsCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
ProjectDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created projects.'
),
'template'
=>
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
ProjectDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created projects.'
),
'template'
=>
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
ProjectDefaultJoinCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default join policy for newly created projects.'
),
'template'
=>
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_JOIN
,
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment