Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99849507
PhabricatorFundApplication.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
Sun, Jan 26, 23:05
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 28, 23:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23834476
Attached To
rPH Phabricator
PhabricatorFundApplication.php
View Options
<?php
final
class
PhabricatorFundApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Fund'
);
}
public
function
getBaseURI
()
{
return
'/fund/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Donate'
);
}
public
function
getIcon
()
{
return
'fa-heart'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
99
\x
A5"
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
FundInitiativeRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/I(?P<id>[1-9]
\d
*)'
=>
'FundInitiativeViewController'
,
'/fund/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'FundInitiativeListController'
,
'create/'
=>
'FundInitiativeEditController'
,
'comment/(?P<id>[1-9]
\d
*)/'
=>
'FundInitiativeCommentController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'FundInitiativeEditController'
,
'close/(?P<id>
\d
+)/'
=>
'FundInitiativeCloseController'
,
'back/(?P<id>
\d
+)/'
=>
'FundInitiativeBackController'
,
'backers/(?:(?P<id>
\d
+)/)?(?:query/(?P<queryKey>[^/]+)/)?'
=>
'FundBackerListController'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
FundDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created initiatives.'
),
'tempate'
=>
FundInitiativePHIDType
::
TYPECONST
,
),
FundCreateInitiativesCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
FundInitiativePHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment