<?php namespace com\whitemagicsoftware; require "constants.php"; require "class.Ajax.php"; /** * Handles Ajax requests for retrieving a list of instruction groups. */ class AjaxInstructionGroup extends Ajax { function __construct() { parent::__construct(); } public function handleAjaxRequest() { // Get the recipe ID from the JavaScript. $id = $this->getParameterId( "recipe-id" ); return $this->json( $this->call( "get_recipe_instruction_group_list", "id, label", $id ) ); } }