Import/Core_holiday.php
authorAlan Knowles <alan@roojs.com>
Mon, 9 Nov 2020 06:11:03 +0000 (14:11 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 9 Nov 2020 06:11:03 +0000 (14:11 +0800)
Import/Core_holiday.php

index e69de29..65168c5 100644 (file)
@@ -0,0 +1,35 @@
+<?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())
+    {   
+        $d = DB_DataObject::factory('core_holiday');
+        $d->
+    }
+    
+    function log($str)
+    {
+        echo "$str \n";
+    }
+}
\ No newline at end of file