<?php

/**
 * Created by PhpStorm.
 * User: cbrownroberts
 * Date: 1/5/16
 * Time: 2:10 PM
 */
require_once "../../includes/autoloader.php";
require_once "../../includes/config.php";
use SubjectsPlus\Control\Querier;
use SubjectsPlus\Control\Guide\PlusletData;
header('Content-Type: application/json');
$db = new Querier();
$objPlusletData = new PlusletData($db);
$objPlusletData->fetchAllPlusletIds();
echo $objPlusletData->toJSON();
<?php

/**
 * Created by PhpStorm.
 * User: cbrownroberts
 * Date: 1/6/16
 * Time: 8:47 AM
 */
require_once "../../includes/autoloader.php";
require_once "../../includes/config.php";
use SubjectsPlus\Control\Querier;
use SubjectsPlus\Control\Guide\PlusletData;
header('Content-Type: application/json');
$db = new Querier();
$objPlusletData = new PlusletData($db);
$objPlusletData->fetchClonedPlusletsById($_GET['master_id']);
echo $objPlusletData->toJSON();
<?php

/**
 * Created by PhpStorm.
 * User: cbrownroberts
 * Date: 3/24/16
 * Time: 12:19 PM
 */
header("Content-Type: application/json");
header("Expires: on, 01 Jan 1970 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
require_once "../../includes/autoloader.php";
require_once "../../includes/config.php";
use SubjectsPlus\Control\Querier;
use SubjectsPlus\Control\Guide\PlusletData;
$db = new Querier();
$pluslet_id = $_GET['pluslet_id'];
$objPluslet = new PlusletData($db);
$pluslet = $objPluslet->fetchPlusletById($pluslet_id);
echo json_encode($pluslet);
<?php

/**
 * Created by PhpStorm.
 * User: cbrownroberts
 * Date: 8/30/16
 * Time: 11:01 AM
 */
require_once "../../includes/autoloader.php";
require_once "../../includes/config.php";
use SubjectsPlus\Control\Querier;
use SubjectsPlus\Control\Guide\PlusletData;
header('Content-Type: application/json');
$tab_id = $_GET['tab_id'];
// "4531189";
$db = new Querier();
$objPlusletData = new PlusletData($db);
$objPlusletData->getClonedPlusletsBySubjectIdTabId($tab_id);
echo $objPlusletData->toJSON();