| <?php |
| /******************************************************************************* |
| * Copyright (c) 2009, 2011 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Wayne Beaton (Eclipse Foundation)- initial API and implementation |
| *******************************************************************************/ |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . '/projects/classes/CQ.class.php'); |
| require_once($_SERVER['DOCUMENT_ROOT'] . '/projects/classes/common.php'); |
| require_once($_SERVER['DOCUMENT_ROOT'] . '/projects/classes/debug.php'); |
| trace_file_info(__FILE__); |
| |
| mustBeEclipseFoundationCaller(); |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| $App = new App(); |
| |
| header("Content-type: application/json"); |
| |
| $cqs = find_cqs(); |
| foreach($cqs as $id => &$cq) { |
| unset($cq->parent); |
| unset($cq->piggyback_cqs); |
| } |
| |
| echo json_encode($cqs); |
| |
| ?> |