Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79906634
PhabricatorPhrictionApplication.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, Aug 28, 22:06
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Aug 30, 22:06 (2 d)
Engine
blob
Format
Raw Data
Handle
20257181
Attached To
rPH Phabricator
PhabricatorPhrictionApplication.php
View Options
<?php
final
class
PhabricatorPhrictionApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Phriction'
);
}
public
function
getMenuName
()
{
return
pht
(
'Wiki'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Wiki Documents'
);
}
public
function
getBaseURI
()
{
return
'/w/'
;
}
public
function
getIcon
()
{
return
'fa-book'
;
}
public
function
isPinnedByDefault
(
PhabricatorUser
$viewer
)
{
return
true
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Phriction User Guide'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Phriction User Guide'
),
),
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
9A
\x
A1"
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhrictionRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
// Match "/w/" with slug "/".
'/w(?P<slug>/)'
=>
'PhrictionDocumentController'
,
// Match "/w/x/y/z/" with slug "x/y/z/".
'/w/(?P<slug>.+/)'
=>
'PhrictionDocumentController'
,
'/phriction/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhrictionListController'
,
'history(?P<slug>/)'
=>
'PhrictionHistoryController'
,
'history/(?P<slug>.+/)'
=>
'PhrictionHistoryController'
,
'edit/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'PhrictionEditController'
,
'delete/(?P<id>[1-9]
\d
*)/'
=>
'PhrictionDeleteController'
,
'new/'
=>
'PhrictionNewController'
,
'move/(?P<id>[1-9]
\d
*)/'
=>
'PhrictionMoveController'
,
'preview/(?P<slug>.*/)'
=>
'PhrictionMarkupPreviewController'
,
'diff/(?P<id>[1-9]
\d
*)/'
=>
'PhrictionDiffController'
,
),
);
}
public
function
getApplicationOrder
()
{
return
0.140
;
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
PhrictionDocumentPHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment