Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1880104
cache.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
973 B
Subscribers
None
cache.php
View Options
<?php
/**
* DokuWiki DAVCal PlugIn - Ajax component
*/
if
(!
defined
(
'DOKU_INC'
))
die
();
class
action_plugin_davcal_cache
extends
DokuWiki_Action_Plugin
{
/**
* @var helper_plugin_davcal
*/
private
$hlp
=
null
;
function
__construct
()
{
$this
->
hlp
=&
plugin_load
(
'helper'
,
'davcal'
);
}
function
register
(
Doku_Event_Handler
$controller
)
{
$controller
->
register_hook
(
'PARSER_CACHE_USE'
,
'BEFORE'
,
$this
,
'handle_parser_cache_use'
);
}
function
handle_parser_cache_use
(&
$event
,
$param
)
{
global
$ID
;
$cache
=
&
$event
->
data
;
if
(!
isset
(
$cache
->
page
))
return
;
$davcalMeta
=
p_get_metadata
(
$ID
,
'plugin_davcal'
);
if
(!
$davcalMeta
)
return
;
if
(
isset
(
$davcalMeta
[
'table'
])
&&
$davcalMeta
[
'table'
]
===
true
)
{
$event
->
preventDefault
();
$event
->
stopPropagation
();
$event
->
result
=
false
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jan 23, 6:34 PM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
911122
Default Alt Text
cache.php (973 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment