Fix #6466 - hourly car park cost in mysql
[Pman.Core] / Import / Core_holiday.php
diff --git a/Import/Core_holiday.php b/Import/Core_holiday.php
new file mode 100644 (file)
index 0000000..71b6aad
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+require_once 'Pman/Roo.php';
+
+class Pman_Core_Import_Core_holiday extends Pman_Roo 
+{
+    static $cli_desc = "Update the holiday database (HK Only at present)"; 
+    
+    static $cli_opts = array(
+        
+    );
+    
+    function getAuth()
+    {
+        if (!HTML_FlexyFramework::get()->cli) {
+            return false;
+        }
+        
+        return true;
+        
+    }
+
+    var $defaults = array();
+    
+    function get($v, $opts=array())
+    {   
+        DB_DAtaObject::debugLevel(1);
+        $d = DB_DataObject::factory('core_holiday');
+        $d->updateHolidays('hk');
+        
+    }
+    
+    function log($str)
+    {
+        echo "$str \n";
+    }
+}
\ No newline at end of file