Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1247140
stylesheets_event_handler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 21, 1:39 PM
Size
510 B
Mime Type
text/x-php
Expires
Sun, Nov 23, 1:39 PM (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
810404
Attached To
rINP In-Portal
stylesheets_event_handler.php
View Options
<?php
class
StylesheetsEventHandler
extends
InpDBEventHandler
{
/**
* [HOOK] Compile stylesheet file based on theme definitions
*
* @param kEvent $event
*/
function
OnCompileStylesheet
(&
$event
)
{
$object
=&
$event
->
getObject
(
Array
(
'skip_autoload'
=>
true
)
);
$object
->
SwitchToLive
();
$ids
=
explode
(
','
,
$event
->
MasterEvent
->
getEventParam
(
'ids'
)
);
if
(!
$ids
)
return
false
;
foreach
(
$ids
as
$id
)
{
$object
->
Load
(
$id
);
$object
->
Compile
();
}
}
}
?>
Event Timeline
Log In to Comment