Fix #6466 - hourly car park cost in mysql
[Pman.Core] / Import / Core_holiday.php
1 <?php
2
3 require_once 'Pman/Roo.php';
4
5 class Pman_Core_Import_Core_holiday extends Pman_Roo 
6 {
7     static $cli_desc = "Update the holiday database (HK Only at present)"; 
8     
9     static $cli_opts = array(
10         
11     );
12     
13     function getAuth()
14     {
15         if (!HTML_FlexyFramework::get()->cli) {
16             return false;
17         }
18         
19         return true;
20         
21     }
22
23     var $defaults = array();
24     
25     function get($v, $opts=array())
26     {   
27         DB_DAtaObject::debugLevel(1);
28         $d = DB_DataObject::factory('core_holiday');
29         $d->updateHolidays('hk');
30         
31     }
32     
33     function log($str)
34     {
35         echo "$str \n";
36     }
37 }