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); }
public static function batchDelete($batch) { foreach ($batch as $id) { lC_Categories_Admin::delete($id); } return true; }