Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94032263
PhameCelerityResources.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, Dec 3, 09:31
Size
545 B
Mime Type
text/x-php
Expires
Thu, Dec 5, 09:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22717161
Attached To
rPH Phabricator
PhameCelerityResources.php
View Options
<?php
/**
* Defines Phabricator's static resources.
*/
final
class
PhameCelerityResources
extends
CelerityResources
{
private
$skin
;
public
function
setSkin
(
$skin
)
{
$this
->
skin
=
$skin
;
return
$this
;
}
public
function
getSkin
()
{
return
$this
->
skin
;
}
public
function
getName
()
{
return
'phame:'
.
$this
->
getSkin
()->
getName
();
}
public
function
getResourceData
(
$name
)
{
$resource_path
=
$this
->
skin
->
getRootDirectory
().
DIRECTORY_SEPARATOR
.
$name
;
return
Filesystem
::
readFile
(
$resource_path
);
}
}
Event Timeline
Log In to Comment