jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [lib/] [post/] [WeatherMapPostProcessorTest.php] - Blame information for rev 38

 

Line No. Rev Author Line
11simandl<?php
2// a test post-processor plugin - does nothing but pollute the namespace
3// the run() method will be called just before rendering starts
4//
5// To use this plugin, add the following line to your config:
6// SET post_test_enable 1
7//
8class WeatherMapPostProcessorTest extends WeatherMapPostProcessor
9{
10 function run(&$map)
11 {
12 $enable = $map->get_hint("post_test_enable");
13 
14 if($enable)
15 {
16 debug(__CLASS__." is here\n");
17 
18 // do your work in here...
19 
20 $orig = $map->get_note("test");
21 $map->add_note("test",$orig." TESTYTEST");
22 // -------------------------
23 }
24 else
25 {
26 debug(__CLASS__." Not Enabled\n");
27 }
28 }
29}
30 
31// vim:ts=4:sw=4:
32?>

Powered by WebSVN 2.2.1