Import/old.php
authorAlan Knowles <alan@akkbhome.com>
Thu, 29 Jul 2010 13:26:10 +0000 (21:26 +0800)
committerAlan Knowles <alan@akkbhome.com>
Thu, 29 Jul 2010 13:26:10 +0000 (21:26 +0800)
Import/old.php

index 416d755..efbcab9 100644 (file)
@@ -10,6 +10,18 @@ class Pman_Cms_Import_old extends Pman
     
     function get()
     {
+        
+        $d = DB_DataObject::factory('Category');
+        $d->query('
+            SELECT * FROM serendipity.category
+        ');
+        $ar = array();
+        while( $d->fetch() ) {
+            $ar[] = clone($d);
+        }
+        // categoryid | category_name | category_description                 | authorid |
+
+        
         // import blog data..
         //DB_DataObject::debugLevel(1);
         $d = DB_DataObject::factory('Page');