<?php namespace com\whitemagicsoftware; require "constants.php"; require "class.Ajax.php"; /** * Handles Ajax requests for a recipe's list of ingredients. */ class AjaxIngredientList extends Ajax { function __construct() { parent::__construct(); } public function handleAjaxRequest() { return $this->json( $this->call( "get_recipe_ingredient_list", "id, label", $this->getId() ) ); } }