dever 7 years ago
parent
commit
673ea0ec4e
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/Api.php

+ 15 - 0
src/Api.php

@@ -99,6 +99,21 @@ class Api
         return '';
     }
 
+    /**
+     * 获取所有信息
+     *
+     * @return mixed
+     */
+    public function getAll($column)
+    {
+        $where = array();
+        if ($column > 0) {
+            $where['column_id'] = $column;
+        }
+        $result = Dever::db('category/info')->state($where);
+        return $result;
+    }
+
     /**
      * 获取详细信息
      *