Esempio n. 1
0
 public static function deleteCategory()
 {
     $result = array();
     $deleted = lC_Categories_Admin::delete($_GET['cid']);
     lC_Cache::clear('category_tree');
     if ($deleted) {
         $result['rpcStatus'] = RPC_STATUS_SUCCESS;
     }
     echo json_encode($result);
 }
Esempio n. 2
0
 public static function batchDelete($batch)
 {
     foreach ($batch as $id) {
         lC_Categories_Admin::delete($id);
     }
     return true;
 }