<?php // Copyright (c) 2010 Guanoo, Inc. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 3 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. load_interfaces('Modelled', 'Persisted', 'Validated'); load_tool('REST'); /** * The Remote class provides remote data manipulation capabilities via REST * by providing a facade to a data model object via the Modelled, Persisted * and Validated interfaces. * * @author Kevin Hutchinson <*****@*****.**> */ class Remote extends Relating_model implements Modelled, Persisted, Validated { const DEFAULT_TYPE = Symbol::JSON; // (it's built into PHP) const DB = '__db'; private static $defaults = array(); private $username; // Do we need a username too? private $password;
/** * Load an interface * * @param String $interface the interface to load */ function load_interface($interface) { load_interfaces($interface); }