Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98371408
PhabricatorSyntaxStyle.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 12, 14:17
Size
771 B
Mime Type
text/x-php
Expires
Tue, Jan 14, 14:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23571243
Attached To
rPH Phabricator
PhabricatorSyntaxStyle.php
View Options
<?php
abstract
class
PhabricatorSyntaxStyle
extends
Phobject
{
abstract
public
function
getStyleName
();
abstract
public
function
getStyleMap
();
final
public
function
getStyleOrder
()
{
return
(
string
)
id
(
new
PhutilSortVector
())
->
addInt
(
$this
->
isDefaultStyle
()
?
0
:
1
)
->
addString
(
$this
->
getStyleName
());
}
final
public
function
getSyntaxStyleKey
()
{
return
$this
->
getPhobjectClassConstant
(
'STYLEKEY'
);
}
final
public
function
isDefaultStyle
()
{
return
(
$this
->
getSyntaxStyleKey
()
==
'default'
);
}
public
static
function
getAllStyles
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getSyntaxStyleKey'
)
->
setSortMethod
(
'getStyleName'
)
->
execute
();
}
}
Event Timeline
Log In to Comment