Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-fiddle.git
<?php
namespace com\whitemagicsoftware;

require "constants.php";
require "class.Ajax.php";

/**
 * Handles Ajax requests for ingredients.
 */
class AjaxPhotographCategory extends Ajax {
  function __construct() {
    parent::__construct();
  }

  /**
   * Called when the user opens the photograph upload dialog.
   */
  public function handleAjaxRequest() {
    return $this->json( $this->call(
      "get_photograph_category_list", "id, label, description" ) );
  }
}